File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,18 @@ oldFullname is the name used before 1.1.x release
3838{ {- true } }
3939{ {- else } }
4040{ {- if .Values.fullnameOverride -} }
41+ { {- $overridenName := trim .Values.fullnameOverride -} }
42+ { {- $labels := (lookup " apps/v1" " StatefulSet" .Release.Namespace $overridenName ).metadata.labels -} }
43+ { {- $chartVersionFull := get $labels " helm.sh/chart" -} }
44+ { {- $chartVersionString := trimPrefix " marklogic-" $chartVersionFull -} }
45+ { {- $chartVersionString := $chartVersionString | replace " ." " " -} }
46+ { {- $chartVersionDigit := int $chartVersionString } }
47+ { {- if lt $chartVersionDigit 110 -} }
4148{ {- false } }
4249{ {- else } }
50+ { {- true } }
51+ { {- end } }
52+ { {- else } }
4353{ {- $newCm := (lookup " apps/v1" " StatefulSet" .Release.Namespace (include " marklogic.newFullname" .)) } }
4454{ {- if $newCm } }
4555{ {- true } }
You can’t perform that action at this time.
0 commit comments