Skip to content

Commit

Permalink
Merge pull request #10 from Commvault/initcontainer
Browse files Browse the repository at this point in the history
Mounting k8s secrets
  • Loading branch information
cvltmaheshp authored Jun 14, 2024
2 parents b2a86ed + 6827db5 commit 7ca8212
Show file tree
Hide file tree
Showing 21 changed files with 28 additions and 42 deletions.
2 changes: 1 addition & 1 deletion charts/accessnode/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: accessnode
description: A Helm chart for creating an access node
type: application
version: "1.0.2"
version: "1.0.3"
appVersion: "1"
2 changes: 1 addition & 1 deletion charts/accessnode/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ cv.commondeploymentpecs creates pod specifications that are common to all deploy
args:
- cp /tmp/secretcontents/* /opt/{{include "cv.utils.getOemPath" .}}/k8ssecrets
volumeMounts:
- name: configsecrets
- name: cv-storage-certsandlogs
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/k8ssecrets
subPath: k8ssecrets
- name: cv-storage-secretssvolume
Expand Down
6 changes: 2 additions & 4 deletions charts/accessnode/templates/_pvc.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ storageClass:
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/appdata
subPath: certificates
{{- if eq (include "cv.useInitContainer" .) "true" }}
- name: configsecrets
- name: cv-storage-certsandlogs
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/k8ssecrets
subPath: k8ssecrets
{{- end }}
Expand All @@ -192,9 +192,7 @@ storageClass:
{{- if eq (include "cv.useInitContainer" .) "true" }}
- name: cv-storage-secretssvolume
secret:
secretName: {{ include "cv.metadataname2" (list . "cvcreds") }}
- name: configsecrets
emptyDir: {}
secretName: {{ include "cv.metadataname2" (list . "cvcreds") }}
{{- end }}
{{- end }}

Expand Down
2 changes: 1 addition & 1 deletion charts/commandcenter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: commandcenter
description: A Helm chart for creating the command center
type: application
version: "1.0.2"
version: "1.0.3"
appVersion: "1"
2 changes: 1 addition & 1 deletion charts/commandcenter/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ cv.commondeploymentpecs creates pod specifications that are common to all deploy
args:
- cp /tmp/secretcontents/* /opt/{{include "cv.utils.getOemPath" .}}/k8ssecrets
volumeMounts:
- name: configsecrets
- name: cv-storage-certsandlogs
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/k8ssecrets
subPath: k8ssecrets
- name: cv-storage-secretssvolume
Expand Down
6 changes: 2 additions & 4 deletions charts/commandcenter/templates/_pvc.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ storageClass:
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/appdata
subPath: certificates
{{- if eq (include "cv.useInitContainer" .) "true" }}
- name: configsecrets
- name: cv-storage-certsandlogs
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/k8ssecrets
subPath: k8ssecrets
{{- end }}
Expand All @@ -192,9 +192,7 @@ storageClass:
{{- if eq (include "cv.useInitContainer" .) "true" }}
- name: cv-storage-secretssvolume
secret:
secretName: {{ include "cv.metadataname2" (list . "cvcreds") }}
- name: configsecrets
emptyDir: {}
secretName: {{ include "cv.metadataname2" (list . "cvcreds") }}
{{- end }}
{{- end }}

Expand Down
2 changes: 1 addition & 1 deletion charts/config/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: config
description: A Helm chart for creating the base configuration and secret for all cv components in the namespace
type: application
version: "1.0.2"
version: "1.0.3"
appVersion: "1"
2 changes: 1 addition & 1 deletion charts/config/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ cv.commondeploymentpecs creates pod specifications that are common to all deploy
args:
- cp /tmp/secretcontents/* /opt/{{include "cv.utils.getOemPath" .}}/k8ssecrets
volumeMounts:
- name: configsecrets
- name: cv-storage-certsandlogs
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/k8ssecrets
subPath: k8ssecrets
- name: cv-storage-secretssvolume
Expand Down
6 changes: 2 additions & 4 deletions charts/config/templates/_pvc.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ storageClass:
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/appdata
subPath: certificates
{{- if eq (include "cv.useInitContainer" .) "true" }}
- name: configsecrets
- name: cv-storage-certsandlogs
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/k8ssecrets
subPath: k8ssecrets
{{- end }}
Expand All @@ -192,9 +192,7 @@ storageClass:
{{- if eq (include "cv.useInitContainer" .) "true" }}
- name: cv-storage-secretssvolume
secret:
secretName: {{ include "cv.metadataname2" (list . "cvcreds") }}
- name: configsecrets
emptyDir: {}
secretName: {{ include "cv.metadataname2" (list . "cvcreds") }}
{{- end }}
{{- end }}

Expand Down
2 changes: 1 addition & 1 deletion charts/cs/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: commserve
description: A Helm chart for creating the CS component
type: application
version: "1.0.2"
version: "1.0.3"
appVersion: "1"
2 changes: 1 addition & 1 deletion charts/cs/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ cv.commondeploymentpecs creates pod specifications that are common to all deploy
args:
- cp /tmp/secretcontents/* /opt/{{include "cv.utils.getOemPath" .}}/k8ssecrets
volumeMounts:
- name: configsecrets
- name: cv-storage-certsandlogs
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/k8ssecrets
subPath: k8ssecrets
- name: cv-storage-secretssvolume
Expand Down
6 changes: 2 additions & 4 deletions charts/cs/templates/_pvc.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ storageClass:
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/appdata
subPath: certificates
{{- if eq (include "cv.useInitContainer" .) "true" }}
- name: configsecrets
- name: cv-storage-certsandlogs
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/k8ssecrets
subPath: k8ssecrets
{{- end }}
Expand All @@ -192,9 +192,7 @@ storageClass:
{{- if eq (include "cv.useInitContainer" .) "true" }}
- name: cv-storage-secretssvolume
secret:
secretName: {{ include "cv.metadataname2" (list . "cvcreds") }}
- name: configsecrets
emptyDir: {}
secretName: {{ include "cv.metadataname2" (list . "cvcreds") }}
{{- end }}
{{- end }}

Expand Down
2 changes: 1 addition & 1 deletion charts/mediaagent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: mediaagent
description: A Helm chart for creating a media agent
type: application
version: "1.0.2"
version: "1.0.3"
appVersion: "1"
2 changes: 1 addition & 1 deletion charts/mediaagent/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ cv.commondeploymentpecs creates pod specifications that are common to all deploy
args:
- cp /tmp/secretcontents/* /opt/{{include "cv.utils.getOemPath" .}}/k8ssecrets
volumeMounts:
- name: configsecrets
- name: cv-storage-certsandlogs
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/k8ssecrets
subPath: k8ssecrets
- name: cv-storage-secretssvolume
Expand Down
6 changes: 2 additions & 4 deletions charts/mediaagent/templates/_pvc.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ storageClass:
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/appdata
subPath: certificates
{{- if eq (include "cv.useInitContainer" .) "true" }}
- name: configsecrets
- name: cv-storage-certsandlogs
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/k8ssecrets
subPath: k8ssecrets
{{- end }}
Expand All @@ -192,9 +192,7 @@ storageClass:
{{- if eq (include "cv.useInitContainer" .) "true" }}
- name: cv-storage-secretssvolume
secret:
secretName: {{ include "cv.metadataname2" (list . "cvcreds") }}
- name: configsecrets
emptyDir: {}
secretName: {{ include "cv.metadataname2" (list . "cvcreds") }}
{{- end }}
{{- end }}

Expand Down
2 changes: 1 addition & 1 deletion charts/networkgateway/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: networkgateway
description: A Helm chart for creating an FS agent which can serve as a network gateway
type: application
version: "1.0.2"
version: "1.0.3"
appVersion: "1"
2 changes: 1 addition & 1 deletion charts/networkgateway/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ cv.commondeploymentpecs creates pod specifications that are common to all deploy
args:
- cp /tmp/secretcontents/* /opt/{{include "cv.utils.getOemPath" .}}/k8ssecrets
volumeMounts:
- name: configsecrets
- name: cv-storage-certsandlogs
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/k8ssecrets
subPath: k8ssecrets
- name: cv-storage-secretssvolume
Expand Down
6 changes: 2 additions & 4 deletions charts/networkgateway/templates/_pvc.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ storageClass:
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/appdata
subPath: certificates
{{- if eq (include "cv.useInitContainer" .) "true" }}
- name: configsecrets
- name: cv-storage-certsandlogs
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/k8ssecrets
subPath: k8ssecrets
{{- end }}
Expand All @@ -192,9 +192,7 @@ storageClass:
{{- if eq (include "cv.useInitContainer" .) "true" }}
- name: cv-storage-secretssvolume
secret:
secretName: {{ include "cv.metadataname2" (list . "cvcreds") }}
- name: configsecrets
emptyDir: {}
secretName: {{ include "cv.metadataname2" (list . "cvcreds") }}
{{- end }}
{{- end }}

Expand Down
2 changes: 1 addition & 1 deletion charts/webserver/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: webserver
description: A Helm chart for creating the webserver
type: application
version: "1.0.2"
version: "1.0.3"
appVersion: "1"
2 changes: 1 addition & 1 deletion charts/webserver/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ cv.commondeploymentpecs creates pod specifications that are common to all deploy
args:
- cp /tmp/secretcontents/* /opt/{{include "cv.utils.getOemPath" .}}/k8ssecrets
volumeMounts:
- name: configsecrets
- name: cv-storage-certsandlogs
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/k8ssecrets
subPath: k8ssecrets
- name: cv-storage-secretssvolume
Expand Down
6 changes: 2 additions & 4 deletions charts/webserver/templates/_pvc.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ storageClass:
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/appdata
subPath: certificates
{{- if eq (include "cv.useInitContainer" .) "true" }}
- name: configsecrets
- name: cv-storage-certsandlogs
mountPath: /opt/{{include "cv.utils.getOemPath" .}}/k8ssecrets
subPath: k8ssecrets
{{- end }}
Expand All @@ -192,9 +192,7 @@ storageClass:
{{- if eq (include "cv.useInitContainer" .) "true" }}
- name: cv-storage-secretssvolume
secret:
secretName: {{ include "cv.metadataname2" (list . "cvcreds") }}
- name: configsecrets
emptyDir: {}
secretName: {{ include "cv.metadataname2" (list . "cvcreds") }}
{{- end }}
{{- end }}

Expand Down

0 comments on commit 7ca8212

Please sign in to comment.