Skip to content

Commit

Permalink
Add support for extra volume mounts in deployment templates
Browse files Browse the repository at this point in the history
  • Loading branch information
hlebkanonik committed Nov 14, 2024
1 parent aebef48 commit 1573cb8
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 9 deletions.
3 changes: 3 additions & 0 deletions reportportal/templates/service-api/api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ spec:
- name: shared-volume
mountPath: /data/storage
{{- end }}
{{- if .Values.serviceapi.extraVolumeMounts }}
{{ toYaml .Values.serviceapi.extraVolumeMounts | nindent 12 }}
{{- end }}
{{- if .Values.serviceapi.auditLogs.enable }}
- name: auditlogstreamer
image: "{{ if .Values.global.imageRegistry }}{{ .Values.global.imageRegistry }}/{{ .Values.serviceapi.auditLogs.sidecar.image.repository }}:{{ .Values.serviceapi.auditLogs.sidecar.image.tag }}{{ else }}{{ .Values.serviceapi.auditLogs.sidecar.image.repository }}:{{ .Values.serviceapi.auditLogs.sidecar.image.tag }}{{ end }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ spec:
- name: shared-volume
mountPath: /data/storage
{{- end }}
{{- if .Values.serviceapi.extraVolumeMounts }}
{{ toYaml .Values.serviceapi.extraVolumeMounts | nindent 12 }}
{{- end }}
{{- if .Values.uat.nodeSelector }}
nodeSelector:
{{- range $key, $value := .Values.uat.nodeSelector }}
Expand Down
3 changes: 3 additions & 0 deletions reportportal/templates/service-jobs/jobs-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ spec:
- name: shared-volume
mountPath: /data/storage
{{- end }}
{{- if .Values.serviceapi.extraVolumeMounts }}
{{ toYaml .Values.serviceapi.extraVolumeMounts | nindent 12 }}
{{- end }}
{{- if .Values.servicejobs.nodeSelector }}
nodeSelector:
{{- range $key, $value := .Values.servicejobs.nodeSelector }}
Expand Down
3 changes: 3 additions & 0 deletions reportportal/templates/service-ui/ui-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ spec:
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
readOnly: true
{{- if .Values.serviceapi.extraVolumeMounts }}
{{ toYaml .Values.serviceapi.extraVolumeMounts | nindent 12 }}
{{- end }}
#TODO: delete volumes after release new service-ui version
volumes:
- name: ui-nginx-conf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ spec:
- name: shared-volume
mountPath: /data/storage
{{- end }}
{{- if .Values.serviceapi.extraVolumeMounts }}
{{ toYaml .Values.serviceapi.extraVolumeMounts | nindent 12 }}
{{- end }}
{{- if .Values.serviceanalyzer.nodeSelector }}
nodeSelector:
{{- range $key, $value := .Values.serviceanalyzer.nodeSelector }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ spec:
- name: shared-volume
mountPath: /data/storage
{{- end }}
{{- if .Values.serviceapi.extraVolumeMounts }}
{{ toYaml .Values.serviceapi.extraVolumeMounts | nindent 12 }}
{{- end }}
{{- if .Values.serviceanalyzertrain.nodeSelector }}
nodeSelector:
{{- range $key, $value := .Values.serviceanalyzertrain.nodeSelector }}
Expand Down
45 changes: 36 additions & 9 deletions reportportal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ serviceindex:
cpu: 200m
memory: 256Mi

## @param extraInitContainers init containers
## @param serviceindex.extraInitContainers init containers
##
extraInitContainers: {}
# - name: init-container
Expand Down Expand Up @@ -80,10 +80,17 @@ serviceui:
cpu: 200m
memory: 128Mi

## @param extraInitContainers init containers
## @param serviceui.extraInitContainers init containers
##
extraInitContainers: {}

## @param serviceui.extraVolumeMounts define the extra volume mounts
##
extraVolumeMounts: []
# - name: extra-volume
# mountPath: /path/to/mount
# readOnly: true

podLabels: {}
podAnnotations: {}
securityContext: {}
Expand Down Expand Up @@ -130,9 +137,13 @@ serviceapi:
cpu: 1000m
memory: 2Gi

## @param extraInitContainers init containers
## @param serviceapi.extraInitContainers init containers
##
extraInitContainers: {}

## @param serviceapi.extraVolumeMounts define the extra volume mounts
##
extraVolumeMounts: []

## @param serviceapi.auditLogs.loglevel define log level
##
Expand Down Expand Up @@ -284,9 +295,13 @@ uat:
sessionLiveTime: 86400
samlSessionLiveTime: 4320

## @param extraInitContainers init containers
## @param uat.extraInitContainers init containers
##
extraInitContainers: {}

## @param uat.extraVolumeMounts define the extra volume mounts
##
extraVolumeMounts: []

## @param uat.superadminInitPasswd define the initial password of the superadmin user for the first launch. This value can't change the password on redeployments
## @param uat.superadminInitPasswd.secretName define the secret name for the superadmin password
Expand Down Expand Up @@ -405,9 +420,13 @@ servicejobs:
cpu: 250m
memory: 512Mi

## @param extraInitContainers init containers
## @param servicjobs.extraInitContainers init containers
##
extraInitContainers: {}

## @param servicjobs.extraVolumeMounts define the extra volume mounts
##
extraVolumeMounts: []

## @param servicjobs.javaArgs define the configuration for the JVM.
## For custom java keystore add parameter: -Djavax.net.ssl.trustStore=/etc/secret-volume/custom-pki.jks
Expand Down Expand Up @@ -460,10 +479,14 @@ serviceanalyzer:
cpu: 500m
memory: 1Gi

## @param extraInitContainers init containers
## @param serviceanalyzer.extraInitContainers init containers
##
extraInitContainers: {}

## @param serviceanalyzer.extraVolumeMounts define the extra volume mounts
##
extraVolumeMounts: []

podLabels: {}
podAnnotations: {}
securityContext: {}
Expand Down Expand Up @@ -507,10 +530,14 @@ serviceanalyzertrain:
cpu: 200m
memory: 512Mi

## @param extraInitContainers init containers
## @param serviceanalyzertrain.extraInitContainers init containers
##
extraInitContainers: {}

## @param serviceanalyzertrain.extraVolumeMounts define the extra volume mounts
##
extraVolumeMounts: []

podLabels: {}
podAnnotations: {}
securityContext: {}
Expand Down Expand Up @@ -561,10 +588,10 @@ metricsgatherer:
cpu: 16m
memory: 256Mi

## @param extraInitContainers init containers
## @param metricsgatherer.extraInitContainers init containers
##
extraInitContainers: {}

podLabels: {}
podAnnotations: {}
securityContext: {}
Expand Down

0 comments on commit 1573cb8

Please sign in to comment.