Skip to content

Commit

Permalink
Merge pull request #15 from achetronic/fix/priority-class
Browse files Browse the repository at this point in the history
fix: PriorityClass and TopologySpreadConstraints
  • Loading branch information
grieshaber authored Jan 18, 2023
2 parents 1e6ac55 + 0bf7d08 commit 7125b97
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/cluster-overprovisioner/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: cluster-overprovisioner
description: Helm chart, that enables scheduled scaling of a target resource, intended to be add overprovisioning to an autoscaling k8s cluster.
type: application
version: 0.5.0
version: 0.6.0
appVersion: "1.16.0"
keywords:
- cluster-autoscaler
Expand Down
1 change: 1 addition & 0 deletions charts/cluster-overprovisioner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ For every schedule a cronjob is created, that replaces the active config with th
| op.serviceAccount.automountServiceAccountToken | bool | `false` | Annotations to add to the service account |
| op.serviceAccount.name | string | `""` | Name of the Service Account to use |
| op.tolerations | list | `[]` | Tolerations of the cpa Pod |
| op.topologySpreadConstraints | list | `[]` | topologySpreadConstraints of the op Pod |
| cronJob.failedJobsHistoryLimit | int | `1` | Specifies, how many failed Jobs should be kept |
| cronJob.image.pullPolicy | string | `"Always"` | ImagePullPolicy |
| cronJob.image.repository | string | `"ghcr.io/codecentric/cluster-overprovisioner-helper"` | Image used to executed the cronjob |
Expand Down
5 changes: 5 additions & 0 deletions charts/cluster-overprovisioner/templates/op-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ spec:
labels:
{{- include "cluster-overprovisioner.op.selectorLabels" . | nindent 8 }}
spec:
priorityClassName: {{ .Values.op.priorityClasses.overprovision.name }}
{{- with .Values.op.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
Expand Down Expand Up @@ -46,4 +47,8 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.op.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/cluster-overprovisioner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ op:

affinity: {}

topologySpreadConstraints: []

priorityClasses:
default:
enabled: false
Expand Down

0 comments on commit 7125b97

Please sign in to comment.