Skip to content

Commit

Permalink
add pdb & tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
monotek committed Jun 27, 2024
1 parent 26d33c1 commit 01bdc91
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/visual-regression-tracker/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ 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: 4.0.1
version: 4.0.2
appVersion: "5.0.4"
maintainers:
- name: monotek
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ spec:
readOnly: true
securityContext:
{{- toYaml .Values.authProxy.podSecurityContext | nindent 8 }}
{{- if .Values.authProxy.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml .Values.authProxy.topologySpreadConstraints | nindent 8 }}
{{- end }}
volumes:
- name: tmpdir
emptyDir:
Expand Down
14 changes: 14 additions & 0 deletions charts/visual-regression-tracker/templates/auth-proxy-pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{{- if .Values.authProxy.podDisruptionBudget -}}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "visual-regression-tracker.fullname" . }}-auth
labels:
{{- include "visual-regression-tracker.labels" . | nindent 4 }}
spec:
{{- toYaml .Values.authProxy.podDisruptionBudget | nindent 2}}
selector:
matchLabels:
{{- include "visual-regression-tracker.selectorLabels" . | nindent 6 }}
component: auth-proxy
{{- end -}}
10 changes: 10 additions & 0 deletions charts/visual-regression-tracker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ imagePullSecrets: []
authProxy:
replicaCount: 1

affinity: {}

basicAuth:
username: api-user
password: "ChangeTheApiPassword!"
Expand Down Expand Up @@ -54,8 +56,12 @@ authProxy:
# hosts:
# - chart-example.local

nodeSelector: {}

podAnnotations: {}

podDisruptionBudget: {}

podLabels: {}

podSecurityContext:
Expand Down Expand Up @@ -91,6 +97,10 @@ authProxy:

tmpDirSizeLimit: 100Mi

tolerations: []

topologySpreadConstraints: []

vrtConfig:
appFrontendUrl: "http://localhost:8080"
bodyParserJsonLimit: "5mb"
Expand Down

0 comments on commit 01bdc91

Please sign in to comment.