Commit 4685b1bd authored by gaoshiyao's avatar gaoshiyao

update

parent 8824b4f5
......@@ -9,9 +9,12 @@ configInfo:
value: ["latest"]
- name: storageSpec.volumeClaimTemplate.spec.storageClassName
text: 存储类
type: radio
type: storage
value: ["rook-ceph-block"]
- name: storageSpec.volumeClaimTemplate.spec.resources.requests.storage
text: 存储容量
type: text
value: "5Gi"
\ No newline at end of file
storage: "4Gi"
hostpath: "/data/path"
- name: storageSpec.volumeClaimTemplate.spec.resources
text: 资源限制
type: resource
memory: "5Gi"
cpu: "1000m"
\ No newline at end of file
......@@ -58,8 +58,14 @@ spec:
{{- if .Values.storageSpec.hostPath }}
- name: data
hostPath:
{{ toYaml $.Values.storageSpec.hostPath | indent 10 }}
{{- else if .Values.storageSpec.volumeClaimTemplate }}
path: /data/{{ .Release.Namespace }}/{{ .Release.Name }}/oracle11g
{{- else if .Values.storageSpec.emptyDir }}
- name: data
emptyDir: {}
{{- end }}
{{- if .Values.storageSpec.hostPath }}
{{- else if .Values.storageSpec.emptyDir }}
{{- else if .Values.storageSpec.volumeClaimTemplate }}
volumeClaimTemplates:
- metadata:
name: "data"
......@@ -68,7 +74,4 @@ spec:
app: {{ .Release.Name }}
spec:
{{ toYaml $.Values.storageSpec.volumeClaimTemplate.spec | indent 6 }}
{{- else }}
- name: data
emptyDir: {}
{{- end }}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment