Repository navigation
Conversation
Signed-off-by: Raffael Sahli <[email protected]>
matheuscscp
reviewed
May 21, 2026
matheuscscp
left a comment
Member
There was a problem hiding this comment.
Same comments as in the other PR
Member
|
This behavior is very intentional, the SSA package is used in all controllers and this change breaks them. For the CLI we could have some validation step set there not in this package. |
phoban01
added a commit
to phoban01/fluxlint
that referenced
this pull request
Sep 22, 2026
…ring An unquoted 1.31, true or 0 in metadata.labels. Helm installs are rejected by the API server. Kustomizations are worse: kustomize-controller adds its ownership labels by reading the label map, adding two and writing it back (fluxcd/pkg/ssa SetOwnerLabels). The read fails as a whole on one non-string value, the error is discarded by apimachinery's GetLabels, and the object is applied with only Flux's two labels. The Kustomization is Ready and nothing is logged. Reproduced on a kind cluster: a Namespace lost its Pod Security enforce label and admitted a privileged pod. Flux treats this as intended (fluxcd/flux2#4968, fluxcd/pkg#1208). Checked on every kind, custom resources included. Annotations are left out: kustomize converts those to strings. The schema check no longer reports the same label a second time. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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.
See fluxcd/flux2#5906