openstack-helm/tools/gate/files/rally-reports.yaml
Andrii Ostapenko 44d263b2bf Enable templates linting
- braces
- brackets
- colons
- commas
- comments
- hyphens
- indentation
- key-duplicates

with corresponding code changes.

Also disable enforcement for document-(start|end) rules and
disables warnings to increase readability.

* Unrestrict octal values rule since benefits of file modes readability
  exceed possible issues with yaml 1.2 adoption in future k8s versions.
  These issues will be addressed when/if they occur.

Change-Id: Ic5e327cf40c4b09c90738baff56419a6cef132da
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
2020-07-11 00:52:51 +00:00

32 lines
760 B
YAML

apiVersion: batch/v1
kind: Job
metadata:
labels:
version: v0.1.0
name: get-rally-data
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: get-rally-data
image: docker.io/alpine:latest
imagePullPolicy: Always
command:
- /bin/sh
- -ec
- |
cp -av /mnt/rally-pvc/* /mnt/rally-data
volumeMounts:
- name: pvc-rally
mountPath: /mnt/rally-pvc
- name: rally-data
mountPath: /mnt/rally-data
volumes:
- name: pvc-rally
persistentVolumeClaim:
claimName: pvc-rally
- name: rally-data
hostPath:
path: /tmp/rally-data