This commit is contained in:
2024-04-11 11:23:56 +02:00
parent c25e5e7718
commit bf57839d9f
4 changed files with 167 additions and 166 deletions

View File

@@ -17,10 +17,10 @@ resource "kubectl_manifest" "backup_schedule" {
key: "${var.backups.key_id_key}" key: "${var.backups.key_id_key}"
name: "${var.backups.secret_name}" name: "${var.backups.secret_name}"
bucket: "${var.instance}-${var.namespace}" bucket: "${var.instance}-${var.namespace}"
endpoint: "${var.backups.endpoint}/gitea" endpoint: "${var.backups.endpoint}/restic"
secretAccessKeySecretRef: secretAccessKeySecretRef:
key: "${var.backups.secret_key}" key: "${var.backups.secret_key}"
name: "${var.backups.secret-name}" name: "${var.backups.secret_name}"
backup: backup:
schedule: "${var.backups.schedule.backup}" schedule: "${var.backups.schedule.backup}"
failedJobsHistoryLimit: 2 failedJobsHistoryLimit: 2

View File

@@ -9,6 +9,26 @@ metadata:
A painless self-hosted Git service. 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. Gitea is a community managed lightweight code hosting solution written in Go. It is published under the MIT license.
options: options:
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
app_group:
default: dev
examples:
- dev
type: string
backups: backups:
default: default:
enable: false enable: false
@@ -115,43 +135,26 @@ options:
default: false default: false
type: boolean type: boolean
type: object type: object
redis: default-branch:
default: default: main
exporter:
enabled: true
examples: examples:
- exporter: - main
enabled: true type: string
properties: disable-registration:
exporter: default: true
default:
enabled: true
properties:
enabled:
default: true
type: boolean
type: object
type: object
webhook:
default:
allowed-hosts: private
skip-tls-verify: false
documentation: https://docs.gitea.com/next/administration/config-cheat-sheet#webhook-webhook
examples: examples:
- allowed-hosts: private - true
skip-tls-verify: false type: boolean
properties: domain:
allowed-hosts: default: your-company
default: private examples:
examples: - your-company
- external type: string
- loopback domain_name:
- '*.yourdomain.com' default: your_company.com
type: string examples:
skip-tls-verify: - your_company.com
default: false type: string
type: boolean
type: object
images: images:
default: default:
gitea: gitea:
@@ -283,6 +286,26 @@ options:
type: string type: string
type: object type: object
type: object type: object
ingress_class:
default: traefik
examples:
- traefik
type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
load-balancer:
default:
ip: ''
examples:
- ip: ''
properties:
ip:
default: ''
type: string
type: object
postgres: postgres:
default: default:
replicas: 1 replicas: 1
@@ -293,56 +316,6 @@ options:
default: 1 default: 1
type: integer type: integer
type: object type: object
sub_domain:
default: git
examples:
- git
type: string
theme:
default: gitea-modern
examples:
- gitea-modern
type: string
domain:
default: your-company
examples:
- your-company
type: string
domain_name:
default: your_company.com
examples:
- your_company.com
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
ingress_class:
default: traefik
examples:
- traefik
type: string
app_group:
default: dev
examples:
- dev
type: string
ssh-port:
default: 2222
examples:
- 2222
type: integer
push-create: push-create:
default: default:
org: 'true' org: 'true'
@@ -363,6 +336,43 @@ options:
default: 'true' default: 'true'
type: string type: string
type: object type: object
redis:
default:
exporter:
enabled: true
examples:
- exporter:
enabled: true
properties:
exporter:
default:
enabled: true
properties:
enabled:
default: true
type: boolean
type: object
type: object
release:
default: 8.3.0
examples:
- 8.3.0
type: string
replicas:
default: 1
examples:
- 1
type: integer
ssh-port:
default: 2222
examples:
- 2222
type: integer
ssh-sub_domain:
default: git
examples:
- git
type: string
storage: storage:
default: default:
postgres: postgres:
@@ -430,51 +440,41 @@ options:
type: string type: string
type: object type: object
type: object type: object
issuer: sub_domain:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
ssh-sub_domain:
default: git default: git
examples: examples:
- git - git
type: string type: string
release: theme:
default: 8.3.0 default: gitea-modern
examples: examples:
- 8.3.0 - gitea-modern
type: string type: string
disable-registration:
default: true
examples:
- true
type: boolean
replicas:
default: 1
examples:
- 1
type: integer
timezone: timezone:
default: Europe/Paris default: Europe/Paris
examples: examples:
- Europe/Paris - Europe/Paris
type: string type: string
load-balancer: webhook:
default: default:
ip: '' allowed-hosts: private
skip-tls-verify: false
documentation: https://docs.gitea.com/next/administration/config-cheat-sheet#webhook-webhook
examples: examples:
- ip: '' - allowed-hosts: private
skip-tls-verify: false
properties: properties:
ip: allowed-hosts:
default: '' default: private
examples:
- external
- loopback
- '*.yourdomain.com'
type: string type: string
skip-tls-verify:
default: false
type: boolean
type: object type: object
default-branch:
default: main
examples:
- main
type: string
dependencies: dependencies:
- dist: null - dist: null
category: share category: share

View File

@@ -5,7 +5,7 @@ locals {
} }
resource "kubectl_manifest" "prj_redis" { resource "kubectl_manifest" "prj_redis" {
yaml_body = <<-EOF yaml_body = <<-EOF
apiVersion: "redis.redis.opstreelabs.in/v1beta2" apiVersion: "redis.redis.opstreelabs.in/v1beta1"
kind: "Redis" kind: "Redis"
metadata: metadata:
name: "${var.instance}-${var.component}-redis" name: "${var.instance}-${var.component}-redis"
@@ -25,7 +25,7 @@ resource "kubectl_manifest" "prj_redis" {
redisExporter: redisExporter:
enabled: ${var.redis.exporter.enabled} enabled: ${var.redis.exporter.enabled}
image: "${var.images.redis_exporter.registry}/${var.images.redis_exporter.repository}:${var.images.redis_exporter.tag}" image: "${var.images.redis_exporter.registry}/${var.images.redis_exporter.repository}:${var.images.redis_exporter.tag}"
podSecurityContext: securityContext:
runAsUser: 1000 runAsUser: 1000
fsGroup: 1000 fsGroup: 1000
EOF EOF

View File

@@ -11,48 +11,19 @@ options:
examples: examples:
- dev - dev
type: string type: string
domain:
default: your-company
examples:
- your-company
type: string
ingress_class:
default: traefik
examples:
- traefik
type: string
gitea-ssh-domain:
default: ''
examples:
- ''
type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
stages:
default: []
items:
properties:
name:
default: prod
type: string
type: object
type: array
backups: backups:
default: default:
enable: false enable: false
endpoint: '' endpoint: ''
key-id-key: s3-id key_id_key: s3-id
secret-key: s3-secret secret_key: s3-secret
secret-name: backup-settings secret_name: backup-settings
examples: examples:
- enable: false - enable: false
endpoint: '' endpoint: ''
key-id-key: s3-id key_id_key: s3-id
secret-key: s3-secret secret_key: s3-secret
secret-name: backup-settings secret_name: backup-settings
properties: properties:
enable: enable:
default: false default: false
@@ -60,21 +31,16 @@ options:
endpoint: endpoint:
default: '' default: ''
type: string type: string
key-id-key: key_id_key:
default: s3-id default: s3-id
type: string type: string
secret-key: secret_key:
default: s3-secret default: s3-secret
type: string type: string
secret-name: secret_name:
default: backup-settings default: backup-settings
type: string type: string
type: object type: object
haveGitea:
default: false
examples:
- false
type: boolean
datasets: datasets:
default: [] default: []
items: items:
@@ -87,11 +53,6 @@ options:
type: string type: string
type: object type: object
type: array type: array
domain_name:
default: your_company.com
examples:
- your_company.com
type: string
distributions: distributions:
default: default:
core: core core: core
@@ -107,12 +68,52 @@ options:
default: domain default: domain
type: string type: string
type: object type: object
domain:
default: your-company
examples:
- your-company
type: string
domain_name:
default: your_company.com
examples:
- your_company.com
type: string
gitea-ssh-domain:
default: ''
examples:
- ''
type: string
haveGitea:
default: false
examples:
- false
type: boolean
ingress_class:
default: traefik
examples:
- traefik
type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
stages:
default: []
items:
properties:
name:
default: prod
type: string
type: object
type: array
dependencies: [] dependencies: []
providers: providers:
kubernetes: true kubernetes: true
authentik: null authentik: null
kubectl: true kubectl: true
postgresql: null postgresql: null
mysql: null
restapi: null restapi: null
http: null http: null
gitea: true gitea: true