Update custom-values.yaml
This commit is contained in:
@@ -31,29 +31,6 @@ lifecycleHooks:
|
|||||||
postStart:
|
postStart:
|
||||||
exec:
|
exec:
|
||||||
command: ["/bin/sh", "-c", "cp /data/gitea/https/tls.crt /usr/local/share/ca-certificates/; update-ca-certificates"]
|
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 설정
|
## pod 설정
|
||||||
@@ -73,14 +50,9 @@ resources:
|
|||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
enabled: true
|
enabled: true
|
||||||
size: 1Gi
|
size: 10Gi
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
storageClass: ""
|
storageClass: ""
|
||||||
|
|
||||||
# oauth setting
|
|
||||||
|
|
||||||
|
|
||||||
## 같은 네임스페이스에 postgresql 배포 가정
|
## 같은 네임스페이스에 postgresql 배포 가정
|
||||||
gitea:
|
gitea:
|
||||||
admin:
|
admin:
|
||||||
|
|||||||
Reference in New Issue
Block a user