diff --git a/apps/gitea/datas.tf b/apps/gitea/datas.tf index 559cc2a..3e40c69 100644 --- a/apps/gitea/datas.tf +++ b/apps/gitea/datas.tf @@ -117,6 +117,8 @@ data "kustomization_overlay" "data" { key: client-secret - name: TZ value: ${var.timezone} + - name: SSL_CERT_FILE + value: "/etc/local-certs/ca-certificates.crt" containers: - name: gitea image: "${var.images.gitea.registry}/${var.images.gitea.repository}:${var.images.gitea.tag}" diff --git a/apps/gitea/index.yaml b/apps/gitea/index.yaml index 7b326e8..ae8152b 100644 --- a/apps/gitea/index.yaml +++ b/apps/gitea/index.yaml @@ -9,6 +9,75 @@ 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 + release: + default: 8.3.0 + examples: + - 8.3.0 + type: string + default-branch: + default: main + examples: + - main + type: string + admin: + default: + email: git-admin@git.your_company.com + name: gitea_admin + examples: + - email: git-admin@git.your_company.com + name: gitea_admin + properties: + email: + default: git-admin@git.your_company.com + type: string + name: + default: gitea_admin + 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 + 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 redis: default: exporter: @@ -42,54 +111,85 @@ options: default: 2Gi type: string type: object - images: - default: - gitea: - pullPolicy: IfNotPresent - registry: docker.io - repository: gitea/gitea - tag: 1.20.5-rootless + replicas: + default: 1 examples: - - gitea: - pullPolicy: IfNotPresent - registry: docker.io - repository: gitea/gitea - tag: 1.20.5-rootless + - 1 + type: integer + domain: + default: your-company + examples: + - your-company + type: string + domain-name: + default: your_company.com + examples: + - your_company.com + type: string + disable-registration: + default: true + examples: + - true + type: boolean + push-create: + default: + org: 'true' + private: 'false' + user: 'true' + examples: + - org: 'true' + private: 'false' + user: 'true' 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 + 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 + timezone: + default: Europe/Paris + examples: + - Europe/Paris + type: string app-group: default: dev examples: - dev type: string - domain: - default: your-company + sub-domain: + default: git examples: - - your-company + - git + type: string + ssh-sub-domain: + default: git + examples: + - git + type: string + ssh-port: + default: 2222 + examples: + - 2222 + type: integer + ingress-class: + default: traefik + examples: + - traefik type: string backups: default: @@ -197,20 +297,49 @@ options: default: false type: boolean type: object - ingress-class: - default: traefik + images: + default: + gitea: + pullPolicy: IfNotPresent + registry: docker.io + repository: gitea/gitea + tag: 1.20.5-rootless examples: - - traefik - type: string - issuer: - default: letsencrypt-prod + - 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 + theme: + default: gitea-modern examples: - - letsencrypt-prod - type: string - timezone: - default: Europe/Paris - examples: - - Europe/Paris + - gitea-modern type: string webhook: default: @@ -227,135 +356,6 @@ options: default: false type: boolean type: object - default-branch: - default: main - examples: - - main - type: string - ssh-sub-domain: - default: git - examples: - - git - type: string - replicas: - default: 1 - examples: - - 1 - type: integer - sub-domain: - default: git - examples: - - git - 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 - 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 - 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 - release: - default: 8.3.0 - examples: - - 8.3.0 - type: string - theme: - default: gitea-modern - examples: - - gitea-modern - type: string - ssh-port: - default: 2222 - examples: - - 2222 - type: integer - admin: - default: - email: git-admin@git.your_company.com - name: gitea_admin - examples: - - email: git-admin@git.your_company.com - name: gitea_admin - properties: - email: - default: git-admin@git.your_company.com - type: string - name: - default: gitea_admin - type: string - type: object - disable-registration: - default: true - examples: - - true - type: boolean - load-balancer: - default: - ip: '' - examples: - - ip: '' - properties: - ip: - default: '' - type: string - type: object dependencies: - dist: null category: share