Skip to content

Commit 5bec27d

Browse files
author
Arvind Thirumurugan
committed
minor changes
1 parent 1fb35f4 commit 5bec27d

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

tools/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ go run tools/uncordon-cluster/main/main.go --hubClusterContext <hub-cluster-cont
4646
the tool currently is a go program that also takes the hub cluster context and the member cluster name as arguments.
4747

4848
The command internally removes all taints add to a `MemberCluster` resource of the member cluster and hence if any
49-
`ClusterResourcePlacementEviction` object present which can propagate resources to the member cluster, it can continue to do so.
49+
`ClusterResourcePlacementEviction` object present which can propagate resources to the member cluster, it can continue to do so.

tools/cordon-cluster/main/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ func main() {
128128
}
129129
}
130130

131-
// wait until all evictions reach a terminal state.
132131
// TODO: move isEvictionInTerminalState to a function in the pkg/utils package.
132+
// wait until all evictions reach a terminal state.
133133
for crpName := range crpNameMap {
134134
err = wait.ExponentialBackoffWithContext(ctx, retry.DefaultBackoff, func(ctx context.Context) (bool, error) {
135135
evictionName := fmt.Sprintf(testEvictionNameFormat, crpName, *clusterName)

tools/uncordon-cluster/main/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,9 @@ func main() {
6565
return hubClient.Update(ctx, &mc)
6666
})
6767

68+
if err != nil {
69+
log.Fatalf("failed to remove taints from member cluster %s: %v", *clusterName, err)
70+
}
71+
6872
log.Printf("uncordoned member cluster %s", *clusterName)
6973
}

0 commit comments

Comments
 (0)