fix
This commit is contained in:
@@ -27,7 +27,7 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
checksum/config: ad2ce0a245d17a13676e98bfc6d1833351e36e913af45f98b89299cc83f3fc11
|
checksum/config: ad2ce0a245d17a13676e98bfc6d1833351e36e913af45f98b89299cc83f3fc11
|
||||||
checksum/oauth_0: f0f765c091d516960342092cbf7ed9ed3ef8de0ca140d33f6eadbec60df69d3b
|
checksum/oauth_0: 8082487c20cf56dc3aff5b15ecf79483bc184c497ffb48237cf48c1a8757fcf2
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: gitea-9.5.0
|
helm.sh/chart: gitea-9.5.0
|
||||||
app: gitea
|
app: gitea
|
||||||
|
|||||||
@@ -14,41 +14,6 @@ options:
|
|||||||
examples:
|
examples:
|
||||||
- letsencrypt-prod
|
- letsencrypt-prod
|
||||||
type: string
|
type: string
|
||||||
webhook:
|
|
||||||
default:
|
|
||||||
allowed-hosts: private
|
|
||||||
skip-tls-verify: false
|
|
||||||
examples:
|
|
||||||
- allowed-hosts: private
|
|
||||||
skip-tls-verify: false
|
|
||||||
properties:
|
|
||||||
allowed-hosts:
|
|
||||||
default: private
|
|
||||||
type: string
|
|
||||||
skip-tls-verify:
|
|
||||||
default: false
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
push-create:
|
|
||||||
default:
|
|
||||||
org: 'true'
|
|
||||||
private: 'false'
|
|
||||||
user: 'true'
|
|
||||||
examples:
|
|
||||||
- org: 'true'
|
|
||||||
private: 'false'
|
|
||||||
user: 'true'
|
|
||||||
properties:
|
|
||||||
org:
|
|
||||||
default: 'true'
|
|
||||||
type: string
|
|
||||||
private:
|
|
||||||
default: 'false'
|
|
||||||
type: string
|
|
||||||
user:
|
|
||||||
default: 'true'
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
load-balancer:
|
load-balancer:
|
||||||
default:
|
default:
|
||||||
ip: ''
|
ip: ''
|
||||||
@@ -59,16 +24,26 @@ options:
|
|||||||
default: ''
|
default: ''
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
ingress-class:
|
ssh-sub-domain:
|
||||||
default: traefik
|
default: git
|
||||||
examples:
|
examples:
|
||||||
- traefik
|
- git
|
||||||
|
type: string
|
||||||
|
release:
|
||||||
|
default: 8.3.0
|
||||||
|
examples:
|
||||||
|
- 8.3.0
|
||||||
type: string
|
type: string
|
||||||
ssh-port:
|
ssh-port:
|
||||||
default: 2222
|
default: 2222
|
||||||
examples:
|
examples:
|
||||||
- 2222
|
- 2222
|
||||||
type: integer
|
type: integer
|
||||||
|
timezone:
|
||||||
|
default: Europe/Paris
|
||||||
|
examples:
|
||||||
|
- Europe/Paris
|
||||||
|
type: string
|
||||||
admin:
|
admin:
|
||||||
default:
|
default:
|
||||||
email: git-admin@git.your_company.com
|
email: git-admin@git.your_company.com
|
||||||
@@ -84,74 +59,30 @@ options:
|
|||||||
default: gitea_admin
|
default: gitea_admin
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
ssh-sub-domain:
|
domain-name:
|
||||||
default: git
|
default: your_company.com
|
||||||
examples:
|
examples:
|
||||||
- git
|
- your_company.com
|
||||||
type: string
|
type: string
|
||||||
release:
|
webhook:
|
||||||
default: 8.3.0
|
|
||||||
examples:
|
|
||||||
- 8.3.0
|
|
||||||
type: string
|
|
||||||
replicas:
|
|
||||||
default: 1
|
|
||||||
examples:
|
|
||||||
- 1
|
|
||||||
type: integer
|
|
||||||
domain:
|
|
||||||
default: your-company
|
|
||||||
examples:
|
|
||||||
- your-company
|
|
||||||
type: string
|
|
||||||
images:
|
|
||||||
default:
|
default:
|
||||||
gitea:
|
allowed-hosts: private
|
||||||
pullPolicy: IfNotPresent
|
skip-tls-verify: false
|
||||||
registry: docker.io
|
|
||||||
repository: gitea/gitea
|
|
||||||
tag: 1.20.5-rootless
|
|
||||||
examples:
|
examples:
|
||||||
- gitea:
|
- allowed-hosts: private
|
||||||
pullPolicy: IfNotPresent
|
skip-tls-verify: false
|
||||||
registry: docker.io
|
|
||||||
repository: gitea/gitea
|
|
||||||
tag: 1.20.5-rootless
|
|
||||||
properties:
|
properties:
|
||||||
gitea:
|
allowed-hosts:
|
||||||
default:
|
default: private
|
||||||
pullPolicy: IfNotPresent
|
type: string
|
||||||
registry: docker.io
|
skip-tls-verify:
|
||||||
repository: gitea/gitea
|
default: false
|
||||||
tag: 1.20.5-rootless
|
type: boolean
|
||||||
properties:
|
|
||||||
pullPolicy:
|
|
||||||
default: IfNotPresent
|
|
||||||
enum:
|
|
||||||
- Always
|
|
||||||
- Never
|
|
||||||
- IfNotPresent
|
|
||||||
type: string
|
|
||||||
registry:
|
|
||||||
default: docker.io
|
|
||||||
type: string
|
|
||||||
repository:
|
|
||||||
default: gitea/gitea
|
|
||||||
type: string
|
|
||||||
tag:
|
|
||||||
default: 1.20.5-rootless
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
type: object
|
type: object
|
||||||
default-branch:
|
app-group:
|
||||||
default: main
|
default: dev
|
||||||
examples:
|
examples:
|
||||||
- main
|
- dev
|
||||||
type: string
|
|
||||||
theme:
|
|
||||||
default: gitea-modern
|
|
||||||
examples:
|
|
||||||
- gitea-modern
|
|
||||||
type: string
|
type: string
|
||||||
postgres:
|
postgres:
|
||||||
default:
|
default:
|
||||||
@@ -173,21 +104,93 @@ options:
|
|||||||
default: '14'
|
default: '14'
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
domain-name:
|
redis:
|
||||||
default: your_company.com
|
default:
|
||||||
|
exporter:
|
||||||
|
enabled: true
|
||||||
|
image: quay.io/opstree/redis-exporter:v1.44.0
|
||||||
|
image: quay.io/opstree/redis:v7.0.12
|
||||||
|
storage: 2Gi
|
||||||
examples:
|
examples:
|
||||||
- your_company.com
|
- exporter:
|
||||||
type: string
|
enabled: true
|
||||||
|
image: quay.io/opstree/redis-exporter:v1.44.0
|
||||||
|
image: quay.io/opstree/redis:v7.0.12
|
||||||
|
storage: 2Gi
|
||||||
|
properties:
|
||||||
|
exporter:
|
||||||
|
default:
|
||||||
|
enabled: true
|
||||||
|
image: quay.io/opstree/redis-exporter:v1.44.0
|
||||||
|
properties:
|
||||||
|
enabled:
|
||||||
|
default: true
|
||||||
|
type: boolean
|
||||||
|
image:
|
||||||
|
default: quay.io/opstree/redis-exporter:v1.44.0
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
image:
|
||||||
|
default: quay.io/opstree/redis:v7.0.12
|
||||||
|
type: string
|
||||||
|
storage:
|
||||||
|
default: 2Gi
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
volume:
|
||||||
|
default:
|
||||||
|
accessMode: ReadWriteOnce
|
||||||
|
size: 10Gi
|
||||||
|
examples:
|
||||||
|
- accessMode: ReadWriteOnce
|
||||||
|
size: 10Gi
|
||||||
|
properties:
|
||||||
|
accessMode:
|
||||||
|
default: ReadWriteOnce
|
||||||
|
enum:
|
||||||
|
- ReadWriteOnce
|
||||||
|
- ReadOnlyMany
|
||||||
|
- ReadWriteMany
|
||||||
|
type: string
|
||||||
|
size:
|
||||||
|
default: 10Gi
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
sub-domain:
|
sub-domain:
|
||||||
default: git
|
default: git
|
||||||
examples:
|
examples:
|
||||||
- git
|
- git
|
||||||
type: string
|
type: string
|
||||||
app-group:
|
disable-registration:
|
||||||
default: dev
|
default: true
|
||||||
examples:
|
examples:
|
||||||
- dev
|
- true
|
||||||
|
type: boolean
|
||||||
|
default-branch:
|
||||||
|
default: main
|
||||||
|
examples:
|
||||||
|
- main
|
||||||
type: string
|
type: string
|
||||||
|
push-create:
|
||||||
|
default:
|
||||||
|
org: 'true'
|
||||||
|
private: 'false'
|
||||||
|
user: 'true'
|
||||||
|
examples:
|
||||||
|
- org: 'true'
|
||||||
|
private: 'false'
|
||||||
|
user: 'true'
|
||||||
|
properties:
|
||||||
|
org:
|
||||||
|
default: 'true'
|
||||||
|
type: string
|
||||||
|
private:
|
||||||
|
default: 'false'
|
||||||
|
type: string
|
||||||
|
user:
|
||||||
|
default: 'true'
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
backups:
|
backups:
|
||||||
default:
|
default:
|
||||||
enable: false
|
enable: false
|
||||||
@@ -294,67 +297,64 @@ options:
|
|||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
volume:
|
replicas:
|
||||||
|
default: 1
|
||||||
|
examples:
|
||||||
|
- 1
|
||||||
|
type: integer
|
||||||
|
theme:
|
||||||
|
default: gitea-modern
|
||||||
|
examples:
|
||||||
|
- gitea-modern
|
||||||
|
type: string
|
||||||
|
domain:
|
||||||
|
default: your-company
|
||||||
|
examples:
|
||||||
|
- your-company
|
||||||
|
type: string
|
||||||
|
images:
|
||||||
default:
|
default:
|
||||||
accessMode: ReadWriteOnce
|
gitea:
|
||||||
size: 10Gi
|
pullPolicy: IfNotPresent
|
||||||
|
registry: docker.io
|
||||||
|
repository: gitea/gitea
|
||||||
|
tag: 1.20.5-rootless
|
||||||
examples:
|
examples:
|
||||||
- accessMode: ReadWriteOnce
|
- gitea:
|
||||||
size: 10Gi
|
pullPolicy: IfNotPresent
|
||||||
|
registry: docker.io
|
||||||
|
repository: gitea/gitea
|
||||||
|
tag: 1.20.5-rootless
|
||||||
properties:
|
properties:
|
||||||
accessMode:
|
gitea:
|
||||||
default: ReadWriteOnce
|
|
||||||
enum:
|
|
||||||
- ReadWriteOnce
|
|
||||||
- ReadOnlyMany
|
|
||||||
- ReadWriteMany
|
|
||||||
type: string
|
|
||||||
size:
|
|
||||||
default: 10Gi
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
disable-registration:
|
|
||||||
default: true
|
|
||||||
examples:
|
|
||||||
- true
|
|
||||||
type: boolean
|
|
||||||
redis:
|
|
||||||
default:
|
|
||||||
exporter:
|
|
||||||
enabled: true
|
|
||||||
image: quay.io/opstree/redis-exporter:v1.44.0
|
|
||||||
image: quay.io/opstree/redis:v7.0.12
|
|
||||||
storage: 2Gi
|
|
||||||
examples:
|
|
||||||
- exporter:
|
|
||||||
enabled: true
|
|
||||||
image: quay.io/opstree/redis-exporter:v1.44.0
|
|
||||||
image: quay.io/opstree/redis:v7.0.12
|
|
||||||
storage: 2Gi
|
|
||||||
properties:
|
|
||||||
exporter:
|
|
||||||
default:
|
default:
|
||||||
enabled: true
|
pullPolicy: IfNotPresent
|
||||||
image: quay.io/opstree/redis-exporter:v1.44.0
|
registry: docker.io
|
||||||
|
repository: gitea/gitea
|
||||||
|
tag: 1.20.5-rootless
|
||||||
properties:
|
properties:
|
||||||
enabled:
|
pullPolicy:
|
||||||
default: true
|
default: IfNotPresent
|
||||||
type: boolean
|
enum:
|
||||||
image:
|
- Always
|
||||||
default: quay.io/opstree/redis-exporter:v1.44.0
|
- Never
|
||||||
|
- IfNotPresent
|
||||||
|
type: string
|
||||||
|
registry:
|
||||||
|
default: docker.io
|
||||||
|
type: string
|
||||||
|
repository:
|
||||||
|
default: gitea/gitea
|
||||||
|
type: string
|
||||||
|
tag:
|
||||||
|
default: 1.20.5-rootless
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
image:
|
|
||||||
default: quay.io/opstree/redis:v7.0.12
|
|
||||||
type: string
|
|
||||||
storage:
|
|
||||||
default: 2Gi
|
|
||||||
type: string
|
|
||||||
type: object
|
type: object
|
||||||
timezone:
|
ingress-class:
|
||||||
default: Europe/Paris
|
default: traefik
|
||||||
examples:
|
examples:
|
||||||
- Europe/Paris
|
- traefik
|
||||||
type: string
|
type: string
|
||||||
dependencies:
|
dependencies:
|
||||||
- dist: null
|
- dist: null
|
||||||
|
|||||||
@@ -71,7 +71,6 @@ ENABLE_OPENID_SIGNUP=true
|
|||||||
REGISTER_EMAIL_CONFIRM=false
|
REGISTER_EMAIL_CONFIRM=false
|
||||||
ENABLE_AUTO_REGISTRATION=true
|
ENABLE_AUTO_REGISTRATION=true
|
||||||
ACCOUNT_LINKING=auto
|
ACCOUNT_LINKING=auto
|
||||||
OPENID_CONNECT_SCOPES=openid,email,profile
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -74,11 +74,11 @@ stringData:
|
|||||||
|
|
||||||
if [[ -z "${AUTH_ID}" ]]; then
|
if [[ -z "${AUTH_ID}" ]]; then
|
||||||
echo "No oauth configuration found with name '${OAUTH_NAME}'. Installing it now..."
|
echo "No oauth configuration found with name '${OAUTH_NAME}'. Installing it now..."
|
||||||
gitea admin auth add-oauth --auto-discover-url "${VYNIL_OAUTH_DISCOVERY}" --key "${GITEA_OAUTH_KEY_0}" --name "vynil" --provider "openidConnect" --secret "${GITEA_OAUTH_SECRET_0}"
|
gitea admin auth add-oauth --auto-discover-url "${VYNIL_OAUTH_DISCOVERY}" --key "${GITEA_OAUTH_KEY_0}" --name "vynil" --provider "openidConnect" --scopes "email profile" --secret "${GITEA_OAUTH_SECRET_0}"
|
||||||
echo '...installed.'
|
echo '...installed.'
|
||||||
else
|
else
|
||||||
echo "Existing oauth configuration with name '${OAUTH_NAME}': '${AUTH_ID}'. Running update to sync settings..."
|
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 "${VYNIL_OAUTH_DISCOVERY}" --key "${GITEA_OAUTH_KEY_0}" --name "vynil" --provider "openidConnect" --secret "${GITEA_OAUTH_SECRET_0}"
|
gitea admin auth update-oauth --id "${AUTH_ID}" --auto-discover-url "${VYNIL_OAUTH_DISCOVERY}" --key "${GITEA_OAUTH_KEY_0}" --name "vynil" --provider "openidConnect" --scopes "email profile" --secret "${GITEA_OAUTH_SECRET_0}"
|
||||||
echo '...sync settings done.'
|
echo '...sync settings done.'
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user