mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Add variabilisation of RBAC (#4692)
* Add variabilisation of RBAC * fix also filer reference
This commit is contained in:
parent
90d7ec3b40
commit
7ab8c6976e
|
@ -46,7 +46,9 @@ spec:
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: {{ .Values.global.imagePullSecrets }}
|
- name: {{ .Values.global.imagePullSecrets }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.global.createClusterRole }}
|
||||||
serviceAccountName: seaweedfs-rw-sa #hack for delete pod master after migration
|
serviceAccountName: seaweedfs-rw-sa #hack for delete pod master after migration
|
||||||
|
{{- end }}
|
||||||
terminationGracePeriodSeconds: 60
|
terminationGracePeriodSeconds: 60
|
||||||
{{- if .Values.filer.priorityClassName }}
|
{{- if .Values.filer.priorityClassName }}
|
||||||
priorityClassName: {{ .Values.filer.priorityClassName | quote }}
|
priorityClassName: {{ .Values.filer.priorityClassName | quote }}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{- if .Values.global.createClusterRole }}
|
||||||
#hack for delete pod master after migration
|
#hack for delete pod master after migration
|
||||||
---
|
---
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
|
@ -27,3 +28,4 @@ roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: seaweedfs-rw-cr
|
name: seaweedfs-rw-cr
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# Available parameters and their default values for the SeaweedFS chart.
|
# Available parameters and their default values for the SeaweedFS chart.
|
||||||
|
|
||||||
global:
|
global:
|
||||||
|
createClusterRole: true
|
||||||
registry: ""
|
registry: ""
|
||||||
repository: ""
|
repository: ""
|
||||||
imageName: chrislusf/seaweedfs
|
imageName: chrislusf/seaweedfs
|
||||||
|
|
Loading…
Reference in a new issue