Skip to content

Commit

Permalink
Merge pull request #12 from JnaneshD05/main
Browse files Browse the repository at this point in the history
Adding cs client name variable to the config chart for the installation
  • Loading branch information
cvltmaheshp authored Oct 18, 2024
2 parents 4a08b54 + d62d9ed commit 147e680
Show file tree
Hide file tree
Showing 16 changed files with 124 additions and 9 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.4"
version: "1.0.5"
appVersion: "1"
16 changes: 16 additions & 0 deletions charts/accessnode/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,14 @@ cv.commonenv creates environment variables that are common to all deployments
fieldPath: status.podIP
- name: CV_IS_STATEFULSET
value: 'true'
{{- if ((.Values).secret).sa_password }}
- name: CV_SA_PWD
value: {{ tpl .Values.secret.sa_password . }}
{{- end }}
{{- if .Values.csClientName }}
- name: CV_CSCLIENTNAME
value: {{ .Values.csClientName }}
{{- end }}
- name: CV_DNS_SUFFIX
# dns suffix of the client
value: {{ .Values.serviceName | default $objectname }}.{{- include "cv.namespace" . }}.{{ or (.Values.global).clusterDomain "svc.cluster.local" }}
Expand All @@ -203,6 +211,10 @@ cv.commonenv creates environment variables that are common to all deployments
{{- else }}
value: {{ .Release.Name }}
{{- end }}
{{- if ((.Values).secret).sa_password }}
- name: CV_SA_PWD
value: {{ tpl .Values.secret.sa_password . }}
{{- end }}
- name: CV_CLIENT_HOSTNAME
# hostname of the client should match the service name.
value: {{ include "cv.hostname" . }}
Expand All @@ -216,6 +228,10 @@ cv.commonenv creates environment variables that are common to all deployments
- name: CV_CSHOSTNAME
value: {{ .Values.csOrGatewayHostName }}
{{- end }}
{{- if .Values.csClientName }}
- name: CV_CSCLIENTNAME
value: {{ .Values.csClientName }}
{{- end }}
{{- if eq (include "cv.useInitContainer" .) "false" }}
{{- if ((.Values).secret).user }}
- name: CV_COMMCELL_USER
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.4"
version: "1.0.5"
appVersion: "1"
16 changes: 16 additions & 0 deletions charts/commandcenter/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,14 @@ cv.commonenv creates environment variables that are common to all deployments
fieldPath: status.podIP
- name: CV_IS_STATEFULSET
value: 'true'
{{- if ((.Values).secret).sa_password }}
- name: CV_SA_PWD
value: {{ tpl .Values.secret.sa_password . }}
{{- end }}
{{- if .Values.csClientName }}
- name: CV_CSCLIENTNAME
value: {{ .Values.csClientName }}
{{- end }}
- name: CV_DNS_SUFFIX
# dns suffix of the client
value: {{ .Values.serviceName | default $objectname }}.{{- include "cv.namespace" . }}.{{ or (.Values.global).clusterDomain "svc.cluster.local" }}
Expand All @@ -203,6 +211,10 @@ cv.commonenv creates environment variables that are common to all deployments
{{- else }}
value: {{ .Release.Name }}
{{- end }}
{{- if ((.Values).secret).sa_password }}
- name: CV_SA_PWD
value: {{ tpl .Values.secret.sa_password . }}
{{- end }}
- name: CV_CLIENT_HOSTNAME
# hostname of the client should match the service name.
value: {{ include "cv.hostname" . }}
Expand All @@ -216,6 +228,10 @@ cv.commonenv creates environment variables that are common to all deployments
- name: CV_CSHOSTNAME
value: {{ .Values.csOrGatewayHostName }}
{{- end }}
{{- if .Values.csClientName }}
- name: CV_CSCLIENTNAME
value: {{ .Values.csClientName }}
{{- end }}
{{- if eq (include "cv.useInitContainer" .) "false" }}
{{- if ((.Values).secret).user }}
- name: CV_COMMCELL_USER
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.4"
version: "1.0.5"
appVersion: "1"
16 changes: 16 additions & 0 deletions charts/config/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,14 @@ cv.commonenv creates environment variables that are common to all deployments
fieldPath: status.podIP
- name: CV_IS_STATEFULSET
value: 'true'
{{- if ((.Values).secret).sa_password }}
- name: CV_SA_PWD
value: {{ tpl .Values.secret.sa_password . }}
{{- end }}
{{- if .Values.csClientName }}
- name: CV_CSCLIENTNAME
value: {{ .Values.csClientName }}
{{- end }}
- name: CV_DNS_SUFFIX
# dns suffix of the client
value: {{ .Values.serviceName | default $objectname }}.{{- include "cv.namespace" . }}.{{ or (.Values.global).clusterDomain "svc.cluster.local" }}
Expand All @@ -203,6 +211,10 @@ cv.commonenv creates environment variables that are common to all deployments
{{- else }}
value: {{ .Release.Name }}
{{- end }}
{{- if ((.Values).secret).sa_password }}
- name: CV_SA_PWD
value: {{ tpl .Values.secret.sa_password . }}
{{- end }}
- name: CV_CLIENT_HOSTNAME
# hostname of the client should match the service name.
value: {{ include "cv.hostname" . }}
Expand All @@ -216,6 +228,10 @@ cv.commonenv creates environment variables that are common to all deployments
- name: CV_CSHOSTNAME
value: {{ .Values.csOrGatewayHostName }}
{{- end }}
{{- if .Values.csClientName }}
- name: CV_CSCLIENTNAME
value: {{ .Values.csClientName }}
{{- end }}
{{- if eq (include "cv.useInitContainer" .) "false" }}
{{- if ((.Values).secret).user }}
- name: CV_COMMCELL_USER
Expand Down
4 changes: 3 additions & 1 deletion charts/config/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ metadata:
data:
# host name of the Commserve or gateway
CV_CSHOSTNAME: {{ tpl .Values.csOrGatewayHostName . }}

{{- if .Values.csClientName }}
CV_CSCLIENTNAME: {{ tpl .Values.csClientName . }}
{{- end }}
3 changes: 2 additions & 1 deletion charts/config/values.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# csOrGatewayHostName: # Required. host name of the Commserve or gateway. To specify a port number, use hostname:port format

# csClientName: # Optional. client name of the Commserve
# 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
# user: # Optional. Plain text user name used for install.
# password: # Optional. Plain text password.
# authcode: # Optional. Authcode can be given in place of username/password
# CCCertificate # Optional. Certificate for Command Center.
# CCCertificatePassword # Optional. Plain text password for Command Center certificate.
# sa_password: # Optional. Plain text password for SQL Server sa user.

# Optional. If pullsecret.create=true then an image pull secret will be created.
# pullsecret:
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.4"
version: "1.0.5"
appVersion: "1"
16 changes: 16 additions & 0 deletions charts/cs/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,14 @@ cv.commonenv creates environment variables that are common to all deployments
fieldPath: status.podIP
- name: CV_IS_STATEFULSET
value: 'true'
{{- if ((.Values).secret).sa_password }}
- name: CV_SA_PWD
value: {{ tpl .Values.secret.sa_password . }}
{{- end }}
{{- if .Values.csClientName }}
- name: CV_CSCLIENTNAME
value: {{ .Values.csClientName }}
{{- end }}
- name: CV_DNS_SUFFIX
# dns suffix of the client
value: {{ .Values.serviceName | default $objectname }}.{{- include "cv.namespace" . }}.{{ or (.Values.global).clusterDomain "svc.cluster.local" }}
Expand All @@ -203,6 +211,10 @@ cv.commonenv creates environment variables that are common to all deployments
{{- else }}
value: {{ .Release.Name }}
{{- end }}
{{- if ((.Values).secret).sa_password }}
- name: CV_SA_PWD
value: {{ tpl .Values.secret.sa_password . }}
{{- end }}
- name: CV_CLIENT_HOSTNAME
# hostname of the client should match the service name.
value: {{ include "cv.hostname" . }}
Expand All @@ -216,6 +228,10 @@ cv.commonenv creates environment variables that are common to all deployments
- name: CV_CSHOSTNAME
value: {{ .Values.csOrGatewayHostName }}
{{- end }}
{{- if .Values.csClientName }}
- name: CV_CSCLIENTNAME
value: {{ .Values.csClientName }}
{{- end }}
{{- if eq (include "cv.useInitContainer" .) "false" }}
{{- if ((.Values).secret).user }}
- name: CV_COMMCELL_USER
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.4"
version: "1.0.5"
appVersion: "1"
16 changes: 16 additions & 0 deletions charts/mediaagent/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,14 @@ cv.commonenv creates environment variables that are common to all deployments
fieldPath: status.podIP
- name: CV_IS_STATEFULSET
value: 'true'
{{- if ((.Values).secret).sa_password }}
- name: CV_SA_PWD
value: {{ tpl .Values.secret.sa_password . }}
{{- end }}
{{- if .Values.csClientName }}
- name: CV_CSCLIENTNAME
value: {{ .Values.csClientName }}
{{- end }}
- name: CV_DNS_SUFFIX
# dns suffix of the client
value: {{ .Values.serviceName | default $objectname }}.{{- include "cv.namespace" . }}.{{ or (.Values.global).clusterDomain "svc.cluster.local" }}
Expand All @@ -203,6 +211,10 @@ cv.commonenv creates environment variables that are common to all deployments
{{- else }}
value: {{ .Release.Name }}
{{- end }}
{{- if ((.Values).secret).sa_password }}
- name: CV_SA_PWD
value: {{ tpl .Values.secret.sa_password . }}
{{- end }}
- name: CV_CLIENT_HOSTNAME
# hostname of the client should match the service name.
value: {{ include "cv.hostname" . }}
Expand All @@ -216,6 +228,10 @@ cv.commonenv creates environment variables that are common to all deployments
- name: CV_CSHOSTNAME
value: {{ .Values.csOrGatewayHostName }}
{{- end }}
{{- if .Values.csClientName }}
- name: CV_CSCLIENTNAME
value: {{ .Values.csClientName }}
{{- end }}
{{- if eq (include "cv.useInitContainer" .) "false" }}
{{- if ((.Values).secret).user }}
- name: CV_COMMCELL_USER
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.4"
version: "1.0.5"
appVersion: "1"
16 changes: 16 additions & 0 deletions charts/networkgateway/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,14 @@ cv.commonenv creates environment variables that are common to all deployments
fieldPath: status.podIP
- name: CV_IS_STATEFULSET
value: 'true'
{{- if ((.Values).secret).sa_password }}
- name: CV_SA_PWD
value: {{ tpl .Values.secret.sa_password . }}
{{- end }}
{{- if .Values.csClientName }}
- name: CV_CSCLIENTNAME
value: {{ .Values.csClientName }}
{{- end }}
- name: CV_DNS_SUFFIX
# dns suffix of the client
value: {{ .Values.serviceName | default $objectname }}.{{- include "cv.namespace" . }}.{{ or (.Values.global).clusterDomain "svc.cluster.local" }}
Expand All @@ -203,6 +211,10 @@ cv.commonenv creates environment variables that are common to all deployments
{{- else }}
value: {{ .Release.Name }}
{{- end }}
{{- if ((.Values).secret).sa_password }}
- name: CV_SA_PWD
value: {{ tpl .Values.secret.sa_password . }}
{{- end }}
- name: CV_CLIENT_HOSTNAME
# hostname of the client should match the service name.
value: {{ include "cv.hostname" . }}
Expand All @@ -216,6 +228,10 @@ cv.commonenv creates environment variables that are common to all deployments
- name: CV_CSHOSTNAME
value: {{ .Values.csOrGatewayHostName }}
{{- end }}
{{- if .Values.csClientName }}
- name: CV_CSCLIENTNAME
value: {{ .Values.csClientName }}
{{- end }}
{{- if eq (include "cv.useInitContainer" .) "false" }}
{{- if ((.Values).secret).user }}
- name: CV_COMMCELL_USER
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.4"
version: "1.0.5"
appVersion: "1"
16 changes: 16 additions & 0 deletions charts/webserver/templates/_cv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,14 @@ cv.commonenv creates environment variables that are common to all deployments
fieldPath: status.podIP
- name: CV_IS_STATEFULSET
value: 'true'
{{- if ((.Values).secret).sa_password }}
- name: CV_SA_PWD
value: {{ tpl .Values.secret.sa_password . }}
{{- end }}
{{- if .Values.csClientName }}
- name: CV_CSCLIENTNAME
value: {{ .Values.csClientName }}
{{- end }}
- name: CV_DNS_SUFFIX
# dns suffix of the client
value: {{ .Values.serviceName | default $objectname }}.{{- include "cv.namespace" . }}.{{ or (.Values.global).clusterDomain "svc.cluster.local" }}
Expand All @@ -203,6 +211,10 @@ cv.commonenv creates environment variables that are common to all deployments
{{- else }}
value: {{ .Release.Name }}
{{- end }}
{{- if ((.Values).secret).sa_password }}
- name: CV_SA_PWD
value: {{ tpl .Values.secret.sa_password . }}
{{- end }}
- name: CV_CLIENT_HOSTNAME
# hostname of the client should match the service name.
value: {{ include "cv.hostname" . }}
Expand All @@ -216,6 +228,10 @@ cv.commonenv creates environment variables that are common to all deployments
- name: CV_CSHOSTNAME
value: {{ .Values.csOrGatewayHostName }}
{{- end }}
{{- if .Values.csClientName }}
- name: CV_CSCLIENTNAME
value: {{ .Values.csClientName }}
{{- end }}
{{- if eq (include "cv.useInitContainer" .) "false" }}
{{- if ((.Values).secret).user }}
- name: CV_COMMCELL_USER
Expand Down

0 comments on commit 147e680

Please sign in to comment.