From 4e65b7fda06248fd577f9b2adebd1705839d9035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Gustav=20Str=C3=A5b=C3=B8?= <65334626+nilsgstrabo@users.noreply.github.com> Date: Mon, 27 May 2024 11:11:18 +0200 Subject: [PATCH] add pod scheduling properties to chart (#8) --- charts/radix-oauth-guard/Chart.yaml | 17 +++++++++++++---- .../radix-oauth-guard/templates/deployment.yaml | 12 ++++++++++++ charts/radix-oauth-guard/values.yaml | 9 +++++++++ 3 files changed, 34 insertions(+), 4 deletions(-) diff --git a/charts/radix-oauth-guard/Chart.yaml b/charts/radix-oauth-guard/Chart.yaml index 2061ab0..68297c2 100644 --- a/charts/radix-oauth-guard/Chart.yaml +++ b/charts/radix-oauth-guard/Chart.yaml @@ -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: Radix@StatoilSRM.onmicrosoft.com diff --git a/charts/radix-oauth-guard/templates/deployment.yaml b/charts/radix-oauth-guard/templates/deployment.yaml index 253e6fe..c7f5a58 100644 --- a/charts/radix-oauth-guard/templates/deployment.yaml +++ b/charts/radix-oauth-guard/templates/deployment.yaml @@ -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 }}" diff --git a/charts/radix-oauth-guard/values.yaml b/charts/radix-oauth-guard/values.yaml index 69b3996..8a6b033 100644 --- a/charts/radix-oauth-guard/values.yaml +++ b/charts/radix-oauth-guard/values.yaml @@ -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: []