Code Review
/
oom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[COMMON] Adding Common Template for cassa-operator
[oom.git]
/
kubernetes
/
common
/
cassandra
/
templates
/
backup
/
cronjob.yaml
diff --git
a/kubernetes/common/cassandra/templates/backup/cronjob.yaml
b/kubernetes/common/cassandra/templates/backup/cronjob.yaml
index
27f3cc6
..
e2f675a
100644
(file)
--- a/
kubernetes/common/cassandra/templates/backup/cronjob.yaml
+++ b/
kubernetes/common/cassandra/templates/backup/cronjob.yaml
@@
-14,6
+14,8
@@
# limitations under the License.
*/}}
{{- if .Values.backup.enabled }}
# limitations under the License.
*/}}
{{- if .Values.backup.enabled }}
+{{- if .Values.k8ssandraOperator.enabled }}
+{{ else }}
apiVersion: batch/v1beta1
kind: CronJob
metadata:
apiVersion: batch/v1beta1
kind: CronJob
metadata:
@@
-243,3
+245,4
@@
spec:
persistentVolumeClaim:
claimName: {{ include "common.fullname" . }}-backup-data
{{- end -}}
persistentVolumeClaim:
claimName: {{ include "common.fullname" . }}-backup-data
{{- end -}}
+{{- end -}}
\ No newline at end of file