Skip to content
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

Use local-cluster label #498

Conversation

JustinKuli
Copy link
Member

For a while now, self-managed hub ManagedCluster resources have had the local-cluster='true' label, and we may start seeing those clusters have different names. This PR adjusts many occurrences in the collection of using the name; now they use the label.

The change to the backup policy to avoid a named lookup is in a separate commit because I think it needs extra attention, it's less obvious than the other changes.

Basing things off of only the name being "local-cluster" may not be
reliable.

Refs:
 - https://issues.redhat.com/browse/ACM-13274

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
Self-managed hubs might not always be named local-cluster.

Refs:
 - https://issues.redhat.com/browse/ACM-13274

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
Copy link
Member

@dhaiducek dhaiducek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/hold I think @birsanv should give it a quick review also since we're modifying the backup/restore policy.

Nice work!

Copy link

openshift-ci bot commented Aug 19, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dhaiducek, JustinKuli

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:
  • OWNERS [JustinKuli,dhaiducek]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@dhaiducek
Copy link
Member

/cc @birsanv

Copy link

openshift-ci bot commented Aug 19, 2024

@dhaiducek: GitHub didn't allow me to request PR reviews from the following users: birsanv.

Note that only open-cluster-management-io members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc @birsanv

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-sigs/prow repository.

@birsanv
Copy link
Contributor

birsanv commented Aug 20, 2024

thank you for the changes @JustinKuli !

/lgtm

Copy link

openshift-ci bot commented Aug 20, 2024

@birsanv: changing LGTM is restricted to collaborators

In response to this:

thank you for the changes @JustinKuli !

/lgtm

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-sigs/prow repository.

@JustinKuli
Copy link
Member Author

/unhold

@openshift-merge-bot openshift-merge-bot bot merged commit 82fa508 into open-cluster-management-io:main Aug 20, 2024
3 checks passed
@JustinKuli JustinKuli deleted the 13274-use-local-cluster-label branch August 20, 2024 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants