Update custom-values.yaml

This commit is contained in:
wbsong111
2024-11-14 13:11:01 +09:00
parent 4be4cc7e84
commit 6ebd34f6a0
+1 -29
View File
@@ -31,29 +31,6 @@ lifecycleHooks:
postStart:
exec:
command: ["/bin/sh", "-c", "cp /data/gitea/https/tls.crt /usr/local/share/ca-certificates/; update-ca-certificates"]
# command:
# - "/bin/sh"
# - "-c"
# - |
# /bin/bash <<'EOF' > /tmp/post_start.log
# cp /data/gitea/https/tls.crt /usr/local/share/ca-certificates/
# update-ca-certificates
# su git
# OAUTH_NAME='keycloak'
# AUTH_ID=$(gitea admin auth list --vertical-bars | grep -E "\|${OAUTH_NAME}\s+\|" | grep -iE '\|OAuth2\s+\|' | awk -F " " "{print \$1}")
# KEYCLOAK_URL="https://keycloak.example.org"
# REALM=paasup
# if [[ -z "${AUTH_ID}" ]]; then
# echo "No oauth configuration found with name '${OAUTH_NAME}'. Installing it now..."
# gitea admin auth add-oauth --auto-discover-url "${KEYCLOAK_URL}/auth/realms/${REALM}/.well-known/openid-configuration" --key "gitea" --name "keycloak" --provider "openidConnect" --secret ""
# echo '...installed.'
# else
# echo "Existing oauth configuration with name '${OAUTH_NAME}': '${AUTH_ID}'. Running update to sync settings..."
# gitea admin auth update-oauth --id "${AUTH_ID}" --auto-discover-url "${KEYCLOAK_URL}/auth/realms/${REALM}/.well-known/openid-configuration" --key "gitea" --name "keycloak" --provider "openidConnect" --secret ""
# echo '...sync settings done.'
# fi
# EOF
## pod 설정
@@ -73,14 +50,9 @@ resources:
persistence:
enabled: true
size: 1Gi
accessModes:
- ReadWriteOnce
size: 10Gi
storageClass: ""
# oauth setting
## 같은 네임스페이스에 postgresql 배포 가정
gitea:
admin: