-
Notifications
You must be signed in to change notification settings - Fork 562
Bug 1830031: Update OLM to use UID for OG Labels #1496
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
Bug 1830031: Update OLM to use UID for OG Labels #1496
Conversation
@awgreene: This pull request references Bugzilla bug 1830031, which is valid. 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. |
/approve |
It looks like a libcontainer package using CGO is being transitively pulled in via the latest operator-registry: https://github.com/operator-framework/operator-lifecycle-manager/pull/1496/checks?check_run_id=637003810, which breaks the upstream image build. It has +nocgo implementations, though. |
Looks like there's a legitimate E2E failure -- OpenShift Prow was broken over most of the weekend and incorrectly marking failing checks green. /test e2e-aws-olm |
/hold |
/hold cancel |
/retest |
/lgtm |
/retest Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/hold |
/unhold |
/test unit |
/retest |
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 great! One last question on CGO usage.
@@ -2096,7 +2096,7 @@ var _ = Describe("Operator Group", func() { | |||
}() | |||
|
|||
// Create the OperatorGroup Label | |||
ogLabel := fmt.Sprintf("olm.operatorgroup/%s.%s", testNamespaceA, operatorGroup.GetName()) |
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.
Note: can we make this a method of *OperatorGroup
or a wrapper?
/retest |
Problem: OLM is using an older version of the operator-framework/api repository with which OLM applies a label with a blank value whose key is equal to "olm.operatorgroup/.". 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 import the latest version of the operator-framework/api repository that uses "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.
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: awgreene, benluddy, njhale The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@awgreene: All pull requests linked via external trackers have merged: operator-framework/api#31, operator-framework/operator-lifecycle-manager#1496. Bugzilla bug 1830031 has been moved to the MODIFIED state. 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. |
/cherry-pick release-4.4 |
@awgreene: #1496 failed to apply on top of branch "release-4.4":
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. |
Problem:
OLM is using an older version of the operator-framework/api repository
with which OLM applies a label with a blank value whose key is equal to
"olm.operatorgroup/.".
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 import the latest version of the operator-framework/api
repository that uses "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.