From 4f92be9e2afcea4e67cd3415aec65bf7ed36dcdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Tue, 28 Nov 2023 13:53:58 +0100 Subject: [PATCH] fix --- apps/gitea/index.yaml | 354 ++++++++++++++++++------------------ apps/gitea/inline-config.tf | 1 + 2 files changed, 178 insertions(+), 177 deletions(-) diff --git a/apps/gitea/index.yaml b/apps/gitea/index.yaml index 3bebe1c..caeaaa6 100644 --- a/apps/gitea/index.yaml +++ b/apps/gitea/index.yaml @@ -9,16 +9,66 @@ metadata: A painless self-hosted Git service. Gitea is a community managed lightweight code hosting solution written in Go. It is published under the MIT license. options: + issuer: + default: letsencrypt-prod + examples: + - letsencrypt-prod + 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: + default: + ip: '' + examples: + - ip: '' + properties: + ip: + default: '' + type: string + type: object + ingress-class: + default: traefik + examples: + - traefik + type: string ssh-port: default: 2222 examples: - 2222 type: integer - default-branch: - default: main - examples: - - main - type: string admin: default: email: git-admin@git.your_company.com @@ -34,11 +84,110 @@ options: default: gitea_admin type: string type: object - disable-registration: - default: true + ssh-sub-domain: + default: git examples: - - true - type: boolean + - git + type: string + release: + 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: + gitea: + pullPolicy: IfNotPresent + registry: docker.io + repository: gitea/gitea + tag: 1.20.5-rootless + examples: + - gitea: + pullPolicy: IfNotPresent + registry: docker.io + repository: gitea/gitea + tag: 1.20.5-rootless + properties: + gitea: + default: + pullPolicy: IfNotPresent + registry: docker.io + repository: gitea/gitea + tag: 1.20.5-rootless + 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 + default-branch: + default: main + examples: + - main + type: string + theme: + default: gitea-modern + examples: + - gitea-modern + type: string + postgres: + default: + replicas: 1 + storage: 10Gi + version: '14' + examples: + - replicas: 1 + storage: 10Gi + version: '14' + properties: + replicas: + default: 1 + type: integer + storage: + default: 10Gi + type: string + version: + default: '14' + type: string + type: object + domain-name: + default: your_company.com + examples: + - your_company.com + type: string + sub-domain: + default: git + examples: + - git + type: string + app-group: + default: dev + examples: + - dev + type: string backups: default: enable: false @@ -145,96 +294,30 @@ options: default: false type: boolean type: object - domain: - default: your-company - examples: - - your-company - type: string - ssh-sub-domain: - default: git - examples: - - git - type: string - push-create: + volume: default: - org: 'true' - private: 'false' - user: 'true' + accessMode: ReadWriteOnce + size: 10Gi examples: - - org: 'true' - private: 'false' - user: 'true' + - accessMode: ReadWriteOnce + size: 10Gi properties: - org: - default: 'true' + accessMode: + default: ReadWriteOnce + enum: + - ReadWriteOnce + - ReadOnlyMany + - ReadWriteMany type: string - private: - default: 'false' - type: string - user: - default: 'true' - type: string - type: object - 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 - issuer: - default: letsencrypt-prod - examples: - - letsencrypt-prod - type: string - app-group: - default: dev - examples: - - dev - type: string - timezone: - default: Europe/Paris - examples: - - Europe/Paris - type: string - replicas: - default: 1 - examples: - - 1 - type: integer - postgres: - default: - replicas: 1 - storage: 10Gi - version: '14' - examples: - - replicas: 1 - storage: 10Gi - version: '14' - properties: - replicas: - default: 1 - type: integer - storage: + size: default: 10Gi type: string - version: - default: '14' - type: string type: object - sub-domain: - default: git + disable-registration: + default: true examples: - - git - type: string + - true + type: boolean redis: default: exporter: @@ -268,94 +351,11 @@ options: default: 2Gi type: string type: object - load-balancer: - default: - ip: '' + timezone: + default: Europe/Paris examples: - - ip: '' - properties: - ip: - default: '' - type: string - type: object - release: - default: 8.3.0 - examples: - - 8.3.0 + - Europe/Paris type: string - theme: - default: gitea-modern - examples: - - gitea-modern - type: string - domain-name: - default: your_company.com - examples: - - your_company.com - type: string - 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 - ingress-class: - default: traefik - examples: - - traefik - type: string - images: - default: - gitea: - pullPolicy: IfNotPresent - registry: docker.io - repository: gitea/gitea - tag: 1.20.5-rootless - examples: - - gitea: - pullPolicy: IfNotPresent - registry: docker.io - repository: gitea/gitea - tag: 1.20.5-rootless - properties: - gitea: - default: - pullPolicy: IfNotPresent - registry: docker.io - repository: gitea/gitea - tag: 1.20.5-rootless - 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 dependencies: - dist: null category: share diff --git a/apps/gitea/inline-config.tf b/apps/gitea/inline-config.tf index d252870..89eeadf 100644 --- a/apps/gitea/inline-config.tf +++ b/apps/gitea/inline-config.tf @@ -71,6 +71,7 @@ ENABLE_OPENID_SIGNUP=true REGISTER_EMAIL_CONFIRM=false ENABLE_AUTO_REGISTRATION=true ACCOUNT_LINKING=auto +OPENID_CONNECT_SCOPES=openid,email,profile EOF } }