-
Notifications
You must be signed in to change notification settings - Fork 78
Update OLM to use UID for OG Labels #31
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
Conversation
@awgreene: This pull request references Bugzilla bug 1830031, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
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. |
@awgreene: This pull request references Bugzilla bug 1830031, which is valid. 3 validation(s) were run on this bug
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Are you satisfied with the existing test coverage for related behaviors?
@awgreene: No Bugzilla bug is referenced in the title of this pull request. 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. |
6c07270
to
89af2c2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/lgtm with a minor nit. |
/approve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
Looks good. I think at some point we want to remove the helpers from the type definitions. Maybe we should write decorator types?
New changes are detected. LGTM label has been removed. |
Problem: OLM applies an "OperatorGroup Label" to namespaces which makes it easy to select namespaces that are included in an OperatorGroup. Currently, OLM applies a label with a blank value whose key is equal to "olm.operatorgroup/<OperatorGroup Namespace>.<OperatorGroup Name>". Kubernetes limits the lengths of label values and keys to 63 characters. This limit can easily be overcome when the OperatorGroup has a long name or when it is deployed in a namespace with a long name. Solution: Update OLM to use "olm.operatorgroup.uid/<OperatorGroup UID>" as the key for OperatorGroup labels. The length of this label will always be 58 characters as UIDs are 36 characters long.
Problem:
OLM applies an "OperatorGroup Label" to namespaces which makes it easy
to select namespaces that are included in an OperatorGroup.
Currently, OLM applies a label with a blank value whose key is equal to
"olm.operatorgroup/OperatorGroup Namespace.OperatorGroup Name".
Kubernetes limits the lengths of label values and keys to 63 characters.
This limit can easily be overcome when the OperatorGroup has a long name
or when it is deployed in a namespace with a long name.
Solution:
Update OLM to use "olm.operatorgroup.uid/" as the key for
OperatorGroup labels. The length of this label will always be 58
characters as UIDs are 36 characters long.