Adding wookpecker
This commit is contained in:
@@ -13,6 +13,7 @@ locals {
|
||||
"ingress-class" = var.ingress-class
|
||||
}
|
||||
gitea = { for k, v in var.gitea : k => v if k!="enable" }
|
||||
woodpecker = { for k, v in var.woodpecker : k => v if k!="enable" }
|
||||
}
|
||||
|
||||
resource "kubernetes_namespace_v1" "ci-ns" {
|
||||
@@ -41,3 +42,21 @@ resource "kubectl_manifest" "gitea" {
|
||||
options: ${jsonencode(merge(local.global, local.gitea))}
|
||||
EOF
|
||||
}
|
||||
|
||||
resource "kubectl_manifest" "woodpecker" {
|
||||
count = var.woodpecker.enable ? 1 : 0
|
||||
depends_on = [kubernetes_namespace_v1.ci-ns]
|
||||
yaml_body = <<-EOF
|
||||
apiVersion: "vynil.solidite.fr/v1"
|
||||
kind: "Install"
|
||||
metadata:
|
||||
name: "woodpecker"
|
||||
namespace: "${var.namespace}-ci"
|
||||
labels: ${jsonencode(local.common-labels)}
|
||||
spec:
|
||||
distrib: "${var.distributions.domain}"
|
||||
category: "apps"
|
||||
component: "woodpecker"
|
||||
options: ${jsonencode(merge(local.global, local.woodpecker))}
|
||||
EOF
|
||||
}
|
||||
|
||||
@@ -6,6 +6,31 @@ metadata:
|
||||
name: domain-ci
|
||||
description: null
|
||||
options:
|
||||
woodpecker:
|
||||
default:
|
||||
enable: true
|
||||
examples:
|
||||
- enable: true
|
||||
properties:
|
||||
enable:
|
||||
default: true
|
||||
type: boolean
|
||||
type: object
|
||||
domain:
|
||||
default: your-company
|
||||
examples:
|
||||
- your-company
|
||||
type: string
|
||||
gitea:
|
||||
default:
|
||||
enable: true
|
||||
examples:
|
||||
- enable: true
|
||||
properties:
|
||||
enable:
|
||||
default: true
|
||||
type: boolean
|
||||
type: object
|
||||
domain-name:
|
||||
default: your_company.com
|
||||
examples:
|
||||
@@ -16,11 +41,6 @@ options:
|
||||
examples:
|
||||
- letsencrypt-prod
|
||||
type: string
|
||||
domain:
|
||||
default: your-company
|
||||
examples:
|
||||
- your-company
|
||||
type: string
|
||||
ingress-class:
|
||||
default: traefik
|
||||
examples:
|
||||
@@ -41,16 +61,6 @@ options:
|
||||
default: domain
|
||||
type: string
|
||||
type: object
|
||||
gitea:
|
||||
default:
|
||||
enable: true
|
||||
examples:
|
||||
- enable: true
|
||||
properties:
|
||||
enable:
|
||||
default: true
|
||||
type: boolean
|
||||
type: object
|
||||
dependencies: []
|
||||
providers:
|
||||
kubernetes: true
|
||||
@@ -59,3 +69,4 @@ providers:
|
||||
postgresql: null
|
||||
restapi: null
|
||||
http: null
|
||||
tfaddtype: null
|
||||
|
||||
Reference in New Issue
Block a user