Skip to content

Commit

Permalink
update 5.0.5 (#185)
Browse files Browse the repository at this point in the history
* update 5.0.5

Signed-off-by: André Bauer <[email protected]>

* make api url a secret

Signed-off-by: André Bauer <[email protected]>

* no helm upgrade in ci

Signed-off-by: André Bauer <[email protected]>

---------

Signed-off-by: André Bauer <[email protected]>
  • Loading branch information
monotek authored Jun 25, 2024
1 parent bc36766 commit 4ffa84a
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/ct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ check-version-increment: true
debug: true
helm-extra-args: --timeout 600s
target-branch: main
upgrade: true
6 changes: 3 additions & 3 deletions charts/visual-regression-tracker/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ sources:
- https://github.com/Visual-Regression-Tracker/Visual-Regression-Tracker
- https://github.com/kokuwaio/helm-charts/tree/main/charts/visual-regression-tracker
type: application
version: 3.1.0
appVersion: "5.0.3"
version: 3.2.0
appVersion: "5.0.4"
maintainers:
- name: monotek
email: [email protected]
dependencies:
- name: postgresql
version: 13.3.0
version: 15.5.10
repository: https://charts.bitnami.com/bitnami
condition: vrtConfig.postgresql.enabled
11 changes: 11 additions & 0 deletions charts/visual-regression-tracker/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,14 @@ vrt secret name
{{ template "visual-regression-tracker.fullname" . }}-{{ .Values.secrets.defaults.secretName }}
{{- end -}}
{{- end -}}

{{/*
vrt api url secret name
*/}}
{{- define "visual-regression-tracker.vrtApiUrlSecretName" -}}
{{- if .Values.secrets.apiUrl.useExisting -}}
{{ .Values.secrets.apiUrl.secretName }}
{{- else -}}
{{ template "visual-regression-tracker.fullname" . }}-{{ .Values.secrets.apiUrl.secretName }}
{{- end -}}
{{- end -}}
12 changes: 12 additions & 0 deletions charts/visual-regression-tracker/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,15 @@ type: Opaque
data:
{{ .Values.secrets.defaults.secretKey }}: {{ tpl (.Files.Get "files/seed.ts") $ | b64enc }}
{{ end }}
{{ if and .Values.vrtConfig.reactAppApiUrl (not .Values.secrets.apiUrl.useExisting) }}
---
apiVersion: v1
kind: Secret
metadata:
name: {{ template "visual-regression-tracker.vrtApiUrlSecretName" . }}
labels:
{{- include "visual-regression-tracker.labels" . | nindent 4 }}
type: Opaque
data:
{{ .Values.secrets.apiUrl.secretKey }}: {{ .Values.vrtConfig.reactAppApiUrl | b64enc | quote }}
{{ end }}
5 changes: 4 additions & 1 deletion charts/visual-regression-tracker/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ spec:
- name: {{ .Chart.Name }}-ui
env:
- name: REACT_APP_API_URL
value: "{{ .Values.vrtConfig.reactAppApiUrl }}"
valueFrom:
secretKeyRef:
name: {{ template "visual-regression-tracker.vrtApiUrlSecretName" . }}
key: {{ .Values.secrets.apiUrl.secretKey }}
- name: VRT_VERSION
value: "{{ .Chart.AppVersion }}"
image: "{{ .Values.vrtComponents.ui.image.repository }}:{{ .Values.vrtComponents.ui.image.tag }}"
Expand Down
6 changes: 5 additions & 1 deletion charts/visual-regression-tracker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ vrtComponents:
image:
repository: visualregressiontracker/api
pullPolicy: IfNotPresent
tag: "5.0.4"
tag: "5.0.5"

ingress:
enabled: false
Expand Down Expand Up @@ -171,6 +171,10 @@ persistence:
annotations: {}

secrets:
apiUrl:
useExisting: false
secretKey: api-url
secretName: vrt-api-url
defaults:
useExisting: false
secretName: vrt
Expand Down

0 comments on commit 4ffa84a

Please sign in to comment.