diff --git a/roles/openshift-apps/mirrormanager/templates/_macros.yml.j2 b/roles/openshift-apps/mirrormanager/templates/_macros.yml.j2 index 8aa3a74775..53da9ef404 100644 --- a/roles/openshift-apps/mirrormanager/templates/_macros.yml.j2 +++ b/roles/openshift-apps/mirrormanager/templates/_macros.yml.j2 @@ -2,6 +2,9 @@ - name: config mountPath: "/etc/mirrormanager" readOnly: true + - name: secrets + mountPath: "/etc/mirrormanager-secrets" + readOnly: true - name: scripts mountPath: "/opt/scripts" readOnly: true @@ -39,6 +42,9 @@ - name: config configMap: name: config + - name: secrets + secret: + secretName: secrets - name: var-lib persistentVolumeClaim: claimName: data diff --git a/roles/openshift-apps/mirrormanager/templates/deploymentconfig.yml.j2 b/roles/openshift-apps/mirrormanager/templates/deploymentconfig.yml.j2 index a16d2f3097..c395520633 100644 --- a/roles/openshift-apps/mirrormanager/templates/deploymentconfig.yml.j2 +++ b/roles/openshift-apps/mirrormanager/templates/deploymentconfig.yml.j2 @@ -56,15 +56,9 @@ spec: volumeMounts: {{ common_volume_mounts() }} - - name: secrets - mountPath: "/etc/mirrormanager-secrets" - readOnly: true volumes: {{ common_volumes() }} - - name: secrets - secret: - secretName: secrets {{ security_context() }} triggers: