Skip to content

Commit

Permalink
fix: 🐛 filename name for cordon and drain
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskaransarkaria committed Dec 13, 2023
1 parent c0af7e3 commit af7409e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/commands/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func addPipelineCordonAndDrainClusterCmd(toplevel *cobra.Command) {
}

if cliOpt.NodeGroupName == "" {
contextLogger.Fatal("--node-group-to-drain is required")
contextLogger.Fatal("--node-group is required")
}

pipeline.CordonAndDrainPipelineShellCmds(cliOpt.Name, cliOpt.NodeGroupName)
Expand Down
2 changes: 1 addition & 1 deletion pkg/pipeline/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func DeletePipelineShellCmds(clusterName string) {
}

func CordonAndDrainPipelineShellCmds(clusterName, nodeGroup string) {
strCmd := fmt.Sprintf("wget -qO- https://raw.githubusercontent.com/ministryofjustice/cloud-platform-terraform-concourse/main/pipelines/manager/main/cordon-and-drain.yaml | fly -t manager set-pipeline --pipeline cordon-and-drain-nodes --config - -v node_group_to_drain=%s -v cluster_name=%s", nodeGroup, clusterName)
strCmd := fmt.Sprintf("wget -qO- https://raw.githubusercontent.com/ministryofjustice/cloud-platform-terraform-concourse/main/pipelines/manager/main/cordon-and-drain-nodes.yaml | fly -t manager set-pipeline --pipeline cordon-and-drain-nodes --config - -v node_group_to_drain=%s -v cluster_name=%s", nodeGroup, clusterName)

runCmd("fly", []string{"--target", "manager", "login", "--team-name", "main", "--concourse-url", "https://concourse.cloud-platform.service.justice.gov.uk/"})
runCmd("bash", []string{"-c", strCmd})
Expand Down

0 comments on commit af7409e

Please sign in to comment.