Skip to content
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 openshift/generate-manifests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ mkdir -p "${TMP_ROOT}/openshift"
cp -a "${REPO_ROOT}/openshift/kustomize" "${TMP_ROOT}/openshift/kustomize"

# Override OPENSHIFT-NAMESPACE to ${NAMESPACE}
find "${TMP_ROOT}" -name "*.yaml" -exec sed -i "s/OPENSHIFT-NAMESPACE/${NAMESPACE}/g" {} \;
find "${TMP_ROOT}" -name "*.yaml" -exec sed -i.tmp "s/OPENSHIFT-NAMESPACE/${NAMESPACE}/g" {} \;

# Create a temp dir for manifests
TMP_MANIFEST_DIR="${TMP_ROOT}/manifests"
Expand Down
4 changes: 4 additions & 0 deletions openshift/kustomize/overlays/openshift/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ patches:
kind: Deployment
name: controller-manager
path: patches/manager_deployment_mount_etc_containers.yaml
- target:
kind: Deployment
name: controller-manager
path: patches/manager_deployment_mount_auth_host.yaml
- path: patches/manager_namespace_privileged.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- op: add
path: /spec/template/spec/volumes/-
value: {"name":"global-auth-file", "hostPath":{"path":"/var/lib/kubelet/config.json", "type": "File"}}
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value: {"name":"global-auth-file", "readOnly": true, "mountPath":"/etc/operator-controller/auth.json"}
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ spec:
- mountPath: /etc/containers
name: etc-containers
readOnly: true
- mountPath: /etc/operator-controller/auth.json
name: global-auth-file
readOnly: true
- args:
- --secure-listen-address=0.0.0.0:8443
- --upstream=http://127.0.0.1:8080/
Expand Down Expand Up @@ -122,4 +125,8 @@ spec:
path: /etc/containers
type: Directory
name: etc-containers
- hostPath:
path: /var/lib/kubelet/config.json
type: File
name: global-auth-file
priorityClassName: system-cluster-critical