promote initContainers to podspec (#1742)

This commit is contained in:
Dhilip
2017-08-15 16:26:42 -07:00
committed by Vic Iglesias
parent f2c2c90184
commit 723b75fe4b
2 changed files with 15 additions and 16 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: Open source, multi-cloud continuous delivery platform for releasing software changes with high velocity and confidence.
name: spinnaker
version: 0.3.1
version: 0.3.2
appVersion: 1.1.0
home: http://spinnaker.io/
sources:
+14 -15
View File
@@ -4,21 +4,20 @@ metadata:
name: "{{.Release.Name}}-ui-test-{{ randAlphaNum 5 | lower }}"
annotations:
"helm.sh/hook": test-success
"pod.beta.kubernetes.io/init-containers": '[
{
"name": "test-framework",
"image": "dduportal/bats:0.4.0",
"command": ["bash", "-c", "
set -ex\n
# copy bats to tools dir\n
cp -R /usr/local/libexec/ /tools/bats/\n
"],
"volumeMounts": [
{"name": "tools", "mountPath": "/tools"}
]
}
]'
spec:
initContainers:
- name: "test-framework"
image: "dduportal/bats:0.4.0"
command:
- "bash"
- "-c"
- |
set -ex
# copy bats to tools dir
cp -R /usr/local/libexec/ /tools/bats/
volumeMounts:
- mountPath: /tools
name: tools
containers:
- name: {{.Release.Name}}-ui-test
image: {{.Values.jenkins.Master.Image}}:{{.Values.jenkins.Master.ImageTag}}
@@ -35,4 +34,4 @@ spec:
name: {{ template "fullname" . }}-tests
- name: tools
emptyDir: {}
restartPolicy: Never
restartPolicy: Never