Skip to content

Commit 0030652

Browse files
Merge pull request #1345 from dprince/operator_kube_rbac_proxy
controller-operator: configure kube-rbac-proxy
2 parents 42a3c6a + c7b5064 commit 0030652

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,8 @@ endif
370370
bundle: build manifests kustomize operator-sdk ## Generate bundle manifests and metadata, then validate generated files.
371371
$(OPERATOR_SDK) generate kustomize manifests -q
372372
cd config/operator/deployment/ && $(KUSTOMIZE) edit set image controller=$(IMG) && \
373-
$(KUSTOMIZE) edit add patch --kind Deployment --name openstack-operator-controller-operator --namespace system --patch "[{\"op\": \"replace\", \"path\": \"/spec/template/spec/containers/0/env/0\", \"value\": {\"name\": \"OPENSTACK_RELEASE_VERSION\", \"value\": \"$(OPENSTACK_RELEASE_VERSION)\"}}]" && \
374-
$(KUSTOMIZE) edit add patch --kind Deployment --name openstack-operator-controller-operator --namespace system --patch "[{\"op\": \"replace\", \"path\": \"/spec/template/spec/containers/0/env/1\", \"value\": {\"name\": \"OPERATOR_IMAGE_URL\", \"value\": \"$(IMG)\"}}]"
373+
$(KUSTOMIZE) edit add patch --kind Deployment --name openstack-operator-controller-operator --namespace system --patch "[{\"op\": \"replace\", \"path\": \"/spec/template/spec/containers/1/env/0\", \"value\": {\"name\": \"OPENSTACK_RELEASE_VERSION\", \"value\": \"$(OPENSTACK_RELEASE_VERSION)\"}}]" && \
374+
$(KUSTOMIZE) edit add patch --kind Deployment --name openstack-operator-controller-operator --namespace system --patch "[{\"op\": \"replace\", \"path\": \"/spec/template/spec/containers/1/env/1\", \"value\": {\"name\": \"OPERATOR_IMAGE_URL\", \"value\": \"$(IMG)\"}}]"
375375
$(KUSTOMIZE) build config/operator --load-restrictor='LoadRestrictionsNone' | $(OPERATOR_SDK) generate bundle $(BUNDLE_GEN_FLAGS)
376376
$(OPERATOR_SDK) bundle validate ./bundle
377377

config/operator/deployment/deployment.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,29 @@ spec:
3737
# seccompProfile:
3838
# type: RuntimeDefault
3939
containers:
40+
- args:
41+
- --secure-listen-address=0.0.0.0:8443
42+
- --upstream=http://127.0.0.1:8080/
43+
- --logtostderr=true
44+
- --v=0
45+
image: quay.io/openstack-k8s-operators/kube-rbac-proxy:v0.16.0
46+
name: kube-rbac-proxy
47+
ports:
48+
- containerPort: 8443
49+
name: https
50+
protocol: TCP
51+
resources:
52+
limits:
53+
cpu: 500m
54+
memory: 128Mi
55+
requests:
56+
cpu: 5m
57+
memory: 64Mi
4058
- command:
4159
- /operator
4260
args:
61+
- --health-probe-bind-address=:8081
62+
- --metrics-bind-address=127.0.0.1:8080
4363
- --leader-elect
4464
env:
4565
# we use kustomize to replace the first 2 envs here so do not reorder these

0 commit comments

Comments
 (0)