-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcrd-controller-flux-system-crb.yaml.tf
52 lines (51 loc) · 1.74 KB
/
crd-controller-flux-system-crb.yaml.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
resource "kubernetes_manifest" "clusterrolebinding_crd_controller_flux_system" {
provider = kubernetes-alpha
manifest = {
"apiVersion" = "rbac.authorization.k8s.io/v1"
"kind" = "ClusterRoleBinding"
"metadata" = {
"labels" = {
"app.kubernetes.io/instance" = kubernetes_manifest.namespace_flux_system.object.metadata.name
"app.kubernetes.io/version" = var.flux_version
}
"name" = "crd-controller-flux-system"
}
"roleRef" = {
"apiGroup" = "rbac.authorization.k8s.io"
"kind" = "ClusterRole"
"name" = "crd-controller-flux-system"
}
"subjects" = [
{
"kind" = "ServiceAccount"
"name" = "kustomize-controller"
"namespace" = kubernetes_manifest.namespace_flux_system.object.metadata.name
},
{
"kind" = "ServiceAccount"
"name" = "helm-controller"
"namespace" = kubernetes_manifest.namespace_flux_system.object.metadata.name
},
{
"kind" = "ServiceAccount"
"name" = "source-controller"
"namespace" = kubernetes_manifest.namespace_flux_system.object.metadata.name
},
{
"kind" = "ServiceAccount"
"name" = "notification-controller"
"namespace" = kubernetes_manifest.namespace_flux_system.object.metadata.name
},
{
"kind" = "ServiceAccount"
"name" = "image-reflector-controller"
"namespace" = kubernetes_manifest.namespace_flux_system.object.metadata.name
},
{
"kind" = "ServiceAccount"
"name" = "image-automation-controller"
"namespace" = kubernetes_manifest.namespace_flux_system.object.metadata.name
},
]
}
}