diff --git a/packages/zarf-registry/chart/templates/pvc.yaml b/packages/zarf-registry/chart/templates/pvc.yaml index dea05397a5..2dd70c1ac4 100644 --- a/packages/zarf-registry/chart/templates/pvc.yaml +++ b/packages/zarf-registry/chart/templates/pvc.yaml @@ -17,11 +17,7 @@ spec: requests: storage: {{ .Values.persistence.size | quote }} {{- if .Values.persistence.storageClass }} -{{- if (eq "-" .Values.persistence.storageClass) }} - storageClassName: "" -{{- else }} - storageClassName: "{{ .Values.persistence.storageClass }}" -{{- end }} -{{- end }} + storageClassName: {{ .Values.persistence.storageClass }} {{- end }} {{- end -}} +{{- end }} diff --git a/src/pkg/packager/deploy.go b/src/pkg/packager/deploy.go index 04ab338475..a6ad282e1e 100644 --- a/src/pkg/packager/deploy.go +++ b/src/pkg/packager/deploy.go @@ -216,13 +216,15 @@ func (p *Packager) deployInitComponent(component types.ZarfComponent) (charts [] if isSeedRegistry { p.cluster.StartInjectionMadness(p.layout.Base, p.layout.Images.Base, component.Images) - // Retrieve the default storage class from the cluster, it will be the default - if p.cfg.PkgOpts.SetVariables == nil { - p.cfg.PkgOpts.SetVariables = map[string]string{} - } - if c := p.cfg.PkgOpts.SetVariables["REGISTRY_STORAGE_CLASS"]; c == "" { - p.cfg.PkgOpts.SetVariables["REGISTRY_STORAGE_CLASS"], err = p.cluster.GetDefaultStorageClass() - } + /* + // Retrieve the default storage class from the cluster, it will be the default + if p.cfg.PkgOpts.SetVariables == nil { + p.cfg.PkgOpts.SetVariables = map[string]string{} + } + if c := p.cfg.PkgOpts.SetVariables["REGISTRY_STORAGE_CLASS"]; c == "" { + p.cfg.PkgOpts.SetVariables["REGISTRY_STORAGE_CLASS"], err = p.cluster.GetDefaultStorageClass() + } + */ if err != nil { message.WarnErr(err, "Unable to get the default storage class from the cluster") }