From f22184925516afd62bd7c0673da6f2a43f198fc7 Mon Sep 17 00:00:00 2001 From: hongming Date: Tue, 14 Jan 2025 15:25:54 +0800 Subject: [PATCH] update helm chart Signed-off-by: hongming --- .../ks-core/charts/ks-crds/templates/post-delete-crd-job.yaml | 4 +--- .../ks-core/charts/ks-crds/templates/pre-upgrade-crd-job.yaml | 2 -- config/ks-core/templates/roletemplate-categories.yaml | 2 -- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/config/ks-core/charts/ks-crds/templates/post-delete-crd-job.yaml b/config/ks-core/charts/ks-crds/templates/post-delete-crd-job.yaml index 82827d433..ae286dcee 100644 --- a/config/ks-core/charts/ks-crds/templates/post-delete-crd-job.yaml +++ b/config/ks-core/charts/ks-crds/templates/post-delete-crd-job.yaml @@ -20,7 +20,6 @@ data: {{ (.Files.Glob "scripts/post-delete.sh").AsConfig | indent 2 }} --- - apiVersion: v1 kind: ServiceAccount metadata: @@ -31,7 +30,6 @@ metadata: "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded --- - apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: @@ -50,13 +48,13 @@ subjects: namespace: {{ .Release.Namespace }} --- - {{- $crdNameList := list }} {{- range $path, $_ := .Files.Glob "crds/**" }} {{- $crd := $.Files.Get $path | fromYaml }} {{- $crdNameList = append $crdNameList $crd.metadata.name }} {{- end }} +--- apiVersion: batch/v1 kind: Job metadata: diff --git a/config/ks-core/charts/ks-crds/templates/pre-upgrade-crd-job.yaml b/config/ks-core/charts/ks-crds/templates/pre-upgrade-crd-job.yaml index a3e342a20..c9fb0b4f2 100644 --- a/config/ks-core/charts/ks-crds/templates/pre-upgrade-crd-job.yaml +++ b/config/ks-core/charts/ks-crds/templates/pre-upgrade-crd-job.yaml @@ -11,7 +11,6 @@ data: {{ (.Files.Glob "crds/*").AsConfig | indent 2 }} --- - apiVersion: v1 kind: ServiceAccount metadata: @@ -22,7 +21,6 @@ metadata: "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded --- - apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/config/ks-core/templates/roletemplate-categories.yaml b/config/ks-core/templates/roletemplate-categories.yaml index 27cc96e70..a32dbc1da 100644 --- a/config/ks-core/templates/roletemplate-categories.yaml +++ b/config/ks-core/templates/roletemplate-categories.yaml @@ -234,8 +234,6 @@ spec: en: Project Settings zh: '项目设置' ---- - # category --- apiVersion: iam.kubesphere.io/v1beta1 kind: Category