Skip to content

Commit

Permalink
Merge pull request #5 from Commvault/initcontainer
Browse files Browse the repository at this point in the history
added support for init container
  • Loading branch information
cvltmaheshp authored Mar 15, 2024
2 parents 0406e21 + 159dd77 commit cef0a36
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 cef0a36

Please sign in to comment.