Skip to content

Commit

Permalink
Merge pull request #176 from Farfaday/main
Browse files Browse the repository at this point in the history
feat: Add possibility to set resources for the wait-for-redis initContainer
  • Loading branch information
pierluigilenoci authored Dec 7, 2023
2 parents 50692ad + 17cfc01 commit f5676f5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
8 changes: 4 additions & 4 deletions helm/oauth2-proxy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: oauth2-proxy
version: 6.20.1
version: 6.21.0
apiVersion: v2
appVersion: 7.5.1
home: https://oauth2-proxy.github.io/oauth2-proxy/
Expand Down Expand Up @@ -34,8 +34,8 @@ maintainers:
kubeVersion: ">=1.9.0-0"
annotations:
artifacthub.io/changes: |
- kind: fixed
description: Fixed service account role and rolebinding created in the wrong namespace
- kind: added
description: Add possibility to set resources for the wait-for-redis initContainer
links:
- name: Github PR
url: https://github.com/oauth2-proxy/manifests/pull/175
url: https://github.com/oauth2-proxy/manifests/pull/176
1 change: 1 addition & 0 deletions helm/oauth2-proxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ Parameter | Description | Default
`initContainers.waitForRedis.kubectlVersion` | kubectl version to use for the init container | `printf "%s.%s" .Capabilities.KubeVersion.Major (.Capabilities.KubeVersion.Minor | replace "+" "")`
`initContainers.waitForRedis.securityContext.enabled` | enable Kubernetes security context on container | `true`
`initContainers.waitForRedis.timeout` | number of seconds | 180
`initContainers.waitForRedis.resources` | pod resource requests & limits | `{}`
`livenessProbe.enabled` | enable Kubernetes livenessProbe. Disable to use oauth2-proxy with Istio mTLS. See [Istio FAQ](https://istio.io/help/faq/security/#k8s-health-checks) | `true`
`livenessProbe.initialDelaySeconds` | number of seconds | 0
`livenessProbe.timeoutSeconds` | number of seconds | 1
Expand Down
2 changes: 2 additions & 0 deletions helm/oauth2-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ spec:
securityContext:
{{- toYaml $securityContext | nindent 10 }}
{{- end }}
resources:
{{ toYaml .Values.initContainers.waitForRedis.resources | indent 10 }}
{{- end }}
{{- if .Values.terminationGracePeriodSeconds }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
Expand Down
7 changes: 7 additions & 0 deletions helm/oauth2-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,13 @@ initContainers:
seccompProfile:
type: RuntimeDefault
timeout: 180
resources: {}
# limits:
# cpu: 100m
# memory: 300Mi
# requests:
# cpu: 100m
# memory: 300Mi

# Additionally authenticate against a htpasswd file. Entries must be created with "htpasswd -B" for bcrypt encryption.
# Alternatively supply an existing secret which contains the required information.
Expand Down

0 comments on commit f5676f5

Please sign in to comment.