Skip to content

Commit 45a869c

Browse files
author
Arvind Thirumurugan
committed
minor fix
1 parent 5bec27d commit 45a869c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/cordon-cluster/main/main.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ func main() {
4141
log.Fatalf("cluster name to cordon cannot be empty")
4242
}
4343

44+
if err := clusterv1beta1.AddToScheme(scheme); err != nil {
45+
log.Fatalf("failed to add custom APIs (cluster) to the runtime scheme: %v", err)
46+
}
47+
if err := placementv1beta1.AddToScheme(scheme); err != nil {
48+
log.Fatalf("failed to add custom APIs (placement) to the runtime scheme: %v", err)
49+
}
50+
4451
hubClient, err := utils.GetClusterClientFromClusterContext(*hubClusterContext, scheme)
4552
if err != nil {
4653
log.Fatalf("failed to create hub cluster client: %v", err)

0 commit comments

Comments
 (0)