Skip to content

Commit

Permalink
Merge branch 'develop' into feature/add-affinity-support
Browse files Browse the repository at this point in the history
  • Loading branch information
hlebkanonik authored Nov 14, 2024
2 parents b31c7ad + b0171c9 commit 8e882e2
Show file tree
Hide file tree
Showing 10 changed files with 172 additions and 50 deletions.
2 changes: 1 addition & 1 deletion reportportal/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: |
ReportPortal.io is a TestOps service, that provides increased capabilities
to speed up results analysis and reporting through the use of built-in analytic features.
name: reportportal
version: 24.2.0
version: 24.2.1
sources:
- https://github.com/reportportal/kubernetes/tree/master/reportportal
keywords:
Expand Down
10 changes: 8 additions & 2 deletions reportportal/templates/service-api/api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ spec:
limits:
cpu: 50m
memory: 100Mi
{{- if .Values.extraInitContainers }}
{{ toYaml .Values.extraInitContainers | nindent 8 }}
{{- if .Values.serviceapi.extraInitContainers }}
{{ toYaml .Values.serviceapi.extraInitContainers | nindent 8 }}
{{- end }}
containers:
- name: "{{ $.Values.serviceapi.name | default "api" }}"
Expand Down Expand Up @@ -222,6 +222,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 Expand Up @@ -264,4 +267,7 @@ spec:
- name: shared-volume
persistentVolumeClaim:
claimName: {{ .Release.Name }}-shared-volume-claim
{{- end }}
{{- if .Values.serviceapi.extraVolumes }}
{{ toYaml .Values.serviceapi.extraVolumes | nindent 8 }}
{{- end }}
10 changes: 8 additions & 2 deletions reportportal/templates/service-authorization/uat-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ spec:
limits:
cpu: 50m
memory: 100Mi
{{- if .Values.extraInitContainers }}
{{ toYaml .Values.extraInitContainers | nindent 8 }}
{{- if .Values.uat.extraInitContainers }}
{{ toYaml .Values.uat.extraInitContainers | nindent 8 }}
{{- end }}
containers:
- name: "{{ $.Values.uat.name | default "uat" }}"
Expand Down Expand Up @@ -198,6 +198,9 @@ spec:
- name: shared-volume
mountPath: /data/storage
{{- end }}
{{- if .Values.uat.extraVolumeMounts }}
{{ toYaml .Values.uat.extraVolumeMounts | nindent 12 }}
{{- end }}
{{- if .Values.uat.nodeSelector }}
nodeSelector:
{{- range $key, $value := .Values.uat.nodeSelector }}
Expand All @@ -221,4 +224,7 @@ spec:
- name: shared-volume
persistentVolumeClaim:
claimName: {{ .Release.Name }}-shared-volume-claim
{{- end }}
{{- if .Values.uat.extraVolumes }}
{{ toYaml .Values.serviceapi.extraVolumes | nindent 8 }}
{{- end }}
4 changes: 2 additions & 2 deletions reportportal/templates/service-index/index-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
initContainers:
{{- if .Values.extraInitContainers }}
{{ toYaml .Values.extraInitContainers | indent 8 }}
{{- if .Values.serviceindex.extraInitContainers }}
{{ toYaml .Values.serviceindex.extraInitContainers | nindent 8 }}
{{- end }}
serviceAccountName: {{ .Values.serviceindex.serviceAccountName | default (include "reportportal.serviceAccountName" .) }}
containers:
Expand Down
16 changes: 11 additions & 5 deletions reportportal/templates/service-jobs/jobs-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ spec:
limits:
cpu: 50m
memory: 100Mi
{{- if .Values.extraInitContainers }}
{{ toYaml .Values.extraInitContainers | indent 8 }}
{{- end }}
{{- if .Values.servicejobs.extraInitContainers }}
{{ toYaml .Values.servicejobs.extraInitContainers | nindent 8 }}
{{- end }}
containers:
- name: "{{ $.Values.servicejobs.name | default "jobs" }}"
image: "{{ include "reportportal.image" (dict "Values" .Values "service" "servicejobs") }}"
Expand Down Expand Up @@ -194,6 +194,9 @@ spec:
- name: shared-volume
mountPath: /data/storage
{{- end }}
{{- if .Values.servicejobs.extraVolumeMounts }}
{{ toYaml .Values.servicejobs.extraVolumeMounts | nindent 12 }}
{{- end }}
{{- if .Values.servicejobs.nodeSelector }}
nodeSelector:
{{- range $key, $value := .Values.servicejobs.nodeSelector }}
Expand All @@ -208,8 +211,11 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
{{- if eq .Values.storage.type "filesystem" }}
{{- if eq .Values.storage.type "filesystem" }}
- name: shared-volume
persistentVolumeClaim:
claimName: {{ .Release.Name }}-shared-volume-claim
{{- end }}
{{- end }}
{{- if .Values.servicejobs.extraVolumes }}
{{ toYaml .Values.servicejobs.extraVolumes | nindent 8 }}
{{- end }}
10 changes: 8 additions & 2 deletions reportportal/templates/service-ui/ui-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
initContainers:
{{- if .Values.extraInitContainers }}
{{ toYaml .Values.extraInitContainers | indent 8 }}
{{- if .Values.serviceui.extraInitContainers }}
{{ toYaml .Values.serviceui.extraInitContainers | nindent 8 }}
{{- end }}
containers:
- name: {{ $.Values.serviceui.name | default "ui" }}
Expand Down Expand Up @@ -62,6 +62,9 @@ spec:
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
readOnly: true
{{- if .Values.serviceui.extraVolumeMounts }}
{{ toYaml .Values.serviceui.extraVolumeMounts | nindent 12 }}
{{- end }}
#TODO: delete volumes after release new service-ui version
volumes:
- name: ui-nginx-conf
Expand All @@ -70,6 +73,9 @@ spec:
items:
- key: nginx.conf
path: nginx.conf
{{- if .Values.serviceui.extraVolumes }}
{{ toYaml .Values.serviceui.extraVolumes | nindent 8 }}
{{- end }}
{{- if .Values.serviceui.nodeSelector }}
nodeSelector:
{{- range $key, $value := .Values.serviceui.nodeSelector }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ spec:
limits:
cpu: 50m
memory: 100Mi
{{- if .Values.extraInitContainers }}
{{ toYaml .Values.extraInitContainers | indent 8 }}
{{- end }}
{{- if .Values.serviceanalyzer.extraInitContainers }}
{{ toYaml .Values.serviceanalyzer.extraInitContainers | nindent 8 }}
{{- end }}
containers:
- name: "{{ $.Values.serviceanalyzer.name | default "analyzer" }}"
image: "{{ include "reportportal.image" (dict "Values" .Values "service" "serviceanalyzer") }}"
Expand Down Expand Up @@ -135,6 +135,9 @@ spec:
- name: shared-volume
mountPath: /data/storage
{{- end }}
{{- if .Values.serviceanalyzer.extraVolumeMounts }}
{{ toYaml .Values.serviceanalyzer.extraVolumeMounts | nindent 12 }}
{{- end }}
{{- if .Values.serviceanalyzer.nodeSelector }}
nodeSelector:
{{- range $key, $value := .Values.serviceanalyzer.nodeSelector }}
Expand All @@ -149,8 +152,11 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
{{- if eq .Values.storage.type "filesystem" }}
{{- if eq .Values.storage.type "filesystem" }}
- name: shared-volume
persistentVolumeClaim:
claimName: {{ .Release.Name }}-shared-volume-claim
{{- end }}
{{- end }}
{{- if .Values.serviceanalyzer.extraVolumes }}
{{ toYaml .Values.serviceanalyzer.extraVolumes | nindent 8 }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ spec:
limits:
cpu: 50m
memory: 100Mi
{{- if .Values.extraInitContainers }}
{{ toYaml .Values.extraInitContainers | indent 8 }}
{{- end }}
{{- if .Values.serviceanalyzertrain.extraInitContainers }}
{{ toYaml .Values.serviceanalyzertrain.extraInitContainers | nindent 8 }}
{{- end }}
containers:
- name: "{{ $.Values.serviceanalyzertrain.name | default "analyzer-train" }}"
image: "{{ include "reportportal.image" (dict "Values" .Values "service" "serviceanalyzer") }}"
Expand Down Expand Up @@ -135,6 +135,9 @@ spec:
- name: shared-volume
mountPath: /data/storage
{{- end }}
{{- if .Values.serviceanalyzertrain.extraVolumeMounts }}
{{ toYaml .Values.serviceanalyzertrain.extraVolumeMounts | nindent 12 }}
{{- end }}
{{- if .Values.serviceanalyzertrain.nodeSelector }}
nodeSelector:
{{- range $key, $value := .Values.serviceanalyzertrain.nodeSelector }}
Expand All @@ -149,8 +152,11 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
{{- if eq .Values.storage.type "filesystem" }}
{{- if eq .Values.storage.type "filesystem" }}
- name: shared-volume
persistentVolumeClaim:
claimName: {{ .Release.Name }}-shared-volume-claim
{{- end }}
{{- end }}
{{- if .Values.serviceanalyzertrain.extraVolumes }}
{{ toYaml .Values.serviceanalyzertrain.extraVolumes | nindent 8 }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ spec:
limits:
cpu: 50m
memory: 100Mi
{{- if .Values.extraInitContainers }}
{{ toYaml .Values.extraInitContainers | indent 8 }}
{{- end }}
{{- if .Values.metricsgatherer.extraInitContainers }}
{{ toYaml .Values.metricsgatherer.extraInitContainers | nindent 8 }}
{{- end }}
containers:
- name: metrics-gatherer
image: "{{ include "reportportal.image" (dict "Values" .Values "service" "metricsgatherer") }}"
Expand Down
Loading

0 comments on commit 8e882e2

Please sign in to comment.