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 a default template label #13

Merged
merged 2 commits into from
Nov 8, 2023

Conversation

mshitrit
Copy link
Member

@mshitrit mshitrit commented Nov 7, 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 7, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mshitrit

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 Nov 7, 2023
@@ -7,4 +7,6 @@ const (
MasterRole = "node-role.kubernetes.io/master"
// ControlPlaneRole is the new role label of control plane nodes
ControlPlaneRole = "node-role.kubernetes.io/control-plane"
// DefaultTemplate is a label that would be set in case a remediator may have several remediation templates in order to signal to the UI which one is the default
Copy link
Contributor

Choose a reason for hiding this comment

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

Good idea to have the label in common.
I'd like to come up with a shorter description. What do you think about something like the following?

DefaultTemplate label indicates to third party tools (e.g. UI) the default remediation template in case several exists.

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

clobrano commented Nov 8, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Nov 8, 2023
@openshift-merge-bot openshift-merge-bot bot merged commit b2f25e7 into medik8s:main Nov 8, 2023
4 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