This commit is contained in:
2024-04-25 09:38:06 +02:00
parent 4c9b59faeb
commit 8295da1c9a
6 changed files with 20 additions and 20 deletions

View File

@@ -86,7 +86,7 @@ resource "kubectl_manifest" "auto-ci-detector" {
}
resource "kubectl_manifest" "ci-trigger-push" {
count = var.autoCI?1:0
count = var.haveFlux?0:1
yaml_body = <<-EOF
apiVersion: triggers.tekton.dev/v1beta1
kind: Trigger
@@ -189,7 +189,7 @@ resource "kubectl_manifest" "ci-trigger-push" {
EOF
}
resource "kubectl_manifest" "ci-trigger-tag" {
count = var.autoCI?1:0
count = var.haveFlux?0:1
yaml_body = <<-EOF
apiVersion: triggers.tekton.dev/v1beta1
kind: Trigger

View File

@@ -11,11 +11,6 @@ options:
examples:
- true
type: boolean
autoCI:
default: true
examples:
- true
type: boolean
domain:
default: your-company
examples:
@@ -26,6 +21,11 @@ options:
examples:
- your_company.com
type: string
haveFlux:
default: false
examples:
- false
type: boolean
issuer:
default: letsencrypt-prod
examples: