File tree Expand file tree Collapse file tree 5 files changed +19
-6
lines changed
docs/sources/setup/install/helm Expand file tree Collapse file tree 5 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -3075,6 +3075,7 @@ null
3075
3075
"enabled": true,
3076
3076
"env": [ ] ,
3077
3077
"extraVolumeMounts": [ ] ,
3078
+ "hookType": "post-install",
3078
3079
"image": {
3079
3080
"digest": null,
3080
3081
"pullPolicy": "IfNotPresent",
@@ -3263,6 +3264,7 @@ null
3263
3264
"enabled": true,
3264
3265
"env": [ ] ,
3265
3266
"extraVolumeMounts": [ ] ,
3267
+ "hookType": "post-install",
3266
3268
"image": {
3267
3269
"digest": null,
3268
3270
"pullPolicy": "IfNotPresent",
@@ -3337,6 +3339,15 @@ true
3337
3339
<td><pre lang="json">
3338
3340
[ ]
3339
3341
</pre >
3342
+ </td >
3343
+ </tr>
3344
+ <tr>
3345
+ <td>enterprise.provisioner.hookType</td>
3346
+ <td>string</td>
3347
+ <td>Hook type(s) to customize when the job runs. defaults to post-install</td>
3348
+ <td><pre lang="json">
3349
+ "post-install"
3350
+ </pre >
3340
3351
</td >
3341
3352
</tr>
3342
3353
<tr>
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ metadata:
14
14
{{- with .Values.enterprise.provisioner.annotations }}
15
15
{{- toYaml . | nindent 4 }}
16
16
{{- end }}
17
- " helm.sh/hook " : post-install
17
+ " helm.sh/hook " : {{ .Values.enterprise.provisioner.hookType | default " post-install" | quote }}
18
18
" helm.sh/hook-weight " : " 15"
19
19
spec :
20
20
backoffLimit : 6
Original file line number Diff line number Diff line change 1
- {{ if and (and .Values.enterprise.provisioner.enabled .Values.enterprise.enabled) (not .Values.rbac.namespaced) }}
1
+ {{ if and .Values.enterprise.provisioner.enabled .Values.enterprise.enabled }}
2
2
apiVersion : rbac.authorization.k8s.io/v1
3
- kind : ClusterRole
3
+ kind : {{ if not .Values.rbac.namespaced }}Cluster{{ end }}Role
4
4
metadata :
5
5
name : {{ template "enterprise-logs.provisionerFullname" . }}
6
6
namespace : {{ $.Release.Namespace }}
Original file line number Diff line number Diff line change 1
- {{ if and (and .Values.enterprise.provisioner.enabled .Values.enterprise.enabled) (not .Values.rbac.namespaced) }}
1
+ {{ if and .Values.enterprise.provisioner.enabled .Values.enterprise.enabled}}
2
2
---
3
3
apiVersion : rbac.authorization.k8s.io/v1
4
- kind : ClusterRoleBinding
4
+ kind : {{ if not .Values.rbac.namespaced }}Cluster{{ else }}Role{{ end }}Binding
5
5
metadata :
6
6
name : {{ template "enterprise-logs.provisionerFullname" . }}
7
7
namespace : {{ $.Release.Namespace }}
@@ -17,7 +17,7 @@ metadata:
17
17
" helm.sh/hook " : post-install
18
18
roleRef :
19
19
apiGroup : rbac.authorization.k8s.io
20
- kind : ClusterRole
20
+ kind : {{ if not .Values.rbac.namespaced }}Cluster{{ end }}Role
21
21
name : {{ template "enterprise-logs.provisionerFullname" . }}
22
22
subjects :
23
23
- kind : ServiceAccount
Original file line number Diff line number Diff line change @@ -611,6 +611,8 @@ enterprise:
611
611
enabled : true
612
612
# -- Name of the secret to store provisioned tokens in
613
613
provisionedSecretPrefix : null
614
+ # -- Hook type(s) to customize when the job runs. defaults to post-install
615
+ hookType : " post-install"
614
616
# -- Additional tenants to be created. Each tenant will get a read and write policy
615
617
# and associated token. Tenant must have a name and a namespace for the secret containting
616
618
# the token to be created in. For example
You can’t perform that action at this time.
0 commit comments