From 05bc754beddd0156271f05ccfd8702b9a6ba07b2 Mon Sep 17 00:00:00 2001 From: Young Jeong Date: Tue, 18 Jul 2023 13:48:33 -0500 Subject: [PATCH] fix: Updating Kubernetes Role for EMR Virtual Cluster (#12) --- modules/virtual-cluster/main.tf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/virtual-cluster/main.tf b/modules/virtual-cluster/main.tf index 237b50f..8000f6c 100644 --- a/modules/virtual-cluster/main.tf +++ b/modules/virtual-cluster/main.tf @@ -91,7 +91,7 @@ resource "kubernetes_role_v1" "this" { } rule { - api_groups = ["extensions"] + api_groups = ["extensions", "networking.k8s.io"] resources = ["ingresses"] verbs = ["get", "list", "watch", "describe", "create", "edit", "delete", "annotate", "patch", "label"] } @@ -101,6 +101,12 @@ resource "kubernetes_role_v1" "this" { resources = ["roles", "rolebindings"] verbs = ["get", "list", "watch", "describe", "create", "edit", "delete", "deletecollection", "annotate", "patch", "label"] } + + rule { + api_groups = [""] + resources = ["persistentvolumeclaims"] + verbs = ["get", "list", "watch", "describe", "create", "edit", "delete", "annotate", "patch", "label"] + } } resource "kubernetes_role_binding_v1" "this" {