Remove useless composition call
This commit is contained in:
@@ -377,7 +377,7 @@ func buildVolumes(service types.ServiceConfig, chart *HelmChart, deployments map
|
|||||||
// to the target deployment
|
// to the target deployment
|
||||||
if override, ok := service.Labels[LABEL_SAME_POD]; ok {
|
if override, ok := service.Labels[LABEL_SAME_POD]; ok {
|
||||||
pvc.nameOverride = override
|
pvc.nameOverride = override
|
||||||
pvc.PersistentVolumeClaim.Spec.StorageClassName = utils.StrPtr(`{{ .Values.` + override + `.persistence.` + v.Source + `.storageClass }}`)
|
pvc.Spec.StorageClassName = utils.StrPtr(`{{ .Values.` + override + `.persistence.` + v.Source + `.storageClass }}`)
|
||||||
chart.Values[override].(*Value).AddPersistence(v.Source)
|
chart.Values[override].(*Value).AddPersistence(v.Source)
|
||||||
}
|
}
|
||||||
y, _ := pvc.Yaml()
|
y, _ := pvc.Yaml()
|
||||||
|
Reference in New Issue
Block a user