diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2021-08-24 18:14:53 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-08-24 18:14:53 +0000 |
commit | 529604f9b5eccb8bb0953b8ee1c96634156a57d4 (patch) | |
tree | eecc35a1d8a0073c13d942195ad7f86f8ea86592 /kubernetes/sdnc/components/sdnc-ansible-server | |
parent | 3a7c442b92db8cf5c2fc8bbe26396f804f4acc92 (diff) | |
parent | 32c5ed84d336982b750bc17aa72e70006b413be4 (diff) |
Merge "[SDNC] Update chart with service account"
Diffstat (limited to 'kubernetes/sdnc/components/sdnc-ansible-server')
3 files changed, 10 insertions, 0 deletions
diff --git a/kubernetes/sdnc/components/sdnc-ansible-server/requirements.yaml b/kubernetes/sdnc/components/sdnc-ansible-server/requirements.yaml index bdf33d53ea..2c0b1081dd 100644 --- a/kubernetes/sdnc/components/sdnc-ansible-server/requirements.yaml +++ b/kubernetes/sdnc/components/sdnc-ansible-server/requirements.yaml @@ -19,3 +19,6 @@ dependencies: - name: repositoryGenerator version: ~8.x-0 repository: '@local' + - name: serviceAccount + version: ~8.x-0 + repository: '@local' diff --git a/kubernetes/sdnc/components/sdnc-ansible-server/templates/deployment.yaml b/kubernetes/sdnc/components/sdnc-ansible-server/templates/deployment.yaml index 3cfb5257ca..1f0dbdeced 100644 --- a/kubernetes/sdnc/components/sdnc-ansible-server/templates/deployment.yaml +++ b/kubernetes/sdnc/components/sdnc-ansible-server/templates/deployment.yaml @@ -101,6 +101,7 @@ spec: {{- if .Values.affinity }} affinity: {{ toYaml .Values.affinity | nindent 8 }} {{- end }} + serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} volumes: - name: localtime hostPath: diff --git a/kubernetes/sdnc/components/sdnc-ansible-server/values.yaml b/kubernetes/sdnc/components/sdnc-ansible-server/values.yaml index b8d59f96c9..13c53d3fe1 100644 --- a/kubernetes/sdnc/components/sdnc-ansible-server/values.yaml +++ b/kubernetes/sdnc/components/sdnc-ansible-server/values.yaml @@ -129,3 +129,9 @@ resources: cpu: 1 memory: 1Gi unlimited: {} + +#Pods Service Account +serviceAccount: + nameOverride: sdnc-ansible-server + roles: + - read |