mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
promote initContainers to podspec (#1742)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user