From f131e22d34114e1bc97a23aab2fbee0aae9eb740 Mon Sep 17 00:00:00 2001 From: Chotiwat Chawannakul Date: Mon, 29 Aug 2022 15:40:56 -0700 Subject: [PATCH 1/3] support custom `priorityClassName` in the helm chart --- .../cluster-proportional-autoscaler/templates/deployment.yaml | 3 +++ charts/cluster-proportional-autoscaler/values.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/charts/cluster-proportional-autoscaler/templates/deployment.yaml b/charts/cluster-proportional-autoscaler/templates/deployment.yaml index b30dbb2f..9e0f50cb 100644 --- a/charts/cluster-proportional-autoscaler/templates/deployment.yaml +++ b/charts/cluster-proportional-autoscaler/templates/deployment.yaml @@ -89,3 +89,6 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.priorityClassName }} + priorityClassName: {{ . | quote }} + {{- end }} diff --git a/charts/cluster-proportional-autoscaler/values.yaml b/charts/cluster-proportional-autoscaler/values.yaml index 729c811a..04a5bb3a 100644 --- a/charts/cluster-proportional-autoscaler/values.yaml +++ b/charts/cluster-proportional-autoscaler/values.yaml @@ -73,3 +73,4 @@ serviceAccount: # If set and create is false, no service account will be created and the expectation is that the provided service account already exists or it will use the "default" service account name: tolerations: [] +priorityClassName: "" From 9dac288f6b30e9a3f5af4447e9ce8e1ae9afa792 Mon Sep 17 00:00:00 2001 From: Chotiwat Chawannakul Date: Mon, 29 Aug 2022 15:41:14 -0700 Subject: [PATCH 2/3] format values.yaml --- charts/cluster-proportional-autoscaler/values.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/cluster-proportional-autoscaler/values.yaml b/charts/cluster-proportional-autoscaler/values.yaml index 04a5bb3a..d77bb5b8 100644 --- a/charts/cluster-proportional-autoscaler/values.yaml +++ b/charts/cluster-proportional-autoscaler/values.yaml @@ -37,15 +37,15 @@ options: maxSyncFailures: namespace: nodeLabels: {} - # label1: value1 - # label2: value2 + # label1: value1 + # label2: value2 pollPeriodSeconds: stdErrThreshold: target: vmodule: podAnnotations: {} podSecurityContext: {} -# fsGroup: 2000 + # fsGroup: 2000 replicaCount: 1 resources: {} # We usually recommend not to specify default resources and to leave this as a conscious @@ -57,14 +57,14 @@ resources: {} # memory: 128Mi # requests: # cpu: 100m -# memory: 128Mi + # memory: 128Mi securityContext: {} # capabilities: # drop: # - ALL # readOnlyRootFilesystem: true # runAsNonRoot: true -# runAsUser: 1000 + # runAsUser: 1000 serviceAccount: create: true annotations: {} From 1120f2313e4440e5ba87df0b2dd6b19c0ee9c46e Mon Sep 17 00:00:00 2001 From: Chotiwat Chawannakul Date: Mon, 29 Aug 2022 15:41:27 -0700 Subject: [PATCH 3/3] update app and chart versions --- charts/cluster-proportional-autoscaler/Chart.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/cluster-proportional-autoscaler/Chart.yaml b/charts/cluster-proportional-autoscaler/Chart.yaml index b911d9a4..24a81970 100644 --- a/charts/cluster-proportional-autoscaler/Chart.yaml +++ b/charts/cluster-proportional-autoscaler/Chart.yaml @@ -1,10 +1,10 @@ apiVersion: v2 name: cluster-proportional-autoscaler -version: 1.0.0 -appVersion: 1.8.4 +version: 1.0.1 +appVersion: 1.8.6 description: This chart is used to deploy an instance of the cluster-proportional-autoscaler. maintainers: - name: krmichel url: https://github.com/krmichel - name: d-mcd - url: https://github.com/d-mcd \ No newline at end of file + url: https://github.com/d-mcd