-
Notifications
You must be signed in to change notification settings - Fork 27
add cluster owner label for the nstemplateset resource #489
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
add cluster owner label for the nstemplateset resource #489
Conversation
WalkthroughA new exported constant Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)api/v1alpha1/nstemplateset_types.go (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
| TierLabelKey = LabelKeyPrefix + "tier" | ||
| ProviderLabelKey = LabelKeyPrefix + "provider" | ||
| ProviderLabelValue = "codeready-toolchain" | ||
| ClusterOwnerLabelKey = LabelKeyPrefix + "cluster-owner" |
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.
This label is needed only in the member operator for distinguishing between 2 member operators running in a single cluster. As far as I understood the problem, this label isn't really needed if the members are in different clusters.
So "cluster-owner" seems a bit confusing to me. What about something like "managing-member"?
|
Closing since we will follow other approach |



Description
We need a new label for the nstemplateset resource that indicates which cluster owns it. This need is due to the flakiness we are facing when retagetting the same space. For more info, please check codeready-toolchain/member-operator#707
Checks
Did you run
make generatetarget? yesDid
make generatechange anything in other projects (host-operator, member-operator)? noIn case of new CRD, did you the following? N/A
resources/setup/roles/host.yamlin the sandbox-sre repositoryPROJECTfile: https://github.com/codeready-toolchain/host-operator/blob/master/PROJECTCSVfile: https://github.com/codeready-toolchain/host-operator/blob/master/config/manifests/bases/host-operator.clusterserviceversion.yamlIn case other projects are changed, please provides PR links. N/A
Related PR
codeready-toolchain/member-operator#707
Issue ticket number and link
SANDBOX-1472
Summary by CodeRabbit