修改资源的运行顺序

pull/1208/head
zhangxinhui02 2025-08-20 02:41:39 +08:00
parent 37d3427698
commit 1eb5c4c56b
No known key found for this signature in database
GPG Key ID: 22C23383864A313F
2 changed files with 1 additions and 10 deletions

View File

@ -5,7 +5,7 @@ metadata:
name: {{ .Release.Name }}-maibot-adapter-cm-generator
namespace: {{ .Release.Namespace }}
annotations:
"helm.sh/hook": pre-install
"helm.sh/hook": post-install
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
spec:
backoffLimit: 0

View File

@ -4,18 +4,12 @@ kind: ServiceAccount
metadata:
name: {{ .Release.Name }}-maibot-adapter-cm-generator
namespace: {{ .Release.Namespace }}
annotations:
"helm.sh/hook": pre-install
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ .Release.Name }}-maibot-adapter-cm-gen-role
namespace: {{ .Release.Namespace }}
annotations:
"helm.sh/hook": pre-install
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
rules:
- apiGroups: [""]
resources: ["configmaps"]
@ -26,9 +20,6 @@ kind: RoleBinding
metadata:
name: {{ .Release.Name }}-maibot-adapter-cm-gen-role-binding
namespace: {{ .Release.Namespace }}
annotations:
"helm.sh/hook": pre-install
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
subjects:
- kind: ServiceAccount
name: {{ .Release.Name }}-maibot-adapter-cm-generator