Skip to content

Commit

Permalink
Merge branch 'main' into feat/proxyVarsFromSecret
Browse files Browse the repository at this point in the history
  • Loading branch information
aslafy-z authored Jul 8, 2024
2 parents ab95c60 + f8d4809 commit 4e392b5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
6 changes: 3 additions & 3 deletions helm/oauth2-proxy/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: redis
repository: https://charts.bitnami.com/bitnami
version: 19.5.0
digest: sha256:d4fa94767e06b9a0816302bcc522377f2b3e9830131232d5b1f76c788c43f758
generated: "2024-05-24T12:50:23.870617+02:00"
version: 19.6.0
digest: sha256:201700e51781c5a41ee4b275fbfa33fa13bd755354a35ab703c3cb3266e3f5c5
generated: "2024-06-27T16:29:26.088834+02:00"
2 changes: 1 addition & 1 deletion helm/oauth2-proxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ keywords:
- redis
dependencies:
- name: redis
version: 19.5.0
version: 19.6.0
repository: https://charts.bitnami.com/bitnami
alias: redis
condition: redis.enabled
Expand Down
6 changes: 4 additions & 2 deletions helm/oauth2-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ spec:
template:
metadata:
annotations:
{{- if .Values.config.configFile }}
checksum/config: {{ tpl .Values.config.configFile $ | sha256sum }}
{{- end }}
{{- if .Values.alphaConfig.enabled }}
checksum/alpha-config: {{ include "oauth2-proxy.alpha-config" . | sha256sum }}
{{- end }}
Expand Down Expand Up @@ -66,7 +68,7 @@ spec:
- name: wait-for-redis
image: "{{ .Values.initContainers.waitForRedis.image.repository }}:{{ .Values.initContainers.waitForRedis.image.tag }}"
imagePullPolicy: {{ .Values.initContainers.waitForRedis.image.pullPolicy }}
command: ["/bin/sh", "-c", "/scripts/check-redis.sh"]
command: ["/bin/sh", "-c", "/scripts/check-redis.sh"]
env:
- name: TOTAL_RETRY_TIME
value: "{{ .Values.initContainers.waitForRedis.timeout }}"
Expand Down Expand Up @@ -338,7 +340,7 @@ spec:
{{- if .Values.authenticatedEmailsFile.template }}
path: {{ .Values.authenticatedEmailsFile.template }}
{{- else }}
path: authenticated-emails-list
path: {{ template "oauth2-proxy.fullname" . }}-accesslist
{{- end }}
{{- if .Values.authenticatedEmailsFile.template }}
secretName: {{ .Values.authenticatedEmailsFile.template }}
Expand Down
14 changes: 7 additions & 7 deletions helm/oauth2-proxy/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,24 @@ spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ template "oauth2-proxy.name" . }}
name: {{ template "oauth2-proxy.fullname" . }}
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
metrics:
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: cpu
name: memory
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: memory
name: cpu
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- end }}

0 comments on commit 4e392b5

Please sign in to comment.