Skip to content

Commit 7804a83

Browse files
author
Phillip Wittrock
authored
Merge pull request kubernetes-sigs#11 from roberthbailey/clusterctl-crds
Minor fixes to make clusterctl work with CRDs.
2 parents 69d8dfe + 9374655 commit 7804a83

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

cmd/clusterctl/clusterdeployer/clusterclient/clusterclient.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ func (c *client) UpdateClusterObjectEndpoint(masterIP, clusterName, namespace st
407407
Host: masterIP,
408408
Port: apiServerPort,
409409
})
410-
_, err = c.clientSet.ClusterV1alpha1().Clusters(namespace).UpdateStatus(cluster)
410+
_, err = c.clientSet.ClusterV1alpha1().Clusters(namespace).Update(cluster)
411411
return err
412412
}
413413

config/default/manager_image_patch.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ spec:
77
template:
88
spec:
99
containers:
10-
# Change the value of image field below to your controller image URL
11-
- image: IMAGE_URL
10+
- image: gcr.io/k8s-cluster-api/cluster-api-controller:latest
1211
name: manager

config/manager/manager.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,17 @@ spec:
4040
control-plane: controller-manager
4141
controller-tools.k8s.io: "1.0"
4242
spec:
43+
tolerations:
44+
- effect: NoSchedule
45+
key: node-role.kubernetes.io/master
46+
- key: CriticalAddonsOnly
47+
operator: Exists
48+
- effect: NoExecute
49+
key: node.alpha.kubernetes.io/notReady
50+
operator: Exists
51+
- effect: NoExecute
52+
key: node.alpha.kubernetes.io/unreachable
53+
operator: Exists
4354
containers:
4455
- command:
4556
- /root/manager

0 commit comments

Comments
 (0)