Skip to content

reduce reconciling events #422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/machine-api-operator/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func startControllers(ctx *ControllerContext) {
ctx.ClientBuilder.KubeClientOrDie(componentName),
ctx.ClientBuilder.OpenshiftClientOrDie(componentName),
recorder,
).Run(2, ctx.Stop)
).Run(1, ctx.Stop)
}

func startMetricsCollectionAndServer(ctx *ControllerContext) {
Expand Down
9 changes: 7 additions & 2 deletions install/0000_30_machine-api-operator_11_deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: apps/v1beta2
apiVersion: apps/v1
kind: Deployment
metadata:
name: machine-api-operator
Expand Down Expand Up @@ -31,6 +31,7 @@ spec:
ports:
- containerPort: 8443
name: https
protocol: TCP
volumeMounts:
- name: config
mountPath: /etc/kube-rbac-proxy
Expand All @@ -51,6 +52,7 @@ spec:
- name: COMPONENT_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: METRICS_PORT
value: "8080"
Expand Down Expand Up @@ -83,9 +85,12 @@ spec:
- name: config
configMap:
name: kube-rbac-proxy
defaultMode: 420
- name: images
configMap:
name: machine-api-operator-images
defaultMode: 420
name: machine-api-operator-images
- name: machine-api-operator-tls
secret:
defaultMode: 420
secretName: machine-api-operator-tls