diff options
author | kiranya <kiran.yadav@amdocs.com> | 2017-11-22 11:26:59 +0000 |
---|---|---|
committer | kiranya <kiran.yadav@amdocs.com> | 2017-11-22 11:44:25 +0000 |
commit | 2c0981b0751d2b2d0e9b5b0d697b05086550dcc5 (patch) | |
tree | ca5bdf7035855e3d4419c087c1aeaf93552bc08c | |
parent | bda2ac819dc074c3f8685f05b4669fd4c89ede3d (diff) |
Update annotations to spec for vnfsdk
Issue-ID: OOM-406
Change-Id: I6a62d2d3cdea132dd2a96cf0ac79861f186b8e22
Signed-off-by: kiranya <kiran.yadav@amdocs.com>
-rw-r--r-- | kubernetes/vnfsdk/templates/refrepo-deployment.yaml | 43 |
1 files changed, 16 insertions, 27 deletions
diff --git a/kubernetes/vnfsdk/templates/refrepo-deployment.yaml b/kubernetes/vnfsdk/templates/refrepo-deployment.yaml index 82f5f172db..0a56c740c1 100644 --- a/kubernetes/vnfsdk/templates/refrepo-deployment.yaml +++ b/kubernetes/vnfsdk/templates/refrepo-deployment.yaml @@ -15,33 +15,22 @@ spec: labels: app: refrepo name: refrepo - annotations: - pod.beta.kubernetes.io/init-containers: '[ - { - "args": [ - "--container-name", - "postgres" - ], - "command": [ - "/root/ready.py" - ], - "env": [ - { - "name": "NAMESPACE", - "valueFrom": { - "fieldRef": { - "apiVersion": "v1", - "fieldPath": "metadata.namespace" - } - } - } - ], - "image": "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}", - "imagePullPolicy": "{{ .Values.pullPolicy }}", - "name": "vnfsdk-readiness" - } - ]' spec: + initContainers: + - command: + - /root/ready.py + args: + - --container-name + - postgres + env: + - name: NAMESPACE + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.namespace + image: "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}" + imagePullPolicy: {{ .Values.pullPolicy }} + name: vnfsdk-readiness containers: - image: {{ .Values.image.refrepoImage }}:{{ .Values.image.refrepoVersion }} imagePullPolicy: {{ .Values.pullPolicy }} @@ -53,4 +42,4 @@ spec: periodSeconds: 10 imagePullSecrets: - name: {{ .Values.nsPrefix }}-docker-registry-key -#{{ end }}
\ No newline at end of file +#{{ end }} |