From e4353826ab0cea10573c0fd55f362606032d8508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Tue, 28 Nov 2023 13:31:18 +0100 Subject: [PATCH] fix --- apps/gitea/datas.tf | 20 --- apps/gitea/index.yaml | 388 +++++++++++++++++++++--------------------- 2 files changed, 194 insertions(+), 214 deletions(-) diff --git a/apps/gitea/datas.tf b/apps/gitea/datas.tf index 1f89d1f..2cc5c28 100644 --- a/apps/gitea/datas.tf +++ b/apps/gitea/datas.tf @@ -115,26 +115,6 @@ data "kustomization_overlay" "data" { secretKeyRef: name: "${var.component}-${var.instance}-secret" key: client-secret - - name: LDAP_USER_SEARCH_BASE - valueFrom: - secretKeyRef: - key: user-search-base - name: gitea-ldap - - name: LDAP_USER_FILTER - valueFrom: - secretKeyRef: - key: user-filter - name: gitea-ldap - - name: LDAP_ADMIN_FILTER - valueFrom: - secretKeyRef: - key: admin-filter - name: gitea-ldap - - name: LDAP_HOST - valueFrom: - secretKeyRef: - key: endpoint - name: gitea-ldap - name: TZ value: ${var.timezone} containers: diff --git a/apps/gitea/index.yaml b/apps/gitea/index.yaml index 9233474..b807661 100644 --- a/apps/gitea/index.yaml +++ b/apps/gitea/index.yaml @@ -9,178 +9,26 @@ 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: - ingress-class: - default: traefik - examples: - - traefik - type: string - domain: - default: your-company - examples: - - your-company - type: string - app-group: - default: dev - examples: - - dev - type: string release: default: 8.3.0 examples: - 8.3.0 type: string - load-balancer: + webhook: default: - ip: '' + allowed-hosts: private + skip-tls-verify: false examples: - - ip: '' + - allowed-hosts: private + skip-tls-verify: false properties: - ip: - default: '' + allowed-hosts: + default: private type: string + skip-tls-verify: + default: false + type: boolean type: object - 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 - timezone: - default: Europe/Paris - examples: - - Europe/Paris - type: string - issuer: - default: letsencrypt-prod - examples: - - letsencrypt-prod - 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 - ssh-sub-domain: - default: git - examples: - - git - type: string - 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: - 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 - 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 - replicas: - default: 1 - examples: - - 1 - type: integer - disable-registration: - default: true - examples: - - true - type: boolean backups: default: enable: false @@ -287,40 +135,15 @@ options: default: false type: boolean type: object - webhook: - default: - allowed-hosts: private - skip-tls-verify: false + disable-registration: + default: true examples: - - allowed-hosts: private - skip-tls-verify: false - properties: - allowed-hosts: - default: private - type: string - skip-tls-verify: - default: false - type: boolean - type: object - sub-domain: - default: git + - true + type: boolean + ingress-class: + default: traefik examples: - - git - type: string - ssh-port: - default: 2222 - examples: - - 2222 - type: integer - default-branch: - default: main - examples: - - main - type: string - domain-name: - default: your_company.com - examples: - - your_company.com + - traefik type: string admin: default: @@ -337,6 +160,36 @@ options: default: gitea_admin type: string type: object + domain: + default: your-company + examples: + - your-company + 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 + default-branch: + default: main + examples: + - main + type: string volume: default: accessMode: ReadWriteOnce @@ -356,6 +209,153 @@ options: default: 10Gi type: string type: object + ssh-sub-domain: + default: git + examples: + - git + type: string + ssh-port: + default: 2222 + examples: + - 2222 + type: integer + 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 + domain-name: + default: your_company.com + examples: + - your_company.com + type: string + issuer: + default: letsencrypt-prod + examples: + - letsencrypt-prod + type: string + app-group: + default: dev + examples: + - dev + type: string + 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: + 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 + timezone: + default: Europe/Paris + examples: + - Europe/Paris + 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 + theme: + default: gitea-modern + examples: + - gitea-modern + type: string + sub-domain: + default: git + examples: + - git + type: string + load-balancer: + default: + ip: '' + examples: + - ip: '' + properties: + ip: + default: '' + type: string + type: object + replicas: + default: 1 + examples: + - 1 + type: integer dependencies: - dist: null category: share