diff --git a/installer/helm/chart/volcano/templates/admission.yaml b/installer/helm/chart/volcano/templates/admission.yaml index 68ada88fc9..8bc482174f 100644 --- a/installer/helm/chart/volcano/templates/admission.yaml +++ b/installer/helm/chart/volcano/templates/admission.yaml @@ -8,7 +8,6 @@ kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: name: {{ .Release.Name }}-admission - namespace: {{ .Release.Namespace }} rules: - apiGroups: [""] resources: ["configmaps"] @@ -41,7 +40,6 @@ kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: {{ .Release.Name }}-admission-role - namespace: {{ .Release.Namespace }} subjects: - kind: ServiceAccount name: {{ .Release.Name }}-admission diff --git a/installer/helm/chart/volcano/templates/controllers.yaml b/installer/helm/chart/volcano/templates/controllers.yaml index eedfd76bf5..c5f18f3238 100644 --- a/installer/helm/chart/volcano/templates/controllers.yaml +++ b/installer/helm/chart/volcano/templates/controllers.yaml @@ -9,7 +9,6 @@ kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: name: {{ .Release.Name }}-controllers - namespace: {{ .Release.Namespace }} rules: - apiGroups: ["apiextensions.k8s.io"] resources: ["customresourcedefinitions"] @@ -53,7 +52,6 @@ kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: {{ .Release.Name }}-controllers-role - namespace: {{ .Release.Namespace }} subjects: - kind: ServiceAccount name: {{ .Release.Name }}-controllers diff --git a/installer/helm/chart/volcano/templates/scheduler.yaml b/installer/helm/chart/volcano/templates/scheduler.yaml index 5a0e53f210..c8c72f0f1c 100644 --- a/installer/helm/chart/volcano/templates/scheduler.yaml +++ b/installer/helm/chart/volcano/templates/scheduler.yaml @@ -16,7 +16,6 @@ kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: name: {{ .Release.Name }}-scheduler - namespace: {{ .Release.Namespace }} rules: - apiGroups: ["apiextensions.k8s.io"] resources: ["customresourcedefinitions"] @@ -72,7 +71,6 @@ kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: {{ .Release.Name }}-scheduler-role - namespace: {{ .Release.Namespace }} subjects: - kind: ServiceAccount name: {{ .Release.Name }}-scheduler diff --git a/installer/volcano-development.yaml b/installer/volcano-development.yaml index a4c7eed6ee..9b303b511b 100644 --- a/installer/volcano-development.yaml +++ b/installer/volcano-development.yaml @@ -35,7 +35,6 @@ kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: name: volcano-scheduler - namespace: volcano-system rules: - apiGroups: ["apiextensions.k8s.io"] resources: ["customresourcedefinitions"] @@ -91,7 +90,6 @@ kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: volcano-scheduler-role - namespace: volcano-system subjects: - kind: ServiceAccount name: volcano-scheduler @@ -150,7 +148,6 @@ kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: name: volcano-admission - namespace: volcano-system rules: - apiGroups: [""] resources: ["configmaps"] @@ -183,7 +180,6 @@ kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: volcano-admission-role - namespace: volcano-system subjects: - kind: ServiceAccount name: volcano-admission @@ -288,7 +284,6 @@ kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: name: volcano-controllers - namespace: volcano-system rules: - apiGroups: ["apiextensions.k8s.io"] resources: ["customresourcedefinitions"] @@ -332,7 +327,6 @@ kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: volcano-controllers-role - namespace: volcano-system subjects: - kind: ServiceAccount name: volcano-controllers