-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Operator helm not syncing on labels #6836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have the same issue, and this seems to happen when switching from version 1.16.0 to 1.36.1, so probably a regression, although that leaves a lot of versions to check 😬 |
I have noticed that when I haven't found anything in the documentation stating that selectors should be restricted to specific namespaces only. The selector behavior should be consistent. If it is applied to specific namespaces, it should also be applied for all namespaces. I don't understand the reason for this restriction. I believe it should at least be documented and clarified if this is the intended behavior, or if there is any workaround to ensure selectors apply to all namespaces consistently when |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Uh oh!
There was an error while loading. Please reload this page.
Bug Report
What did you do?
I created a nginy helm operator based on the docs.
My watches yaml:
I deployed 2 test object:
and
My Dockerfile
What did you expect to see?
I expected only
testa
object to get synced as only its label match.testb
shouldn't sync.What did you see instead? Under which circumstances?
However
testb
object is also getting synced.testb
is syncing even if I change the label value. Things work fine if I change tov1.33.0
in my Dockerfile. Doesn't work withv1.35.0
Environment
Operator type:
helm operator v1.37.0
Kubernetes cluster type:
EKS
operator-sdk version: "v1.37.0", commit: "819984d4c1a51c8ff2ef6c23944554148ace0752", kubernetes version: "v1.29.0", go version: "go1.23.1", GOOS: "darwin", GOARCH: "amd64"
$ go version
(if language is Go)Client Version: v1.29.1 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3 Server Version: v1.29.7-eks-a18cd3a
Possible Solution
My hunch is, it broke with below change:
1fd7f4d#diff-d47d8a84d35cfdd54322d503604e6ff0b2f5454d3f1133bfc4faa8faeb9b476d
This change went in after v1.33.0 and changes label selector code.
Additional context
https://github.com/AkhileshK8y/nginy-operator
My full code in case it helps.
The text was updated successfully, but these errors were encountered: