From ea0caaca3170c42058abdb586edc4137a59f2fff Mon Sep 17 00:00:00 2001 From: Stephan Feurer Date: Tue, 16 Apr 2024 17:09:36 +0200 Subject: [PATCH] Add priorityclass system-cluster-critical to operator Ensure this component has precedence over user deployed workload. --- class/defaults.yml | 1 + component/main.jsonnet | 1 + tests/golden/defaults/steward/steward/10_deployment.yaml | 1 + 3 files changed, 3 insertions(+) diff --git a/class/defaults.yml b/class/defaults.yml index c337e94..721039d 100644 --- a/class/defaults.yml +++ b/class/defaults.yml @@ -18,4 +18,5 @@ parameters: image: quay.io/argoproj/argocd tag: 'v2.9.2@sha256:8576d347f30fa4c56a0129d1c0a0f5ed1e75662f0499f1ed7e917c405fd909dc' + priority_class: system-cluster-critical additional_facts: {} diff --git a/component/main.jsonnet b/component/main.jsonnet index f14177a..9f11684 100644 --- a/component/main.jsonnet +++ b/component/main.jsonnet @@ -64,6 +64,7 @@ local deployment = kube.Deployment('steward') { }, }, }, + priorityClassName: params.priority_class, serviceAccountName: service_account.metadata.name, }, }, diff --git a/tests/golden/defaults/steward/steward/10_deployment.yaml b/tests/golden/defaults/steward/steward/10_deployment.yaml index 38d6df5..0331115 100644 --- a/tests/golden/defaults/steward/steward/10_deployment.yaml +++ b/tests/golden/defaults/steward/steward/10_deployment.yaml @@ -64,6 +64,7 @@ spec: volumeMounts: [] imagePullSecrets: [] initContainers: [] + priorityClassName: system-cluster-critical serviceAccountName: steward terminationGracePeriodSeconds: 30 volumes: []