-
Notifications
You must be signed in to change notification settings - Fork 125
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
OSD-24614 : Update osdctl to add justification arguement for infranode resize #598
Conversation
resizedInfraNodeServiceLogTemplate = "https://raw.githubusercontent.com/openshift/managed-notifications/master/osd/infranode_resized.json" | ||
GCPresizedInfraNodeServiceLogTemplate = "https://raw.githubusercontent.com/openshift/managed-notifications/master/osd/gcp/GCP_infranode_resized_auto.json" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/hold
Waiting until the service log are properly updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done via openshift/managed-notifications#327
/hold cancel |
/test lint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixing the lint failures. The trailing commas seems to be causing the issue
cmd/cluster/resize/infra_node.go
Outdated
if mp.Spec.Platform.AWS != nil { | ||
return servicelog.PostCmdOptions{ | ||
Template: resizedInfraNodeServiceLogTemplate, | ||
ClusterId: clusterId, | ||
TemplateParams: []string{fmt.Sprintf("INSTANCE_TYPE=%s", instanceType)}, | ||
TemplateParams: []string{fmt.Sprintf("INSTANCE_TYPE=%s", instanceType),fmt.Sprintf("JUSTIFICATION=%s", justification)}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TemplateParams: []string{fmt.Sprintf("INSTANCE_TYPE=%s", instanceType),fmt.Sprintf("JUSTIFICATION=%s", justification)}, | |
TemplateParams: []string{fmt.Sprintf("INSTANCE_TYPE=%s", instanceType), fmt.Sprintf("JUSTIFICATION=%s", justification)}, |
cmd/cluster/resize/infra_node.go
Outdated
} | ||
} else if mp.Spec.Platform.GCP != nil { | ||
return servicelog.PostCmdOptions{ | ||
Template: GCPresizedInfraNodeServiceLogTemplate, | ||
ClusterId: clusterId, | ||
TemplateParams: []string{fmt.Sprintf("INSTANCE_TYPE=%s", instanceType)}, | ||
TemplateParams: []string{fmt.Sprintf("INSTANCE_TYPE=%s", instanceType),fmt.Sprintf("JUSTIFICATION=%s", justification)}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TemplateParams: []string{fmt.Sprintf("INSTANCE_TYPE=%s", instanceType),fmt.Sprintf("JUSTIFICATION=%s", justification)}, | |
TemplateParams: []string{fmt.Sprintf("INSTANCE_TYPE=%s", instanceType), fmt.Sprintf("JUSTIFICATION=%s", justification)}, |
/label tide/merge-method-squash |
@MitaliBhalla: all tests passed! Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: devppratik, MitaliBhalla 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 |
Our current infra node resize SL does mention about the justification of the resize, . However, in our [SOP] (https://github.com/openshift/ops-sop/blob/master/v4/alerts/InfraNodesNeedResizingSRE.md) , the command mentioned doesn't mention about the justification arguement as osdctl refers to other SL that doesn't have the justification arguement. https://github.com/openshift/osdctl/blob/master/cmd/cluster/resize/infra_node.go#L35C43-L35C147
This PR incorporates for :