Skip to content

Commit

Permalink
Merge pull request #7 from Commvault/initcontainer
Browse files Browse the repository at this point in the history
Initcontainer
  • Loading branch information
cvltmaheshp authored Apr 8, 2024
2 parents a10f108 + 95ac0fd commit 5e0ab04
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/accessnode/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Values in defaults.yaml gets the last priority
{{- define "cv.useInitContainer" }}
{{- $defaults := (fromYaml (.Files.Get "defaults.yaml")) }}
{{- $initContainer := false }}
{{- if eq (include "cv.utils.isMinVersion" (list . 11 40)) "true" }}
{{- if eq (include "cv.utils.isMinVersion" (list . 11 38)) "true" }}
{{- $initContainer = true }}
{{- end }}
{{- $initContainer = ternary $defaults.initContainer $initContainer (hasKey $defaults "initContainer") }}
Expand Down
2 changes: 1 addition & 1 deletion charts/commandcenter/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Values in defaults.yaml gets the last priority
{{- define "cv.useInitContainer" }}
{{- $defaults := (fromYaml (.Files.Get "defaults.yaml")) }}
{{- $initContainer := false }}
{{- if eq (include "cv.utils.isMinVersion" (list . 11 40)) "true" }}
{{- if eq (include "cv.utils.isMinVersion" (list . 11 38)) "true" }}
{{- $initContainer = true }}
{{- end }}
{{- $initContainer = ternary $defaults.initContainer $initContainer (hasKey $defaults "initContainer") }}
Expand Down
3 changes: 3 additions & 0 deletions charts/commandcenter/templates/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ spec:
- name: cv-storage-certsandlogs
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/Apache/conf
subPath: apacheconf
- name: cv-storage-certsandlogs
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/Metrics/public
subPath: public
{{- end }}
{{- include "cv.commonVolumeMounts" . }}
{{- include "cv.additionalVolumeMounts" . }}
Expand Down
2 changes: 1 addition & 1 deletion charts/config/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Values in defaults.yaml gets the last priority
{{- define "cv.useInitContainer" }}
{{- $defaults := (fromYaml (.Files.Get "defaults.yaml")) }}
{{- $initContainer := false }}
{{- if eq (include "cv.utils.isMinVersion" (list . 11 40)) "true" }}
{{- if eq (include "cv.utils.isMinVersion" (list . 11 38)) "true" }}
{{- $initContainer = true }}
{{- end }}
{{- $initContainer = ternary $defaults.initContainer $initContainer (hasKey $defaults "initContainer") }}
Expand Down
2 changes: 1 addition & 1 deletion charts/config/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# csOrGatewayHostName: # Required. host name of the Commserve or gateway
# csOrGatewayHostName: # Required. host name of the Commserve or gateway. To specify a port number, use hostname:port format

# secret: # username/password or authcode used for registering the commvault components with the commserve
# when installing the commserve component the user and password is required for first user
Expand Down
2 changes: 1 addition & 1 deletion charts/cs/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Values in defaults.yaml gets the last priority
{{- define "cv.useInitContainer" }}
{{- $defaults := (fromYaml (.Files.Get "defaults.yaml")) }}
{{- $initContainer := false }}
{{- if eq (include "cv.utils.isMinVersion" (list . 11 40)) "true" }}
{{- if eq (include "cv.utils.isMinVersion" (list . 11 38)) "true" }}
{{- $initContainer = true }}
{{- end }}
{{- $initContainer = ternary $defaults.initContainer $initContainer (hasKey $defaults "initContainer") }}
Expand Down
2 changes: 1 addition & 1 deletion charts/mediaagent/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Values in defaults.yaml gets the last priority
{{- define "cv.useInitContainer" }}
{{- $defaults := (fromYaml (.Files.Get "defaults.yaml")) }}
{{- $initContainer := false }}
{{- if eq (include "cv.utils.isMinVersion" (list . 11 40)) "true" }}
{{- if eq (include "cv.utils.isMinVersion" (list . 11 38)) "true" }}
{{- $initContainer = true }}
{{- end }}
{{- $initContainer = ternary $defaults.initContainer $initContainer (hasKey $defaults "initContainer") }}
Expand Down
2 changes: 1 addition & 1 deletion charts/networkgateway/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Values in defaults.yaml gets the last priority
{{- define "cv.useInitContainer" }}
{{- $defaults := (fromYaml (.Files.Get "defaults.yaml")) }}
{{- $initContainer := false }}
{{- if eq (include "cv.utils.isMinVersion" (list . 11 40)) "true" }}
{{- if eq (include "cv.utils.isMinVersion" (list . 11 38)) "true" }}
{{- $initContainer = true }}
{{- end }}
{{- $initContainer = ternary $defaults.initContainer $initContainer (hasKey $defaults "initContainer") }}
Expand Down
2 changes: 1 addition & 1 deletion charts/webserver/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Values in defaults.yaml gets the last priority
{{- define "cv.useInitContainer" }}
{{- $defaults := (fromYaml (.Files.Get "defaults.yaml")) }}
{{- $initContainer := false }}
{{- if eq (include "cv.utils.isMinVersion" (list . 11 40)) "true" }}
{{- if eq (include "cv.utils.isMinVersion" (list . 11 38)) "true" }}
{{- $initContainer = true }}
{{- end }}
{{- $initContainer = ternary $defaults.initContainer $initContainer (hasKey $defaults "initContainer") }}
Expand Down

0 comments on commit 5e0ab04

Please sign in to comment.