From e657bedcd7c4408c1a6f4fca78cfe4afc6016bb5 Mon Sep 17 00:00:00 2001 From: xuzhonghu Date: Mon, 2 Dec 2019 15:20:09 +0800 Subject: [PATCH 1/2] Enable networkpolicy create/get --- installer/helm/chart/volcano/templates/controllers.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/installer/helm/chart/volcano/templates/controllers.yaml b/installer/helm/chart/volcano/templates/controllers.yaml index c5f18f3238..afdee63f52 100644 --- a/installer/helm/chart/volcano/templates/controllers.yaml +++ b/installer/helm/chart/volcano/templates/controllers.yaml @@ -46,6 +46,9 @@ rules: - apiGroups: ["scheduling.k8s.io"] resources: ["priorityclasses"] verbs: ["get", "list", "watch", "create", "delete"] + - apiGroups: ["networking.k8s.io"] + resources: ["networkpolicies"] + verbs: ["get", "create"] --- kind: ClusterRoleBinding From 3e6cdfd72cd21ed59ddb47b102f60f65daf567fe Mon Sep 17 00:00:00 2001 From: xuzhonghu Date: Mon, 2 Dec 2019 17:24:05 +0800 Subject: [PATCH 2/2] generate yaml --- installer/volcano-development.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/installer/volcano-development.yaml b/installer/volcano-development.yaml index c842ce3699..37eb33bfbe 100644 --- a/installer/volcano-development.yaml +++ b/installer/volcano-development.yaml @@ -321,6 +321,9 @@ rules: - apiGroups: ["scheduling.k8s.io"] resources: ["priorityclasses"] verbs: ["get", "list", "watch", "create", "delete"] + - apiGroups: ["networking.k8s.io"] + resources: ["networkpolicies"] + verbs: ["get", "create"] --- kind: ClusterRoleBinding