Skip to content

Commit

Permalink
Merge pull request #61 from projectsyn/feat/configurable-priorityclass
Browse files Browse the repository at this point in the history
Allow priority class to be configured
  • Loading branch information
DebakelOrakel authored Apr 17, 2024
2 parents fd6099f + 0ca4646 commit 67c3a9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ parameters:
metrics-addr: ":8080"

extraArgs: []

priority_class: system-cluster-critical

cluster_role_rules:
- apiGroups: ['']
resources: [namespaces, namespaces/status]
Expand Down
2 changes: 1 addition & 1 deletion component/main.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ local deployment = kube.Deployment('espejo') {
template+: {
spec+: {
serviceAccountName: service_account.metadata.name,
priorityClassName: 'system-cluster-critical',
priorityClassName: params.priority_class,
containers_+: {
espejo: kube.Container('espejo') {
image: params.images.espejo.image + ':' + params.images.espejo.tag,
Expand Down

0 comments on commit 67c3a9a

Please sign in to comment.