Add CronJob to refvars transformer

This commit is contained in:
Maximilian Gaß
2018-06-25 10:38:07 +02:00
parent 5b67b580f2
commit 2a06a174e8
5 changed files with 79 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: cronjob-example
spec:
schedule: "*/1 * * * *"
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
containers:
- name: cronjob-example
image: cockroachdb/cockroach:v1.1.5
command:
- echo
- "$(CDB_STATEFULSET_NAME)"
env:
- name: CDB_PUBLIC_SVC
value: "$(CDB_PUBLIC_SVC)"

View File

@@ -1,6 +1,7 @@
namePrefix: base-
resources:
- cockroachdb-statefulset-secure.yaml
- cronjob.yaml
vars:
- name: CDB_PUBLIC_SVC
objref: