Skip to content
This repository was archived by the owner on Dec 16, 2020. It is now read-only.

Commit 753c923

Browse files
authored
Merge pull request #18 from gruntwork-io/yori-modify-permissions
Bugfix and tweaks
2 parents ed277d6 + dcece85 commit 753c923

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

modules/k8s-namespace-roles/main.tf

+10
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,15 @@ resource "kubernetes_role" "rbac_tiller_resource_access" {
112112
verbs = ["*"]
113113
}
114114

115+
# We include policy PodDisruptionBudget which is useful for the helm charts to manage
116+
rule {
117+
api_groups = [
118+
"policy",
119+
]
120+
121+
resources = ["poddisruptionbudgets"]
122+
verbs = ["*"]
123+
}
124+
115125
depends_on = ["null_resource.dependency_getter"]
116126
}
+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
output "name" {
22
description = "The name of the created service account"
33
value = "${kubernetes_service_account.service_account.metadata.0.name}"
4+
5+
depends_on = ["kubernetes_role_binding.service_account_role_binding"]
46
}

0 commit comments

Comments
 (0)