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

check completion only when time matches (https://issues.redhat.com/browse/ACM-14460) #505

Conversation

birsanv
Copy link
Contributor

@birsanv birsanv commented Oct 3, 2024

https://issues.redhat.com/browse/ACM-14460

related to #502

Updated the policies to address just the check-backup-completed template, since QE considered the changes related to #502 add more complexity to the message status

Changes:

Screenshot 2024-10-03 at 1 59 18 PM

Signed-off-by: Valentina Birsan <vbirsan@redhat.com>
@birsanv
Copy link
Contributor Author

birsanv commented Oct 3, 2024

/cc @dhaiducek

@openshift-ci openshift-ci bot requested a review from dhaiducek October 3, 2024 18:08
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 if you want to use .ManagedClusterName directly

LGTM!

@@ -207,24 +182,34 @@ spec:
name: check-backup-completed
spec:
object-templates-raw: |
{{hub with $configMap := (lookup "v1" "ConfigMap" "" "hdr-app-configmap") hub}}
{{hub $clusterName := (printf "%s" .ManagedClusterName) hub}}
Copy link
Member

Choose a reason for hiding this comment

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

(nit) What's the purpose of setting a variable to a variable here?

Copy link
Contributor Author

@birsanv birsanv Oct 3, 2024

Choose a reason for hiding this comment

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

hi @dhaiducek thank you for reviewing

I preferred to create separate variables, I found it easier for me to read the script.

Copy link

openshift-ci bot commented Oct 3, 2024

[APPROVALNOTIFIER] This PR is APPROVED

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

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Oct 3, 2024
@dhaiducek
Copy link
Member

/unhold

@openshift-merge-bot openshift-merge-bot bot merged commit f21b9b8 into open-cluster-management-io:main Oct 3, 2024
3 checks passed
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.

2 participants