diff --git a/charts/kubeflow/dip/cluster-role.yaml b/charts/kubeflow/dip/cluster-role.yaml new file mode 100644 index 0000000..aedbb34 --- /dev/null +++ b/charts/kubeflow/dip/cluster-role.yaml @@ -0,0 +1,14 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: kyverno:background-controller-generate-extra +rules: + - apiGroups: [""] + resources: ["services"] + verbs: ["create", "update", "delete", "get", "list", "watch"] + - apiGroups: ["networking.istio.io"] + resources: ["virtualservices"] + verbs: ["create", "update", "delete", "get", "list", "watch"] + - apiGroups: ["security.istio.io"] + resources: ["authorizationpolicies"] + verbs: ["create", "update", "delete", "get", "list", "watch"] diff --git a/charts/kubeflow/dip/cluster-rolebinding.yaml b/charts/kubeflow/dip/cluster-rolebinding.yaml new file mode 100644 index 0000000..daa3325 --- /dev/null +++ b/charts/kubeflow/dip/cluster-rolebinding.yaml @@ -0,0 +1,12 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: kyverno:background-controller-generate-extra +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: kyverno:background-controller-generate-extra +subjects: + - kind: ServiceAccount + name: kyverno-background-controller + namespace: kyverno diff --git a/charts/kubeflow/kustomization.yaml b/charts/kubeflow/kustomization.yaml index 2a1653f..7595267 100644 --- a/charts/kubeflow/kustomization.yaml +++ b/charts/kubeflow/kustomization.yaml @@ -95,6 +95,8 @@ resources: # dip - dip/cluster-policy.yaml +- dip/cluster-role.yaml +- dip/cluster-rolebinding.yaml # Pod Security Standards # https://kubernetes.io/docs/concepts/security/pod-security-standards/