From 1cb9bb6617915ca2b00e9b354a033af1d5ee47fe Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Wed, 30 Jun 2021 11:02:48 -0300 Subject: [PATCH] Backups need to be in velero namespace to work --- .../portalmodelo/v0.5.0/templates/velero-schedule-monthly.yaml | 1 + .../portalmodelo/v0.5.0/templates/velero-schedule-weekdays.yaml | 1 + charts/portalmodelo/v0.5.0/templates/velero-schedule-weekly.yaml | 1 + charts/portalmodelo/v0.5.0/values.yaml | 1 + 4 files changed, 4 insertions(+) diff --git a/charts/portalmodelo/v0.5.0/templates/velero-schedule-monthly.yaml b/charts/portalmodelo/v0.5.0/templates/velero-schedule-monthly.yaml index d2936c1..4a0a72c 100644 --- a/charts/portalmodelo/v0.5.0/templates/velero-schedule-monthly.yaml +++ b/charts/portalmodelo/v0.5.0/templates/velero-schedule-monthly.yaml @@ -3,6 +3,7 @@ apiVersion: velero.io/v1 kind: Schedule metadata: name: {{ include "portalmodelo.fullname" . }}-monthly + namespace: {{ .Values.velero.namespace }} spec: # generate a random backup time between 1 and 5 AM on first day of every month schedule: {{ mod (randNumeric 2) 60 }} {{ mod (randNumeric 1) 6 }} 1 * * diff --git a/charts/portalmodelo/v0.5.0/templates/velero-schedule-weekdays.yaml b/charts/portalmodelo/v0.5.0/templates/velero-schedule-weekdays.yaml index a5ad696..ea4693c 100644 --- a/charts/portalmodelo/v0.5.0/templates/velero-schedule-weekdays.yaml +++ b/charts/portalmodelo/v0.5.0/templates/velero-schedule-weekdays.yaml @@ -3,6 +3,7 @@ apiVersion: velero.io/v1 kind: Schedule metadata: name: {{ include "portalmodelo.fullname" . }}-weekdays + namespace: {{ .Values.velero.namespace }} spec: # generate a random backup time between 1 and 5 AM on weekdays schedule: {{ mod (randNumeric 2) 60 }} {{ mod (randNumeric 1) 6 }} * * 1-5 diff --git a/charts/portalmodelo/v0.5.0/templates/velero-schedule-weekly.yaml b/charts/portalmodelo/v0.5.0/templates/velero-schedule-weekly.yaml index dcc3f71..145f996 100644 --- a/charts/portalmodelo/v0.5.0/templates/velero-schedule-weekly.yaml +++ b/charts/portalmodelo/v0.5.0/templates/velero-schedule-weekly.yaml @@ -3,6 +3,7 @@ apiVersion: velero.io/v1 kind: Schedule metadata: name: {{ include "portalmodelo.fullname" . }}-weekly + namespace: {{ .Values.velero.namespace }} spec: # generate a random backup time between 1 and 5 AM on sunday schedule: {{ mod (randNumeric 2) 60 }} {{ mod (randNumeric 1) 6 }} * * 0 diff --git a/charts/portalmodelo/v0.5.0/values.yaml b/charts/portalmodelo/v0.5.0/values.yaml index fb314d3..dc6d778 100644 --- a/charts/portalmodelo/v0.5.0/values.yaml +++ b/charts/portalmodelo/v0.5.0/values.yaml @@ -21,6 +21,7 @@ persistence: size: 1Gi velero: + namespace: velero backup: enabled: false