From 36c87d432b1925c28c98587b6cf6879b38e25413 Mon Sep 17 00:00:00 2001 From: Shawn Hsu Date: Wed, 16 Oct 2024 11:00:07 +0800 Subject: [PATCH] feat: enable minio webhook --- charts/agh3/templates/minio/agh-minio-cm.yml | 11 +++++++++++ charts/agh3/values.yaml | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 charts/agh3/templates/minio/agh-minio-cm.yml diff --git a/charts/agh3/templates/minio/agh-minio-cm.yml b/charts/agh3/templates/minio/agh-minio-cm.yml new file mode 100644 index 00000000..ce9ca16e --- /dev/null +++ b/charts/agh3/templates/minio/agh-minio-cm.yml @@ -0,0 +1,11 @@ +{{- if .Values.minio.internal }} +apiVersion: v1 +kind: ConfigMap +metadata: + name: agh-minio-cm + labels: + {{- include "AGH3.labels" . | nindent 4 }} +data: + MINIO_NOTIFY_WEBHOOK_ENABLE_PRIMARY: "on" + MINIO_NOTIFY_WEBHOOK_ENDPOINT_PRIMARY: "http://captain.{{ .Release.Namespace }}.svc.cluster.local:8080/internal/webhook/minio" +{{- end }} diff --git a/charts/agh3/values.yaml b/charts/agh3/values.yaml index 5e1d9785..596293db 100644 --- a/charts/agh3/values.yaml +++ b/charts/agh3/values.yaml @@ -340,6 +340,9 @@ minio: - "s3:GetObject" usersExistingSecrets: - agh-minio-users-secret + ## @param minio.extraEnvVarsCM + ## + extraEnvVarsCM: agh-minio-cm ## @section Redis parameters ## redis: