Skip to content

Commit

Permalink
add pod scheduling properties to chart (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsgstrabo authored May 27, 2024
1 parent e7c499e commit 4e65b7f
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 4 deletions.
17 changes: 13 additions & 4 deletions charts/radix-oauth-guard/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
apiVersion: v1
appVersion: 0.3.1
version: 0.3.1
description: Forward Auth to validate, authenticate and authorize JWT tokens
apiVersion: v2
name: radix-oauth-guard
icon: https://radix.equinor.com/images/logos/logo.svg
description: Forward Auth to validate, authenticate and authorize JWT tokens
appVersion: 0.4.0
version: 0.4.0
kubeVersion: ">=1.24.0"
keywords:
- radix
home: radix.equinor.com
sources:
- https://github.com/equinor/radix-cicd-canary
maintainers:
- name: Omnia Radix
email: [email protected]
12 changes: 12 additions & 0 deletions charts/radix-oauth-guard/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ spec:
fsGroup: 1000
supplementalGroups:
- 1000
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}"
Expand Down
9 changes: 9 additions & 0 deletions charts/radix-oauth-guard/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,12 @@ resources:
requests:
cpu: 50m
memory: 100Mi

# Affinity for pod scheduling
affinity: {}

# Node selector for pod scheduling
nodeSelector: {}

# Tolerations for pod scheduling
tolerations: []

0 comments on commit 4e65b7f

Please sign in to comment.