Skip to content

Commit

Permalink
added application labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Zalfsten committed Nov 12, 2024
1 parent fdf0ebd commit cbdec8b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: "{{ include "fairagro-onlyoffice.config" . }}"
labels:
{{- include "fairagro-onlyoffice.labels" . | nindent 4 }}
data:
# the postgres operator makes use of self-signed certificates, so we need to tell
# onlyoffice to skip the certificate validation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: v1
kind: Secret
metadata:
name: "{{ include "fairagro-onlyoffice.jwt_secret" . }}"
labels:
{{- include "fairagro-onlyoffice.labels" . | nindent 4 }}
type: Opaque
stringData:
secret: "{{ .Values.jwt_secret }}"
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ kind: postgresql
metadata:
# name of the postgres cluster / this could be build from input from the intranet website
name: '{{ include "fairagro-onlyoffice.databasename" . }}'
labels:
{{- include "fairagro-onlyoffice.labels" . | nindent 4 }}
spec:
env:
{{- if or .Values.global.enable_backup .Values.global.enable_restore }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ apiVersion: v1
kind: Secret
metadata:
name: '{{ include "fairagro-onlyoffice.databasesecret" . }}'
labels:
{{- include "fairagro-onlyoffice.labels" . | nindent 4 }}
stringData:
AWS_ACCESS_KEY_ID: {{ .Values.global.s3_access_key | required ".Values.global.s3_access_key must be set" }}
AWS_SECRET_ACCESS_KEY: {{ .Values.global.s3_secret_key | required ".Values.global.s3_secret_key must be set" }}
Expand Down
2 changes: 1 addition & 1 deletion scripts/restore_backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mydir=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)
backup=$1

namespace=fairagro-nextcloud
image=zalf/fairagro_nextcloud_backup-3.12@sha256:f1482362045036ee1ec9dd8c9be3ecffcea2c905d3d92e227fb6334d8d00155a
image=zalf/fairagro_nextcloud_backup-3.12@sha256:aa09c19973d9229629aaeec6ec3204a5217e6f23da4343c6caab6854d7db7f72

# create a service account and permissions
yaml_definition_file="${mydir}/../helmcharts/zalf-nextcloud/templates/rbac.yaml"
Expand Down

0 comments on commit cbdec8b

Please sign in to comment.