From 46fdbc0430eb4fd964b4999a946993cc3795bea9 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Thu, 18 Sep 2025 16:44:19 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(helm)=20configure=20MinIO=20webhook?= =?UTF-8?q?=20with=20Kubernetes=20job=20for=20recordings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implement automated MinIO webhook configuration using Kubernetes job to enable recording feature functionality. This eliminates manual setup requirements and ensures consistent webhook configuration across deployments. --- src/helm/extra/templates/minio.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/helm/extra/templates/minio.yaml b/src/helm/extra/templates/minio.yaml index 108d753c..95c2193c 100644 --- a/src/helm/extra/templates/minio.yaml +++ b/src/helm/extra/templates/minio.yaml @@ -111,3 +111,26 @@ spec: exit 0 restartPolicy: Never backoffLimit: 1 +--- +apiVersion: batch/v1 +kind: Job +metadata: + name: minio-webhook +spec: + template: + spec: + containers: + - name: mc + image: minio/mc + command: + - /bin/sh + - -c + - | + /usr/bin/mc alias set meet http://minio:9000 meet password && \ + /usr/bin/mc admin config set meet notify_webhook:meet-webhook endpoint="https://meet.127.0.0.1.nip.io/api/v1.0/recordings/storage-hook/" auth_token="Bearer password" && \ + /usr/bin/mc admin service restart meet --wait --json && \ + sleep 15 && \ + /usr/bin/mc event add meet/meet-media-storage arn:minio:sqs::meet-webhook:webhook --event put && \ + exit 0 + restartPolicy: Never + backoffLimit: 1