summaryrefslogtreecommitdiffstats
path: root/kubernetes/cds/charts/cds-py-executor/templates/deployment.yaml
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-07-02 09:35:39 +0200
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-07-03 15:48:06 +0200
commitdaf4e90f1cdcb766298506ecbafd094681fa1b6c (patch)
treefd9ed6ea51e02de43a4d76cb7dbc14db9d1b6399 /kubernetes/cds/charts/cds-py-executor/templates/deployment.yaml
parent9a684f1a990c7dfdf7e308bef00333e50164e624 (diff)
[CDS] Add hardcoded certificates to CDS
Issue-ID: CCSDK-2410 Issue-ID: CCSDK-2519 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: I23aa5fd6c23659efece70067172660aaa3d4909c
Diffstat (limited to 'kubernetes/cds/charts/cds-py-executor/templates/deployment.yaml')
-rwxr-xr-xkubernetes/cds/charts/cds-py-executor/templates/deployment.yaml14
1 files changed, 8 insertions, 6 deletions
diff --git a/kubernetes/cds/charts/cds-py-executor/templates/deployment.yaml b/kubernetes/cds/charts/cds-py-executor/templates/deployment.yaml
index f9c3377dd8..4210a0311a 100755
--- a/kubernetes/cds/charts/cds-py-executor/templates/deployment.yaml
+++ b/kubernetes/cds/charts/cds-py-executor/templates/deployment.yaml
@@ -66,15 +66,14 @@ spec:
readOnly: true
- mountPath: {{ .Values.persistence.deployedBlueprint }}
name: {{ include "common.fullname" . }}-blueprints
- resources:
-{{ include "common.resources" . | nindent 12 }}
+ - mountPath: /opt/app/onap/python/certs/py-executor/
+ name: certificates
+ resources: {{ include "common.resources" . | nindent 12 }}
{{- if .Values.nodeSelector }}
- nodeSelector:
-{{ toYaml .Values.nodeSelector | nindent 10 }}
+ nodeSelector: {{ toYaml .Values.nodeSelector | nindent 10 }}
{{- end -}}
{{- if .Values.affinity }}
- affinity:
-{{ toYaml .Values.affinity | nindent 10 }}
+ affinity: {{ toYaml .Values.affinity | nindent 10 }}
{{- end }}
volumes:
- name: localtime
@@ -86,5 +85,8 @@ spec:
- name: {{ include "common.fullname" . }}-blueprints
persistentVolumeClaim:
claimName: {{ include "common.release" . }}-cds-blueprints
+ - name: certificates
+ secret:
+ secretName: {{ include "common.secret.getSecretNameFast" (dict "global" . "uid" "cds-py-onap-certs") }}
imagePullSecrets:
- name: "{{ include "common.namespace" . }}-docker-registry-key"