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
38
38
{ {- true } }
39
39
{ {- else } }
40
40
{ {- 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 -} }
41
48
{ {- false } }
42
49
{ {- else } }
50
+ { {- true } }
51
+ { {- end } }
52
+ { {- else } }
43
53
{ {- $newCm := (lookup " apps/v1" " StatefulSet" .Release.Namespace (include " marklogic.newFullname" .)) } }
44
54
{ {- if $newCm } }
45
55
{ {- true } }
You can’t perform that action at this time.
0 commit comments