Skip to content

Commit c5c0be5

Browse files
Merge pull request #422 from enxebre/resync-events
reduce reconciling events
2 parents e66fb43 + 9eee17e commit c5c0be5

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

cmd/machine-api-operator/start.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func startControllers(ctx *ControllerContext) {
125125
ctx.ClientBuilder.KubeClientOrDie(componentName),
126126
ctx.ClientBuilder.OpenshiftClientOrDie(componentName),
127127
recorder,
128-
).Run(2, ctx.Stop)
128+
).Run(1, ctx.Stop)
129129
}
130130

131131
func startMetricsCollectionAndServer(ctx *ControllerContext) {

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)