Skip to content

Commit

Permalink
Add the ability to customize the priorityClassName (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
vadim-kubasov authored Aug 6, 2024
1 parent 641802f commit 9a36897
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/unreleased/ENHANCEMENTS-451-20240806-184914.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
kind: ENHANCEMENTS
body: '`Helm Chart`: Add the ability to configure the Deployment priority class.'
time: 2024-08-06T18:49:14.110920762+04:00
custom:
PR: "451"
1 change: 1 addition & 0 deletions charts/hcp-terraform-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ For a more detailed explanation, please refer to the [FAQ](../../docs/faq.md#gen
| operator.syncPeriod | string | `"5m"` | The minimum frequency at which watched resources are reconciled. Format: `5s`, `1m`, etc. |
| operator.tfeAddress | string | `""` | The API URL of a Terraform Enterprise instance. |
| operator.watchedNamespaces | list | `[]` | List of namespaces the controllers should watch. |
| priorityClassName | string | `""` | Deployment priorityClassName. More information in [Kubernetes documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/). |
| replicaCount | int | `2` | The number of Operator replicas. |
| securityContext | object | `{"runAsNonRoot":true}` | Deployment pod security context. More information in [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/). |
| serviceAccount.annotations | object | `{}` | Additional annotations for the ServiceAccount. |
Expand Down
3 changes: 3 additions & 0 deletions charts/hcp-terraform-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ spec:
{{- include "hcp-terraform-operator.selectorLabels" . | nindent 8 }}
control-plane: {{ .Release.Name }}-controller-manager
spec:
{{- with .Values.priorityClassName }}
priorityClassName: {{ . | quote }}
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/hcp-terraform-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ replicaCount: 2
securityContext:
runAsNonRoot: true

# -- Deployment priorityClassName. More information in [Kubernetes documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/).
priorityClassName: ""

# Operator-global options.
operator:
image:
Expand Down

0 comments on commit 9a36897

Please sign in to comment.