We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bec27d commit 45a869cCopy full SHA for 45a869c
tools/cordon-cluster/main/main.go
@@ -41,6 +41,13 @@ func main() {
41
log.Fatalf("cluster name to cordon cannot be empty")
42
}
43
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
+
51
hubClient, err := utils.GetClusterClientFromClusterContext(*hubClusterContext, scheme)
52
if err != nil {
53
log.Fatalf("failed to create hub cluster client: %v", err)
0 commit comments