- Add find user and find_db to postgres-cluster.yaml (11th database) - Add sunbeam-messages-imports and sunbeam-people buckets to SeaweedFS - Configure Hydra Maester with enabledNamespaces: [lasuite] so it can create and update OAuth2Client secrets in the lasuite namespace - Add find to Kratos allowed_return_urls - Add shared ConfigMaps: lasuite-postgres, lasuite-valkey, lasuite-s3, lasuite-oidc-provider — single source of truth for all app env vars - Add HydraOAuth2Client CRDs for all nine La Suite apps (docs, drive, meet, conversations, messages, people, find, gitea, hive); Maester will create oidc-<app> secrets with CLIENT_ID and CLIENT_SECRET
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: seaweedfs-bucket-init
|
|
namespace: lasuite
|
|
annotations:
|
|
# Run once on first deploy; manually delete to re-run if needed.
|
|
helm.sh/hook: post-install
|
|
spec:
|
|
template:
|
|
spec:
|
|
restartPolicy: OnFailure
|
|
containers:
|
|
- name: mc
|
|
image: minio/mc:latest
|
|
command:
|
|
- /bin/sh
|
|
- -c
|
|
- |
|
|
set -e
|
|
ENDPOINT=http://seaweedfs-filer.storage.svc.cluster.local:8333
|
|
mc alias set weed "$ENDPOINT" "$S3_ACCESS_KEY" "$S3_SECRET_KEY"
|
|
|
|
for bucket in \
|
|
sunbeam-docs \
|
|
sunbeam-meet \
|
|
sunbeam-drive \
|
|
sunbeam-messages \
|
|
sunbeam-messages-imports \
|
|
sunbeam-conversations \
|
|
sunbeam-people \
|
|
sunbeam-git-lfs \
|
|
sunbeam-game-assets; do
|
|
mc mb --ignore-existing "weed/$bucket"
|
|
echo "Ensured bucket: $bucket"
|
|
done
|
|
envFrom:
|
|
- secretRef:
|
|
name: seaweedfs-s3-credentials
|