Browse Source

sigi chart verification and dependency build

master
Keny Villela 3 years ago
parent
commit
801285f2a3
  1. 2
      charts/sigi/v0.1.0/questions.yaml
  2. 12
      charts/sigi/v0.1.0/templates/deployment.yaml
  3. 4
      charts/sigi/v0.1.0/templates/velero-schedule-weekdays.yaml
  4. 4
      charts/sigi/v0.1.0/templates/velero-schedule-weekly.yaml

2
charts/sigi/v0.1.0/questions.yaml

@ -100,7 +100,7 @@ questions:
group: PostgreSQL
required: false
- variable: postgresql.postgresqlPassword
default: "altereme"
default: "sigi"
description: "Senha do banco de dados Postgres"
label: "Senha do Postgres"
type: password

12
charts/sigi/v0.1.0/templates/deployment.yaml

@ -56,8 +56,8 @@ spec:
- name: TZ
value: "{{ .Values.sigi.timeZone }}"
volumeMounts:
- mountPath: /var/interlegis/sigi/data
name: data
# - mountPath: /var/interlegis/sigi/data
# name: data
- mountPath: /var/interlegis/sigi/media
name: media
livenessProbe:
@ -81,10 +81,10 @@ spec:
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumes:
- name: data
secret:
defaultMode: 440
secretName: {{ include "sigi.fullname" . }}-secretkey
# - name: data
# secret:
# defaultMode: 440
# secretName: {{ include "sigi.fullname" . }}-secretkey
- name: media
{{- if .Values.persistence.enabled }}
persistentVolumeClaim:

4
charts/sigi/v0.1.0/templates/velero-schedule-weekdays.yaml

@ -2,7 +2,7 @@
apiVersion: velero.io/v1
kind: Schedule
metadata:
name: {{ include "sapl.fullname" . }}-weekdays
name: {{ include "sigi.fullname" . }}-weekdays
namespace: {{ .Values.velero.namespace }}
spec:
# generate a random backup time between 1 and 5 AM on weekdays
@ -32,7 +32,7 @@ spec:
command:
- "/bin/bash"
- "-c"
- "PGPASSWORD=$POSTGRES_PASSWORD /opt/bitnami/postgresql/bin/pg_dump -U sapl -d sapl > /bitnami/postgresql/sapl.dump"
- "PGPASSWORD=$POSTGRES_PASSWORD /opt/bitnami/postgresql/bin/pg_dump -U sigi -d sigi > /bitnami/postgresql/sigi.dump"
timeout: 360s
onError: Continue
useOwnerReferencesInBackup: false

4
charts/sigi/v0.1.0/templates/velero-schedule-weekly.yaml

@ -2,7 +2,7 @@
apiVersion: velero.io/v1
kind: Schedule
metadata:
name: {{ include "sapl.fullname" . }}-weekly
name: {{ include "sigi.fullname" . }}-weekly
namespace: {{ .Values.velero.namespace }}
spec:
# generate a random backup time between 1 and 5 AM on sunday
@ -32,7 +32,7 @@ spec:
command:
- "/bin/bash"
- "-c"
- "PGPASSWORD=$POSTGRES_PASSWORD /opt/bitnami/postgresql/bin/pg_dump -U sapl -d sapl > /bitnami/postgresql/sapl.dump"
- "PGPASSWORD=$POSTGRES_PASSWORD /opt/bitnami/postgresql/bin/pg_dump -U sigi -d sigi > /bitnami/postgresql/sigi.dump"
timeout: 360s
onError: Continue
useOwnerReferencesInBackup: false

Loading…
Cancel
Save