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

adding label on default template #161

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

mshitrit
Copy link
Member

@mshitrit mshitrit commented Nov 8, 2023

ECOPROJECT-1759

ATM The UI is looking for SNR Template with the default remediation strategy completely hard coded (i.e hard coded for ResourceDeletion).
In order to make the UI more robust and prevent unnecessary changes in the UI when the default Strategy is changed, we'd put a label on the Template with the default strategy instead.

Signed-off-by: Michael Shitrit <[email protected]>
Copy link
Contributor

openshift-ci bot commented Nov 8, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci bot added the approved label Nov 8, 2023
@mshitrit
Copy link
Member Author

mshitrit commented Nov 8, 2023

/test ?

Copy link
Contributor

openshift-ci bot commented Nov 8, 2023

@mshitrit: The following commands are available to trigger required jobs:

  • /test 4.12-ci-index-self-node-remediation-bundle
  • /test 4.12-images
  • /test 4.12-openshift-e2e
  • /test 4.12-test
  • /test 4.13-ci-index-self-node-remediation-bundle
  • /test 4.13-images
  • /test 4.13-openshift-e2e
  • /test 4.13-test
  • /test 4.14-ci-index-self-node-remediation-bundle
  • /test 4.14-images
  • /test 4.14-openshift-e2e
  • /test 4.14-test

Use /test all to run all jobs.

In response to this:

/test ?

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.

@mshitrit
Copy link
Member Author

mshitrit commented Nov 8, 2023

/test 4.12-openshift-e2e

Copy link
Member

@slintes slintes left a comment

Choose a reason for hiding this comment

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

/lgtm

return []*SelfNodeRemediationTemplate{
{
ObjectMeta: metav1.ObjectMeta{
Name: resourceDeletionTemplateName,
Name: defaultTemplateName,
Labels: templateLabels,
Copy link
Member

@slintes slintes Nov 8, 2023

Choose a reason for hiding this comment

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

just fyi, this is also possible:

Labels: map[string]string {
    labels.DefaultTemplate: "",
},

Copy link
Contributor

openshift-ci bot commented Nov 8, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mshitrit, slintes

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

@slintes
Copy link
Member

slintes commented Nov 8, 2023

/hold

leaving it up to you which PR should be merged first

@mshitrit mshitrit changed the title [WIP] adding label on default template adding label on default template Nov 9, 2023
@mshitrit mshitrit marked this pull request as ready for review November 9, 2023 12:52
@openshift-ci openshift-ci bot requested review from razo7 and slintes November 9, 2023 12:53
@mshitrit
Copy link
Member Author

mshitrit commented Nov 9, 2023

/unhold

@openshift-ci openshift-ci bot merged commit 5662737 into medik8s:main Nov 9, 2023
1 check 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