Skip to content

Add ManagedClusterLabels to hub template context #95

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

JustinKuli
Copy link
Member

The labels on the ManagedCluster where the policy is being propagated are now available for use in hub templates. And when the labels on the ManagedCluster change, the template will automatically be updated.

Refs:

@JustinKuli JustinKuli added the enhancement New feature or request label Mar 17, 2023
@openshift-ci openshift-ci bot requested review from dhaiducek and willkutler March 17, 2023 20:27
@JustinKuli
Copy link
Member Author

/hold

@JustinKuli JustinKuli force-pushed the 4168-managedclusterlabels-in-templates branch 2 times, most recently from efe0342 to 354a312 Compare March 21, 2023 13:59
@dhaiducek
Copy link
Member

LGTM! There's a conflict to resolve here, though.

@JustinKuli
Copy link
Member Author

/unhold

Now ready for real review!

go.mod Outdated
@@ -90,6 +90,7 @@ require (
)

replace (
github.com/stolostron/go-template-utils/v3 => github.com/JustinKuli/go-template-utils/v3 v3.0.0-20230317191931-87e9558c03e6
Copy link
Member

Choose a reason for hiding this comment

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

Nope

The labels on the ManagedCluster where the policy is being propagated
are now available for use in hub templates. And when the labels on the
ManagedCluster change, the template will automatically be updated.

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

Signed-off-by: Justin Kulikauskas <[email protected]>
Signed-off-by: Justin Kulikauskas <[email protected]>
@JustinKuli JustinKuli force-pushed the 4168-managedclusterlabels-in-templates branch from 76df216 to 1f5c0ca Compare March 28, 2023 20:07
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.

LGTM!

@@ -21,6 +21,7 @@ jobs:
env:
REGISTRY: localhost:5000
strategy:
fail-fast: false
Copy link
Member

Choose a reason for hiding this comment

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

I should have known this would be in here 😉

@openshift-ci
Copy link

openshift-ci bot commented Mar 28, 2023

[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

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