This commit is contained in:
2023-07-31 11:34:15 +02:00
parent f9c63b96c2
commit 1ebf187be3
2 changed files with 55 additions and 39 deletions

View File

@@ -93,6 +93,22 @@ data "kustomization_overlay" "data" {
app.kubernetes.io/component: server
EOF
}
patches {
target {
kind = "RoleBinding"
name = "woodpecker-agent"
}
patch = <<-EOF
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: woodpecker-agent
subjects:
- kind: ServiceAccount
name: woodpecker-agent
namespace: ${var.namespace}
EOF
}
patches {
target {
kind = "StatefulSet"