Adding fission for real
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user