From 98f41befeef2dfcc662dd457fa2fdc92ce978279 Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Mon, 22 Nov 2021 09:59:32 -0300 Subject: [PATCH] Do not use fsfreeze, was taking SAPLs offline --- charts/sapl/v0.2.0/templates/deployment.yaml | 13 ----------- .../templates/velero-schedule-monthly.yaml | 22 ------------------- .../templates/velero-schedule-weekdays.yaml | 22 ------------------- .../templates/velero-schedule-weekly.yaml | 22 ------------------- 4 files changed, 79 deletions(-) diff --git a/charts/sapl/v0.2.0/templates/deployment.yaml b/charts/sapl/v0.2.0/templates/deployment.yaml index 018367b..56cc123 100644 --- a/charts/sapl/v0.2.0/templates/deployment.yaml +++ b/charts/sapl/v0.2.0/templates/deployment.yaml @@ -27,19 +27,6 @@ spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: - {{- if .Values.velero.backup.enabled }} - - name: {{ .Chart.Name}}-fsfreeze - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" - securityContext: - privileged: true - volumeMounts: - - mountPath: /var/interlegis/sapl/media - name: media - command: - - "/bin/bash" - - "-c" - - "sleep infinity" - {{- end }} - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} diff --git a/charts/sapl/v0.2.0/templates/velero-schedule-monthly.yaml b/charts/sapl/v0.2.0/templates/velero-schedule-monthly.yaml index 08fdd96..caa6123 100644 --- a/charts/sapl/v0.2.0/templates/velero-schedule-monthly.yaml +++ b/charts/sapl/v0.2.0/templates/velero-schedule-monthly.yaml @@ -20,28 +20,6 @@ spec: defaultVolumesToRestic: {{ .Values.velero.backup.defaultVolumesToRestic }} hooks: resources: - - name: fsfreeze - includedResources: - - pods - labelSelector: - matchLabels: - {{- include "sapl.selectorLabels" . | nindent 12 }} - pre: - - exec: - container: {{ .Chart.Name }}-fsfreeze - command: - - /sbin/fsfreeze - - --freeze - - /var/interlegis/sapl/media - timeout: 10s - post: - - exec: - container: {{ .Chart.Name }}-fsfreeze - command: - - /sbin/fsfreeze - - --unfreeze - - /var/interlegis/sapl/media - timeout: 10s - name: pgdump includedResources: - pods diff --git a/charts/sapl/v0.2.0/templates/velero-schedule-weekdays.yaml b/charts/sapl/v0.2.0/templates/velero-schedule-weekdays.yaml index a25c9ff..2571284 100644 --- a/charts/sapl/v0.2.0/templates/velero-schedule-weekdays.yaml +++ b/charts/sapl/v0.2.0/templates/velero-schedule-weekdays.yaml @@ -20,28 +20,6 @@ spec: defaultVolumesToRestic: {{ .Values.velero.backup.defaultVolumesToRestic }} hooks: resources: - - name: fsfreeze - includedResources: - - pods - labelSelector: - matchLabels: - {{- include "sapl.selectorLabels" . | nindent 12 }} - pre: - - exec: - container: {{ .Chart.Name }}-fsfreeze - command: - - /sbin/fsfreeze - - --freeze - - /var/interlegis/sapl/media - timeout: 10s - post: - - exec: - container: {{ .Chart.Name }}-fsfreeze - command: - - /sbin/fsfreeze - - --unfreeze - - /var/interlegis/sapl/media - timeout: 10s - name: pgdump includedResources: - pods diff --git a/charts/sapl/v0.2.0/templates/velero-schedule-weekly.yaml b/charts/sapl/v0.2.0/templates/velero-schedule-weekly.yaml index 90f34dc..2140619 100644 --- a/charts/sapl/v0.2.0/templates/velero-schedule-weekly.yaml +++ b/charts/sapl/v0.2.0/templates/velero-schedule-weekly.yaml @@ -20,28 +20,6 @@ spec: defaultVolumesToRestic: {{ .Values.velero.backup.defaultVolumesToRestic }} hooks: resources: - - name: fsfreeze - includedResources: - - pods - labelSelector: - matchLabels: - {{- include "sapl.selectorLabels" . | nindent 12 }} - pre: - - exec: - container: {{ .Chart.Name }}-fsfreeze - command: - - /sbin/fsfreeze - - --freeze - - /var/interlegis/sapl/media - timeout: 10s - post: - - exec: - container: {{ .Chart.Name }}-fsfreeze - command: - - /sbin/fsfreeze - - --unfreeze - - /var/interlegis/sapl/media - timeout: 10s - name: pgdump includedResources: - pods