Skip to content

Commit

Permalink
added support for init container
Browse files Browse the repository at this point in the history
  • Loading branch information
ameykarandikar1 committed Mar 15, 2024
1 parent edc9587 commit 159dd77
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 21 deletions.
4 changes: 1 addition & 3 deletions charts/accessnode/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,6 @@ Values in defaults.yaml gets the last priority
{{- if eq (include "cv.utils.isMinVersion" (list . 11 40)) "true" }}
{{- $initContainer = true }}
{{- end }}
{{- if .Release.IsUpgrade -}}
{{- $initContainer = false }}
{{- end }}
{{- $initContainer = ternary $defaults.initContainer $initContainer (hasKey $defaults "initContainer") }}
{{- $initContainer = ternary .Values.initContainer $initContainer (hasKey .Values "initContainer") }}
{{- $initContainer | toString }}
Expand Down Expand Up @@ -295,5 +292,6 @@ cv.commondeploymentpecs creates pod specifications that are common to all deploy
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/Base64/Temp/k8ssecrets
- name: cv-storage-secretssvolume
mountPath: /tmp/secretcontents
subPath: k8ssecrets
{{- end }}
{{- end }}
4 changes: 1 addition & 3 deletions charts/commandcenter/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,6 @@ Values in defaults.yaml gets the last priority
{{- if eq (include "cv.utils.isMinVersion" (list . 11 40)) "true" }}
{{- $initContainer = true }}
{{- end }}
{{- if .Release.IsUpgrade -}}
{{- $initContainer = false }}
{{- end }}
{{- $initContainer = ternary $defaults.initContainer $initContainer (hasKey $defaults "initContainer") }}
{{- $initContainer = ternary .Values.initContainer $initContainer (hasKey .Values "initContainer") }}
{{- $initContainer | toString }}
Expand Down Expand Up @@ -295,5 +292,6 @@ cv.commondeploymentpecs creates pod specifications that are common to all deploy
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/Base64/Temp/k8ssecrets
- name: cv-storage-secretssvolume
mountPath: /tmp/secretcontents
subPath: k8ssecrets
{{- end }}
{{- end }}
4 changes: 1 addition & 3 deletions charts/config/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,6 @@ Values in defaults.yaml gets the last priority
{{- if eq (include "cv.utils.isMinVersion" (list . 11 40)) "true" }}
{{- $initContainer = true }}
{{- end }}
{{- if .Release.IsUpgrade -}}
{{- $initContainer = false }}
{{- end }}
{{- $initContainer = ternary $defaults.initContainer $initContainer (hasKey $defaults "initContainer") }}
{{- $initContainer = ternary .Values.initContainer $initContainer (hasKey .Values "initContainer") }}
{{- $initContainer | toString }}
Expand Down Expand Up @@ -295,5 +292,6 @@ cv.commondeploymentpecs creates pod specifications that are common to all deploy
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/Base64/Temp/k8ssecrets
- name: cv-storage-secretssvolume
mountPath: /tmp/secretcontents
subPath: k8ssecrets
{{- end }}
{{- end }}
4 changes: 1 addition & 3 deletions charts/cs/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,6 @@ Values in defaults.yaml gets the last priority
{{- if eq (include "cv.utils.isMinVersion" (list . 11 40)) "true" }}
{{- $initContainer = true }}
{{- end }}
{{- if .Release.IsUpgrade -}}
{{- $initContainer = false }}
{{- end }}
{{- $initContainer = ternary $defaults.initContainer $initContainer (hasKey $defaults "initContainer") }}
{{- $initContainer = ternary .Values.initContainer $initContainer (hasKey .Values "initContainer") }}
{{- $initContainer | toString }}
Expand Down Expand Up @@ -295,5 +292,6 @@ cv.commondeploymentpecs creates pod specifications that are common to all deploy
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/Base64/Temp/k8ssecrets
- name: cv-storage-secretssvolume
mountPath: /tmp/secretcontents
subPath: k8ssecrets
{{- end }}
{{- end }}
4 changes: 1 addition & 3 deletions charts/mediaagent/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,6 @@ Values in defaults.yaml gets the last priority
{{- if eq (include "cv.utils.isMinVersion" (list . 11 40)) "true" }}
{{- $initContainer = true }}
{{- end }}
{{- if .Release.IsUpgrade -}}
{{- $initContainer = false }}
{{- end }}
{{- $initContainer = ternary $defaults.initContainer $initContainer (hasKey $defaults "initContainer") }}
{{- $initContainer = ternary .Values.initContainer $initContainer (hasKey .Values "initContainer") }}
{{- $initContainer | toString }}
Expand Down Expand Up @@ -295,5 +292,6 @@ cv.commondeploymentpecs creates pod specifications that are common to all deploy
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/Base64/Temp/k8ssecrets
- name: cv-storage-secretssvolume
mountPath: /tmp/secretcontents
subPath: k8ssecrets
{{- end }}
{{- end }}
4 changes: 1 addition & 3 deletions charts/networkgateway/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,6 @@ Values in defaults.yaml gets the last priority
{{- if eq (include "cv.utils.isMinVersion" (list . 11 40)) "true" }}
{{- $initContainer = true }}
{{- end }}
{{- if .Release.IsUpgrade -}}
{{- $initContainer = false }}
{{- end }}
{{- $initContainer = ternary $defaults.initContainer $initContainer (hasKey $defaults "initContainer") }}
{{- $initContainer = ternary .Values.initContainer $initContainer (hasKey .Values "initContainer") }}
{{- $initContainer | toString }}
Expand Down Expand Up @@ -295,5 +292,6 @@ cv.commondeploymentpecs creates pod specifications that are common to all deploy
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/Base64/Temp/k8ssecrets
- name: cv-storage-secretssvolume
mountPath: /tmp/secretcontents
subPath: k8ssecrets
{{- end }}
{{- end }}
4 changes: 1 addition & 3 deletions charts/webserver/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,6 @@ Values in defaults.yaml gets the last priority
{{- if eq (include "cv.utils.isMinVersion" (list . 11 40)) "true" }}
{{- $initContainer = true }}
{{- end }}
{{- if .Release.IsUpgrade -}}
{{- $initContainer = false }}
{{- end }}
{{- $initContainer = ternary $defaults.initContainer $initContainer (hasKey $defaults "initContainer") }}
{{- $initContainer = ternary .Values.initContainer $initContainer (hasKey .Values "initContainer") }}
{{- $initContainer | toString }}
Expand Down Expand Up @@ -295,5 +292,6 @@ cv.commondeploymentpecs creates pod specifications that are common to all deploy
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/Base64/Temp/k8ssecrets
- name: cv-storage-secretssvolume
mountPath: /tmp/secretcontents
subPath: k8ssecrets
{{- end }}
{{- end }}

0 comments on commit 159dd77

Please sign in to comment.