diff options
Diffstat (limited to 'helm/wekan/templates/tests/test-cloudserver.yaml')
-rw-r--r-- | helm/wekan/templates/tests/test-cloudserver.yaml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/helm/wekan/templates/tests/test-cloudserver.yaml b/helm/wekan/templates/tests/test-cloudserver.yaml new file mode 100644 index 00000000..a1db7289 --- /dev/null +++ b/helm/wekan/templates/tests/test-cloudserver.yaml @@ -0,0 +1,27 @@ +apiVersion: v1 +kind: Pod +metadata: + name: {{ template "wekan.fullname" . }}-test + annotations: + "helm.sh/hook": test-success +spec: + containers: + - name: {{ template "wekan.fullname" . }}-test + imagePullPolicy: IfNotPresent + image: "docker.io/mesosphere/aws-cli:1.14.5" + command: + - sh + - -c + - aws s3 --endpoint-url=http://{{ include "wekan.fullname" . }} --region=us-east-1 ls + env: + - name: AWS_ACCESS_KEY_ID + valueFrom: + secretKeyRef: + name: {{ template "wekan.fullname" . }} + key: accessKey + - name: AWS_SECRET_ACCESS_KEY + valueFrom: + secretKeyRef: + name: {{ template "wekan.fullname" . }} + key: secretKey + restartPolicy: Never |