diff options
author | Mandeep Khinda <Mandeep.Khinda@amdocs.com> | 2017-12-15 14:47:10 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-12-15 14:47:10 +0000 |
commit | 1d342e1638388fccda18ca4ab9ccabf9138d8ede (patch) | |
tree | 1a9b96097da173c2e241d446a5fb4b6251a609fc /kubernetes | |
parent | dea1b9749eba16d232675c0f33e7e84f8d69a980 (diff) | |
parent | 2c0981b0751d2b2d0e9b5b0d697b05086550dcc5 (diff) |
Merge "Update annotations to spec for vnfsdk"
Diffstat (limited to 'kubernetes')
-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 }} |