Skip to content

Commit

Permalink
Merge pull request #444 from reportportal/develop
Browse files Browse the repository at this point in the history
Release 24.2.2
  • Loading branch information
hlebkanonik authored Dec 12, 2024
2 parents 45bd684 + e215b86 commit 69e5a23
Show file tree
Hide file tree
Showing 14 changed files with 255 additions and 99 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/helm-checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Lint Chart

on: pull_request

jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/[email protected]
with:
version: v3.14.4

- uses: actions/setup-python@v5
with:
python-version: '3.x'
check-latest: true

- name: Set up chart-testing
uses: helm/[email protected]

- name: Run chart-testing (lint)
run: ct lint --charts ./reportportal --target-branch ${{ github.event.repository.default_branch }}
4 changes: 2 additions & 2 deletions docs/gcp-managed-cert-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ kubectl edit ingress ${APP_NAME}-gateway-ingress
Update the Ingress resource to reference the `ManagedCertificate` resource:

```bash
kubectl annotate ingress ${APP_NAME}-gateway-ingress networking.gke.io/manage-certificates=gcp-managed-certificate
kubectl annotate ingress ${APP_NAME}-gateway-ingress networking.gke.io/managed-certificates=gcp-managed-certificate
```

## Check the status of the certificate
Expand Down Expand Up @@ -128,7 +128,7 @@ If you want to disable HTTP Load Balancing, you can do it after the certificate
is attached to the Ingress resource:

```bash
kubectl annotate ingress ${APP_NAME}-gateway-ingress kubernetes.io/ingress.allow-http: "false"
kubectl annotate ingress ${APP_NAME}-gateway-ingress kubernetes.io/ingress.allow-http=false
```

## Clean up
Expand Down
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.1
version: 24.2.2
sources:
- https://github.com/reportportal/kubernetes/tree/master/reportportal
keywords:
Expand Down
4 changes: 2 additions & 2 deletions reportportal/templates/hooks/upgrade/pre-upgrade-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ spec:
restartPolicy: OnFailure
containers:
- name: delete-job
image: bitnami/kubectl:latest
image: "{{ include "reportportal.image" (dict "Values" .Values "service" "kubectl") }}"
command:
- /bin/sh
- -c
- |
kubectl delete job {{ include "reportportal.fullname" . }}-migrations --ignore-not-found=true
{{- end }}
{{- end }}
14 changes: 12 additions & 2 deletions reportportal/templates/service-api/api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ spec:
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
{{- with .Values.serviceapi.affinity }}
affinity:
{{ toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.serviceapi.hostAliases }}
hostAliases:
{{- range . }}
Expand Down Expand Up @@ -49,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 @@ -218,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 @@ -260,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 }}
14 changes: 12 additions & 2 deletions reportportal/templates/service-authorization/uat-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ spec:
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
{{- with .Values.uat.affinity }}
affinity:
{{ toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.uat.hostAliases }}
hostAliases:
{{- range . }}
Expand Down Expand Up @@ -50,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 @@ -194,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 @@ -217,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 }}
8 changes: 6 additions & 2 deletions reportportal/templates/service-index/index-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,17 @@ spec:
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
{{- with .Values.serviceindex.affinity }}
affinity:
{{ toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- 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
20 changes: 15 additions & 5 deletions reportportal/templates/service-jobs/jobs-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ spec:
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
{{- with .Values.servicejobs.affinity }}
affinity:
{{ toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
Expand All @@ -38,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 @@ -190,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 @@ -204,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 }}
4 changes: 4 additions & 0 deletions reportportal/templates/service-migrations/migrations-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ spec:
{{- end }}
spec:
restartPolicy: OnFailure
{{- with .Values.migrations.affinity }}
affinity:
{{ toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
Expand Down
14 changes: 12 additions & 2 deletions reportportal/templates/service-ui/ui-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@ spec:
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
{{- with .Values.serviceui.affinity }}
affinity:
{{ toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- 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 @@ -58,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 @@ -66,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 @@ -21,6 +21,10 @@ spec:
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
{{- with .Values.serviceanalyzer.affinity }}
affinity:
{{ toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
Expand All @@ -39,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 @@ -131,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 @@ -145,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 @@ -21,6 +21,10 @@ spec:
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
{{- with .Values.serviceanalyzertrain.affinity }}
affinity:
{{ toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
Expand All @@ -39,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 @@ -131,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 @@ -145,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 @@ -20,6 +20,10 @@ spec:
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
{{- with .Values.metricsgatherer.affinity }}
affinity:
{{ toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
Expand All @@ -38,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 69e5a23

Please sign in to comment.