Adding fission for real

This commit is contained in:
2024-04-16 13:51:49 +02:00
parent 32bc211cb6
commit 085d8b1aeb
70 changed files with 2672 additions and 18 deletions

View File

@@ -51,6 +51,20 @@ data "kustomization_overlay" "data" {
value: "${var.images.webhook.pull_policy}"
EOF
}
patches {
target {
kind = "ConfigMap"
name = "feature-flags"
}
patch = <<-EOF
- op: replace
path: /data/enable-api-fields
value: "alpha"
- op: replace
path: /data/enable-cel-in-whenexpression
value: "true"
EOF
}
patches {
target {
kind = "Deployment"

View File

@@ -13,8 +13,17 @@ locals {
- op: replace
path: /subjects/0/namespace
value: "${var.namespace}"
EOF
EOF
webhook-patch = <<-EOF
- op: replace
path: /webhooks/0/clientConfig/service/namespace
value: "${var.namespace}"
EOF
interceptor-patch = <<-EOF
- op: replace
path: /spec/clientConfig/service/namespace
value: "${var.namespace}"
EOF
}
data "kustomization_overlay" "data" {
common_labels = local.common-labels
@@ -106,33 +115,56 @@ data "kustomization_overlay" "data_no_ns" {
kind = "MutatingWebhookConfiguration"
name = "webhook.triggers.tekton.dev"
}
patch = <<-EOF
- op: replace
path: /webhooks/0/clientConfig/service/namespace
value: "${var.namespace}"
EOF
patch = local.webhook-patch
}
patches {
target {
kind = "ValidatingWebhookConfiguration"
name = "config.webhook.triggers.tekton.dev"
}
patch = <<-EOF
- op: replace
path: /webhooks/0/clientConfig/service/namespace
value: "${var.namespace}"
EOF
patch = local.webhook-patch
}
patches {
target {
kind = "ValidatingWebhookConfiguration"
name = "validation.webhook.triggers.tekton.dev"
}
patch = <<-EOF
- op: replace
path: /webhooks/0/clientConfig/service/namespace
value: "${var.namespace}"
EOF
patch = local.webhook-patch
}
patches {
target {
kind = "ClusterInterceptor"
name = "cel"
}
patch = local.interceptor-patch
}
patches {
target {
kind = "ClusterInterceptor"
name = "bitbucket"
}
patch = local.interceptor-patch
}
patches {
target {
kind = "ClusterInterceptor"
name = "slack"
}
patch = local.interceptor-patch
}
patches {
target {
kind = "ClusterInterceptor"
name = "github"
}
patch = local.interceptor-patch
}
patches {
target {
kind = "ClusterInterceptor"
name = "gitlab"
}
patch = local.interceptor-patch
}
}