File tree Expand file tree Collapse file tree 4 files changed +17
-0
lines changed
deploy/helm/clickhouse-operator Expand file tree Collapse file tree 4 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ metadata:
1111 " helm.sh/hook " : pre-install,pre-upgrade
1212 " helm.sh/hook-weight " : " -7"
1313 " helm.sh/hook-delete-policy " : before-hook-creation,hook-succeeded
14+ {{- with .Values.crdHook.annotations }}
15+ {{- toYaml . | nindent 4 }}
16+ {{- end }}
1417data :
1518 clickhouseinstallations.yaml : |
1619{{ .Files.Get "crds/CustomResourceDefinition-clickhouseinstallations.clickhouse.altinity.com.yaml" | indent 4 }}
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ metadata:
1111 " helm.sh/hook " : pre-install,pre-upgrade
1212 " helm.sh/hook-weight " : " -5"
1313 " helm.sh/hook-delete-policy " : before-hook-creation,hook-succeeded
14+ {{- with .Values.crdHook.annotations }}
15+ {{- toYaml . | nindent 4 }}
16+ {{- end }}
1417spec :
1518 template :
1619 metadata :
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ metadata:
1212 " helm.sh/hook " : pre-install,pre-upgrade
1313 " helm.sh/hook-weight " : " -6"
1414 " helm.sh/hook-delete-policy " : before-hook-creation,hook-succeeded
15+ {{- with .Values.crdHook.annotations }}
16+ {{- toYaml . | nindent 4 }}
17+ {{- end }}
1518---
1619apiVersion : rbac.authorization.k8s.io/v1
1720kind : ClusterRole
@@ -24,6 +27,9 @@ metadata:
2427 " helm.sh/hook " : pre-install,pre-upgrade
2528 " helm.sh/hook-weight " : " -6"
2629 " helm.sh/hook-delete-policy " : before-hook-creation,hook-succeeded
30+ {{- with .Values.crdHook.annotations }}
31+ {{- toYaml . | nindent 4 }}
32+ {{- end }}
2733rules :
2834- apiGroups :
2935 - apiextensions.k8s.io
@@ -47,6 +53,9 @@ metadata:
4753 " helm.sh/hook " : pre-install,pre-upgrade
4854 " helm.sh/hook-weight " : " -6"
4955 " helm.sh/hook-delete-policy " : before-hook-creation,hook-succeeded
56+ {{- with .Values.crdHook.annotations }}
57+ {{- toYaml . | nindent 4 }}
58+ {{- end }}
5059roleRef :
5160 apiGroup : rbac.authorization.k8s.io
5261 kind : ClusterRole
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ crdHook:
3232 tolerations : []
3333 # crdHook.affinity -- affinity for CRD installation job
3434 affinity : {}
35+ # crdHook.annotations -- additional annotations for CRD installation job
36+ annotations : {}
3537operator :
3638 image :
3739 # operator.image.repository -- image repository
You can’t perform that action at this time.
0 commit comments