diff --git a/integrations/kubernetes-response-engine/deployment/aws/Makefile b/integrations/kubernetes-response-engine/deployment/aws/Makefile index 2a317ac2..fc7c14a6 100644 --- a/integrations/kubernetes-response-engine/deployment/aws/Makefile +++ b/integrations/kubernetes-response-engine/deployment/aws/Makefile @@ -1,7 +1,7 @@ deploy: rbac create configure rbac: - kubectl apply -f ../cluster-role.yaml + kubectl apply -f cluster-role.yaml kubectl apply -f cluster-role-binding.yaml create: @@ -14,4 +14,4 @@ configure: clean: terraform destroy -force kubectl delete -f cluster-role-binding.yaml - kubectl delete -f ../cluster-role.yaml + kubectl delete -f cluster-role.yaml diff --git a/integrations/kubernetes-response-engine/deployment/cluster-role.yaml b/integrations/kubernetes-response-engine/deployment/aws/cluster-role.yaml similarity index 100% rename from integrations/kubernetes-response-engine/deployment/cluster-role.yaml rename to integrations/kubernetes-response-engine/deployment/aws/cluster-role.yaml diff --git a/integrations/kubernetes-response-engine/deployment/cncf/Makefile b/integrations/kubernetes-response-engine/deployment/cncf/Makefile index 87c7a3e0..4d72e651 100644 --- a/integrations/kubernetes-response-engine/deployment/cncf/Makefile +++ b/integrations/kubernetes-response-engine/deployment/cncf/Makefile @@ -1,11 +1,9 @@ deploy: kubectl apply -f nats/ kubectl apply -f kubeless/ - kubectl apply -f ../cluster-role.yaml kubectl apply -f . clean: kubectl delete -f kubeless/ kubectl delete -f nats/ kubectl delete -f . - kubectl delete -f ../cluster-role.yaml diff --git a/integrations/kubernetes-response-engine/deployment/cncf/cluster-role.yaml b/integrations/kubernetes-response-engine/deployment/cncf/cluster-role.yaml new file mode 100644 index 00000000..4c76c26b --- /dev/null +++ b/integrations/kubernetes-response-engine/deployment/cncf/cluster-role.yaml @@ -0,0 +1,25 @@ +kind: ClusterRole +apiVersion: rbac.authorization.k8s.io/v1 +metadata: + name: kubernetes-response-engine-cluster-role +rules: + - apiGroups: + - "" + resources: + - pods + verbs: + - delete + - list + - patch + - apiGroups: + - "" + resources: + - nodes + verbs: + - patch + - apiGroups: + - batch + resources: + - jobs + verbs: + - create