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 group: PostgreSQL
required: false required: false
- variable: postgresql.postgresqlPassword - variable: postgresql.postgresqlPassword
default: "altereme" default: "sigi"
description: "Senha do banco de dados Postgres" description: "Senha do banco de dados Postgres"
label: "Senha do Postgres" label: "Senha do Postgres"
type: password type: password

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

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

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

@ -2,7 +2,7 @@
apiVersion: velero.io/v1 apiVersion: velero.io/v1
kind: Schedule kind: Schedule
metadata: metadata:
name: {{ include "sapl.fullname" . }}-weekdays name: {{ include "sigi.fullname" . }}-weekdays
namespace: {{ .Values.velero.namespace }} namespace: {{ .Values.velero.namespace }}
spec: spec:
# generate a random backup time between 1 and 5 AM on weekdays # generate a random backup time between 1 and 5 AM on weekdays
@ -32,7 +32,7 @@ spec:
command: command:
- "/bin/bash" - "/bin/bash"
- "-c" - "-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 timeout: 360s
onError: Continue onError: Continue
useOwnerReferencesInBackup: false useOwnerReferencesInBackup: false

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

@ -2,7 +2,7 @@
apiVersion: velero.io/v1 apiVersion: velero.io/v1
kind: Schedule kind: Schedule
metadata: metadata:
name: {{ include "sapl.fullname" . }}-weekly name: {{ include "sigi.fullname" . }}-weekly
namespace: {{ .Values.velero.namespace }} namespace: {{ .Values.velero.namespace }}
spec: spec:
# generate a random backup time between 1 and 5 AM on sunday # generate a random backup time between 1 and 5 AM on sunday
@ -32,7 +32,7 @@ spec:
command: command:
- "/bin/bash" - "/bin/bash"
- "-c" - "-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 timeout: 360s
onError: Continue onError: Continue
useOwnerReferencesInBackup: false useOwnerReferencesInBackup: false

Loading…
Cancel
Save