diff --git a/apps/gitea/index.yaml b/apps/gitea/index.yaml index 9cec43f..8cba1b7 100644 --- a/apps/gitea/index.yaml +++ b/apps/gitea/index.yaml @@ -9,232 +9,36 @@ 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: - timezone: - default: Europe/Paris + ssh-sub-domain: + default: git examples: - - Europe/Paris + - 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 ingress-class: default: traefik examples: - traefik 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 - 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 - release: - default: 8.3.0 - examples: - - 8.3.0 - 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 - 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: - 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 - domain-name: - default: your_company.com - examples: - - your_company.com - type: string sub-domain: default: git examples: - git type: string - domain: - default: your-company + replicas: + default: 1 examples: - - your-company - type: string + - 1 + type: integer default-branch: default: main examples: - main type: string - load-balancer: - default: - ip: '' + theme: + default: gitea-modern examples: - - ip: '' - properties: - ip: - default: '' - type: string - type: object - app-group: - default: dev - examples: - - dev + - gitea-modern 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 - ssh-sub-domain: - default: git - examples: - - git - type: string - ssh-port: - default: 2222 - examples: - - 2222 - type: integer backups: default: enable: false @@ -341,21 +145,217 @@ options: default: false type: boolean type: object - replicas: - default: 1 + timezone: + default: Europe/Paris examples: - - 1 - type: integer + - Europe/Paris + 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 issuer: default: letsencrypt-prod examples: - letsencrypt-prod 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 + 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 + ssh-port: + default: 2222 + examples: + - 2222 + type: integer + load-balancer: + default: + ip: '' + examples: + - ip: '' + properties: + ip: + default: '' + 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 + app-group: + default: dev + examples: + - dev + 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 disable-registration: default: true examples: - true type: boolean + domain: + default: your-company + examples: + - your-company + type: string + release: + default: 8.3.0 + examples: + - 8.3.0 + 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 dependencies: - dist: null category: share diff --git a/apps/gitea/ldap.tf b/apps/gitea/ldap.tf index e768aaf..088e308 100644 --- a/apps/gitea/ldap.tf +++ b/apps/gitea/ldap.tf @@ -36,7 +36,7 @@ locals { # EOF # } data "kubernetes_secret_v1" "gitea_ldap_password" { - depends_on = [kubectl_manifest.gitea_ldap] + #depends_on = [kubectl_manifest.gitea_ldap] metadata { name = kubectl_manifest.gitea_ldap.name namespace = var.namespace @@ -69,7 +69,7 @@ data "http" "gitea_ldapsearch_password" { } data "authentik_flow" "ldap-authentication-flow" { - depends_on = [authentik_user.gitea_ldapsearch] # fake dependency so it is not evaluated at plan stage + #depends_on = [authentik_user.gitea_ldapsearch] # fake dependency so it is not evaluated at plan stage slug = "ldap-authentication-flow" } @@ -94,10 +94,10 @@ data "authentik_flow" "ldap-authentication-flow" { # attributes = jsonencode({"${local.app-name}" = true}) # } -data "authentik_group" "vynil-admin" { - depends_on = [authentik_group.gitea_users] # fake dependency so it is not evaluated at plan stage - name = "vynil-ldap-admins" -} +#data "authentik_group" "vynil-admin" { +# depends_on = [authentik_group.gitea_users] # fake dependency so it is not evaluated at plan stage +# name = "vynil-ldap-admins" +#} # resource "authentik_group" "gitea_admin" { # name = format("admin-%s", local.app-name) @@ -130,7 +130,7 @@ data "authentik_group" "vynil-admin" { # } data "http" "get_ldap_outpost" { - depends_on = [authentik_group.gitea_users] # fake dependency so it is not evaluated at plan stage + #depends_on = [authentik_group.gitea_users] # fake dependency so it is not evaluated at plan stage url = "http://authentik.${var.domain}-auth.svc/api/v3/outposts/instances/?name__iexact=ldap" method = "GET" request_headers = local.request_headers