From 7c7652c7a4d11cfa5e456806d4b9435bc1dd05b2 Mon Sep 17 00:00:00 2001 From: chatchai-level Date: Mon, 12 Jun 2023 09:17:40 -0700 Subject: [PATCH] feat(bazel-remote): support priority class --- charts/bazel-remote/Chart.yaml | 2 +- charts/bazel-remote/README.md | 1 + charts/bazel-remote/templates/_pod.tpl | 4 +++- charts/bazel-remote/values.yaml | 5 ++++- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/charts/bazel-remote/Chart.yaml b/charts/bazel-remote/Chart.yaml index 30444b9..cc6ee19 100644 --- a/charts/bazel-remote/Chart.yaml +++ b/charts/bazel-remote/Chart.yaml @@ -3,7 +3,7 @@ name: bazel-remote description: |- Helm chart to deploy [bazel-remote](https://github.com/buchgr/bazel-remote). type: application -version: 0.0.5 +version: 0.0.6 appVersion: v2.4.1 home: https://github.com/slamdev/helm-charts/tree/master/charts/bazel-remote icon: https://bazel.build/images/bazel-icon.svg diff --git a/charts/bazel-remote/README.md b/charts/bazel-remote/README.md index 45586e6..c99124b 100644 --- a/charts/bazel-remote/README.md +++ b/charts/bazel-remote/README.md @@ -33,6 +33,7 @@ Helm chart to deploy [bazel-remote](https://github.com/buchgr/bazel-remote). | nodeSelector | object | `{}` | node for scheduler pod assignment | | podAnnotations | object | `{}` | annotations to add to the pod | | podSecurityContext | object | `{}` | specifies security settings for a pod | +| priorityClassName | string | `""` | set priority class for a pod | | readinessProbe.httpGet.path | string | `"/status"` | path for readiness probe | | readinessProbe.httpGet.port | string | `"http"` | port for readiness probe | | replicaCount | int | `1` | number of replicas for bazel-remote deployment. | diff --git a/charts/bazel-remote/templates/_pod.tpl b/charts/bazel-remote/templates/_pod.tpl index e4175b2..f808a07 100644 --- a/charts/bazel-remote/templates/_pod.tpl +++ b/charts/bazel-remote/templates/_pod.tpl @@ -66,5 +66,7 @@ spec: tolerations: {{- toYaml . | nindent 4 }} {{- end }} - +{{- with .Values.priorityClassName }} + priorityClassName: {{ . }} +{{- end }} {{- end -}} diff --git a/charts/bazel-remote/values.yaml b/charts/bazel-remote/values.yaml index daa0f9c..42c8bf0 100644 --- a/charts/bazel-remote/values.yaml +++ b/charts/bazel-remote/values.yaml @@ -149,4 +149,7 @@ updateStrategy: {} # rollingUpdate: # maxSurge: 0 # maxUnavailable: 25% - # type: RollingUpdate \ No newline at end of file + # type: RollingUpdate + +# priorityClassName -- set priority class +# priorityClassName: system-cluster-critical \ No newline at end of file