mirror of
https://github.com/bitnami/charts.git
synced 2026-03-13 06:47:24 +08:00
* [bitnami/pytorch] Chart standarization Signed-off-by: FraPazGal <fdepaz@vmware.com> * Remove unused debug param Signed-off-by: FraPazGal <fdepaz@vmware.com> * Modify resource names and remove unneeded params Signed-off-by: FraPazGal <fdepaz@vmware.com> * Regenerate README and ensure backward compatibility Signed-off-by: FraPazGal <fdepaz@vmware.com> * Replace mode param with archetecture and fix compatibility issues Signed-off-by: FraPazGal <fdepaz@vmware.com> * Add clusterIP to service definition Signed-off-by: FraPazGal <fdepaz@vmware.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <containers@bitnami.com> * [bitnami/pytorch] Update components versions Signed-off-by: Bitnami Containers <containers@bitnami.com> Co-authored-by: Bitnami Containers <containers@bitnami.com>
36 lines
1.5 KiB
YAML
36 lines
1.5 KiB
YAML
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}}
|
|
kind: PersistentVolumeClaim
|
|
apiVersion: v1
|
|
metadata:
|
|
name: {{ template "pytorch.master.name" . }}
|
|
namespace: {{ include "common.names.namespace" . | quote }}
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
{{- if .Values.commonLabels }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if or .Values.persistence.annotations .Values.commonAnnotations }}
|
|
annotations:
|
|
{{- if .Values.persistence.annotations }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.persistence.annotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.commonAnnotations }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
spec:
|
|
accessModes:
|
|
{{- range .Values.persistence.accessModes }}
|
|
- {{ . | quote }}
|
|
{{- end }}
|
|
resources:
|
|
requests:
|
|
storage: {{ .Values.persistence.size | quote }}
|
|
{{- if .Values.persistence.selector }}
|
|
selector: {{- include "common.tplvalues.render" (dict "value" .Values.persistence.selector "context" $) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.persistence.dataSource }}
|
|
dataSource: {{- include "common.tplvalues.render" (dict "value" .Values.persistence.dataSource "context" $) | nindent 4 }}
|
|
{{- end }}
|
|
{{- include "common.storage.class" (dict "persistence" .Values.persistence "global" .Values.global) | nindent 2 }}
|
|
{{- end }}
|