-
Notifications
You must be signed in to change notification settings - Fork 97
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
Knative Installation Wipes Namespace Labels (Should Merge) #388
Comments
@jcrossley3 Could you take a look? |
@awgneo how was the original |
The namespace was created with I also wonder if the Operator could add its label in a less destructive way, even if |
Knative operator supports customized manifests, which means you can configure your knative yamls into ANYTHING, fitting your platform. |
I used the Here is the output when merging: The unstructured.Unstructured to be applied is
The current unstructured.Unstructured in the cluster is
The original unstructured.Unstructured in last-applied-configuration is:
After the update, the namespace is
The existing labels and annotations are gone. |
We're using Knative Operator 0.18, so I tested creating the namespace with (I also took a quick look at |
This issue is stale because it has been open for 90 days with no |
/reopen I'm having trouble understanding how this is the intended behavior. IMO, the workaround with Given the scenario from the bug - namespace definition with a label: how do I make sure that the operator does not remove the label set by |
@maxbog: You can't reopen an issue/PR unless you authored it or you are a collaborator. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen This issue is still not resolved. |
@eloyekunle: You can't reopen an issue/PR unless you authored it or you are a collaborator. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen |
@sugarman402: You can't reopen an issue/PR unless you authored it or you are a collaborator. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/remove-lifecycle stale |
The issue is still there, it would be nice to include some annotation which we can add to the namespace and in result the operator-webhook won't touch the existing labels on the namespace. |
/reopen |
@pierDipi: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@houshengbo if the operator is installing stuff into a namespace should it remove that namespace from the manifests? Thus not overwritting it? |
Describe the bug
When installing Knative (serving) into a fresh namespace with labels defined, they are wiped out with the Knative release version number when the labels should be merged.
becomes
Expected behavior
The labels of the namespace should be merged.
To Reproduce
Create a namespace with labels and install a Knative operator instance.
Knative release version
v0.18.0 - v0.19.1
Additional context
None
The text was updated successfully, but these errors were encountered: