This commit is contained in:
2024-01-26 10:19:34 +01:00
parent e8ad81c3db
commit 94e78fa7e9
187 changed files with 3355 additions and 2857 deletions

View File

@@ -150,9 +150,9 @@ data "kustomization_overlay" "data" {
- name: WOODPECKER_ADMIN
value: "${var.admin-users}"
- name: WOODPECKER_HOST
value: "https://${var.sub_domain}.${var.domain_name}"
value: "https://${var.sub-domain}.${var.domain-name}"
- name: WOODPECKER_HOST
value: "https://${var.sub_domain}.${var.domain_name}"
value: "https://${var.sub-domain}.${var.domain-name}"
envFrom:
- secretRef:
name: woodpecker-secret

View File

@@ -22,7 +22,7 @@ resource "gitea_oauth2_app" "prj" {
name = var.component
confidential_client = true
redirect_uris = [
"https://${var.sub_domain}.${var.domain_name}/authorize"
"https://${var.sub-domain}.${var.domain-name}/authorize"
]
}

View File

@@ -6,6 +6,11 @@ metadata:
name: woodpecker
description: null
options:
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
storage-agent:
default:
size: 10Gi
@@ -26,26 +31,21 @@ options:
default: 'false'
type: string
type: object
admin-users:
default: woodpecker,admin
timeouts:
default:
default: '60'
max: '120'
examples:
- woodpecker,admin
type: string
domain:
default: your-company
examples:
- your-company
type: string
domain_name:
default: your_company.com
examples:
- your_company.com
type: string
app_group:
default: dev
examples:
- dev
type: string
- default: '60'
max: '120'
properties:
default:
default: '60'
type: string
max:
default: '120'
type: string
type: object
images:
default:
agent:
@@ -143,6 +143,26 @@ options:
type: string
type: object
type: object
sub-domain:
default: ci
examples:
- ci
type: string
domain:
default: your-company
examples:
- your-company
type: string
admin-users:
default: woodpecker,admin
examples:
- woodpecker,admin
type: string
app-group:
default: dev
examples:
- dev
type: string
storage-server:
default:
accessMode: ReadWriteOnce
@@ -162,35 +182,15 @@ options:
default: 10Gi
type: string
type: object
ingress_class:
ingress-class:
default: traefik
examples:
- traefik
type: string
issuer:
default: letsencrypt-prod
domain-name:
default: your_company.com
examples:
- letsencrypt-prod
type: string
timeouts:
default:
default: '60'
max: '120'
examples:
- default: '60'
max: '120'
properties:
default:
default: '60'
type: string
max:
default: '120'
type: string
type: object
sub_domain:
default: ci
examples:
- ci
- your_company.com
type: string
dependencies:
- dist: null

View File

@@ -1,5 +1,5 @@
locals {
dns_name = "${var.sub_domain}.${var.domain_name}"
dns_name = "${var.sub-domain}.${var.domain-name}"
dns_names = [local.dns_name]
icon = "favicons/favicon-light-default.png"
service = {
@@ -16,7 +16,7 @@ module "ingress" {
instance = var.instance
namespace = var.namespace
issuer = var.issuer
ingress_class = var.ingress_class
ingress-class = var.ingress-class
labels = local.common-labels
dns_names = local.dns_names
middlewares = []
@@ -30,7 +30,7 @@ module "application" {
source = "/dist/modules/application"
component = var.component
instance = var.instance
app_group = var.app_group
app-group = var.app-group
dns_name = local.dns_name
icon = local.icon
providers = {