Skip to content

Commit 9eee17e

Browse files
committed
Add defaulted values to mao deployment
When CVO calls ensureDeployment it might wrongly return modified=true and do an api server update extra call when comparing the raw spec against the version fetch from the API server
1 parent 03f0998 commit 9eee17e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

install/0000_30_machine-api-operator_11_deployment.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: apps/v1beta2
1+
apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: machine-api-operator
@@ -31,6 +31,7 @@ spec:
3131
ports:
3232
- containerPort: 8443
3333
name: https
34+
protocol: TCP
3435
volumeMounts:
3536
- name: config
3637
mountPath: /etc/kube-rbac-proxy
@@ -51,6 +52,7 @@ spec:
5152
- name: COMPONENT_NAMESPACE
5253
valueFrom:
5354
fieldRef:
55+
apiVersion: v1
5456
fieldPath: metadata.namespace
5557
- name: METRICS_PORT
5658
value: "8080"
@@ -83,9 +85,12 @@ spec:
8385
- name: config
8486
configMap:
8587
name: kube-rbac-proxy
88+
defaultMode: 420
8689
- name: images
8790
configMap:
88-
name: machine-api-operator-images
91+
defaultMode: 420
92+
name: machine-api-operator-images
8993
- name: machine-api-operator-tls
9094
secret:
95+
defaultMode: 420
9196
secretName: machine-api-operator-tls

0 commit comments

Comments
 (0)