-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Define Required Metadata Labels on deployment definitions #18357
Comments
@kristinochka |
Not sure I follow your question. This ticket says cluster_role.yaml and cluster_role_binding.yaml should have labels. |
@kristinochka |
I noticed there are a few other files are missing ["app.kubernetes.io/instance" "app.kubernetes.io/managed-by" "app.kubernetes.io/name"] labels under metadata.labels deploy/role.yaml |
@kristinochka |
You mean resources that are not controlled by che-operator? |
Correct, for instance when Eclipse Che/CRW is deployed from OperatorHub then clusterrolebinding, serviceaccount, subscription.. etc are created by OLM and not by operator. Another point all resources declared in #18357 (comment) are created during deployment but aren't managed by operator. From my point of view |
For resources which are managed by olm (and not your operator), the recommendation is to use the following annotation: |
Is your enhancement related to a problem? Please describe.
The labels that Kubernetes recommends provide useful identification information used by Kubernetes, users of the cluster, and other resources.
Following files do not have required Kubernetes metadata labels:
"app.kubernetes.io/instance" "app.kubernetes.io/managed-by" "app.kubernetes.io/name" labels are missing.
Describe the solution you'd like
Example how this can be fixed:
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: