mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-28 16:07:05 +00:00
fix(helm): add apiVersion and kind to PersistentVolumeClaim metadata (#3170)
This commit is contained in:
@@ -185,7 +185,9 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
name: logs
|
name: logs
|
||||||
labels:
|
labels:
|
||||||
{{- toYaml .Values.commonLabels | nindent 10 }}
|
{{- toYaml .Values.commonLabels | nindent 10 }}
|
||||||
@@ -199,7 +201,9 @@ spec:
|
|||||||
storage: {{ .Values.storageclass.logStorageSize }}
|
storage: {{ .Values.storageclass.logStorageSize }}
|
||||||
{{- if eq (int .Values.replicaCount) 4 }}
|
{{- if eq (int .Values.replicaCount) 4 }}
|
||||||
{{- range $i := until (int .Values.replicaCount) }}
|
{{- range $i := until (int .Values.replicaCount) }}
|
||||||
- metadata:
|
- apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
name: data-rustfs-{{ $i }}
|
name: data-rustfs-{{ $i }}
|
||||||
labels:
|
labels:
|
||||||
{{- toYaml $.Values.commonLabels | nindent 10 }}
|
{{- toYaml $.Values.commonLabels | nindent 10 }}
|
||||||
@@ -213,7 +217,9 @@ spec:
|
|||||||
storage: {{ $.Values.storageclass.dataStorageSize }}
|
storage: {{ $.Values.storageclass.dataStorageSize }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else if eq (int .Values.replicaCount) 16 }}
|
{{- else if eq (int .Values.replicaCount) 16 }}
|
||||||
- metadata:
|
- apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
name: data
|
name: data
|
||||||
labels:
|
labels:
|
||||||
{{- toYaml .Values.commonLabels | nindent 10 }}
|
{{- toYaml .Values.commonLabels | nindent 10 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user