fix(module): avoid queue blocking on invalid module config in CSE#2243
Closed
LopatinDmitr wants to merge 2 commits intorelease-1.0-csefrom
Closed
fix(module): avoid queue blocking on invalid module config in CSE#2243LopatinDmitr wants to merge 2 commits intorelease-1.0-csefrom
LopatinDmitr wants to merge 2 commits intorelease-1.0-csefrom
Conversation
08a243a to
4b7c8df
Compare
diafour
reviewed
Apr 20, 2026
diafour
reviewed
Apr 20, 2026
b2ec7fc to
5ca7467
Compare
4366bc5 to
03f02bf
Compare
Signed-off-by: Dmitry Lopatin <dmitry.lopatin@flant.com>
03f02bf to
ef357dc
Compare
d63a4b2 to
9e6d545
Compare
Signed-off-by: Dmitry Lopatin <dmitry.lopatin@flant.com>
9e6d545 to
e2b60b4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Make virtualization module config validation tolerate empty or incomplete
spec.settingsand ensure hooks that patch values only reconcile when a valid copied module config exists.This change keeps
validate-module-configas the single source of truth for config validity:virtualization.internal.moduleConfigvirtualization.internal.moduleConfigValidationHooks and templates that depend on module config now use the copied internal config contract consistently.
Why do we need it, and what problem does it solve?
During installation the
ModuleConfig/virtualizationobject may appear before the validating webhook is ready, so an empty or incompletespec.settingscan temporarily exist in the cluster.Previously this could lead to two failure modes:
validate-module-configcould panic while accessing missing required settings.With this change, config validation errors are reported cleanly through readiness, invalid settings never overwrite the copied internal config, and hooks that patch values only run when a valid copied config is available.
What is the expected result?
ModuleConfig/virtualizationwith empty or incompletespec.settings.validate-module-configdoes not panic and stores a validation error.virtualization.internal.moduleConfig.Checklist
Changelog entries