Skip to content

Commit c70140e

Browse files
tmshortci-robot
authored andcommitted
UPSTREAM: <carry>: Update openshift CAs to operator-controller
The /run/secrets/kubernetes.io/serviceaccount/ directory is projected into the pod and contains the following CA certificates: * configmap/kube-root-ca.crt as ca.crt * configmap/openshift-service-ca.crt as service-ca.crt Update the --ca-certs-dir argument to reference the directory. Signed-off-by: Todd Short <[email protected]>
1 parent d1f25ec commit c70140e

6 files changed

+2
-36
lines changed

openshift/kustomize/overlays/openshift/olmv1-ns/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
namespace: OPENSHIFT-NAMESPACE
33

44
resources:
5-
- resources/ca_configmap.yaml
65
- ../../../../../config/base/crd
76
- ../../../../../config/base/rbac
87
- ../../../../../config/base/manager
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
- op: add
2-
path: /spec/template/spec/volumes/-
3-
value: {"name":"olmv1-certificate", "configMap":{"name":"operator-controller-openshift-ca", "optional": false, "items": [{"key": "service-ca.crt", "path": "olm-ca.crt"}]}}
4-
- op: add
5-
path: /spec/template/spec/containers/0/volumeMounts/-
6-
value: {"name":"olmv1-certificate", "readOnly": true, "mountPath":"/var/certs/olm-ca.crt", "subPath":"olm-ca.crt"}
71
- op: add
82
path: /spec/template/spec/containers/0/args/-
9-
value: "--ca-certs-dir=/var/certs"
3+
value: "--ca-certs-dir=/run/secrets/kubernetes.io/serviceaccount"

openshift/kustomize/overlays/openshift/olmv1-ns/resources/ca_configmap.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

openshift/manifests/18-configmap-openshift-operator-controller-operator-controller-openshift-ca.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ spec:
4343
- --health-probe-bind-address=:8081
4444
- --metrics-bind-address=:8443
4545
- --leader-elect
46-
- --ca-certs-dir=/var/certs
46+
- --ca-certs-dir=/run/secrets/kubernetes.io/serviceaccount
4747
- --v=${LOG_VERBOSITY}
4848
- --global-pull-secret=openshift-config/pull-secret
4949
command:
@@ -76,10 +76,6 @@ spec:
7676
volumeMounts:
7777
- mountPath: /var/cache
7878
name: cache
79-
- mountPath: /var/certs/olm-ca.crt
80-
name: olmv1-certificate
81-
readOnly: true
82-
subPath: olm-ca.crt
8379
- mountPath: /etc/containers
8480
name: etc-containers
8581
readOnly: true
@@ -92,13 +88,6 @@ spec:
9288
volumes:
9389
- emptyDir: {}
9490
name: cache
95-
- configMap:
96-
items:
97-
- key: service-ca.crt
98-
path: olm-ca.crt
99-
name: operator-controller-openshift-ca
100-
optional: false
101-
name: olmv1-certificate
10291
- hostPath:
10392
path: /etc/containers
10493
type: Directory

0 commit comments

Comments
 (0)