Skip to content

Commit 7125b97

Browse files
authored
Merge pull request #15 from achetronic/fix/priority-class
fix: PriorityClass and TopologySpreadConstraints
2 parents 1e6ac55 + 0bf7d08 commit 7125b97

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

charts/cluster-overprovisioner/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: cluster-overprovisioner
33
description: Helm chart, that enables scheduled scaling of a target resource, intended to be add overprovisioning to an autoscaling k8s cluster.
44
type: application
5-
version: 0.5.0
5+
version: 0.6.0
66
appVersion: "1.16.0"
77
keywords:
88
- cluster-autoscaler

charts/cluster-overprovisioner/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ For every schedule a cronjob is created, that replaces the active config with th
111111
| op.serviceAccount.automountServiceAccountToken | bool | `false` | Annotations to add to the service account |
112112
| op.serviceAccount.name | string | `""` | Name of the Service Account to use |
113113
| op.tolerations | list | `[]` | Tolerations of the cpa Pod |
114+
| op.topologySpreadConstraints | list | `[]` | topologySpreadConstraints of the op Pod |
114115
| cronJob.failedJobsHistoryLimit | int | `1` | Specifies, how many failed Jobs should be kept |
115116
| cronJob.image.pullPolicy | string | `"Always"` | ImagePullPolicy |
116117
| cronJob.image.repository | string | `"ghcr.io/codecentric/cluster-overprovisioner-helper"` | Image used to executed the cronjob |

charts/cluster-overprovisioner/templates/op-deployment.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ spec:
1919
labels:
2020
{{- include "cluster-overprovisioner.op.selectorLabels" . | nindent 8 }}
2121
spec:
22+
priorityClassName: {{ .Values.op.priorityClasses.overprovision.name }}
2223
{{- with .Values.op.imagePullSecrets }}
2324
imagePullSecrets:
2425
{{- toYaml . | nindent 8 }}
@@ -46,4 +47,8 @@ spec:
4647
tolerations:
4748
{{- toYaml . | nindent 8 }}
4849
{{- end }}
50+
{{- with .Values.op.topologySpreadConstraints }}
51+
topologySpreadConstraints:
52+
{{- toYaml . | nindent 8 }}
53+
{{- end }}
4954
{{- end }}

charts/cluster-overprovisioner/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ op:
122122

123123
affinity: {}
124124

125+
topologySpreadConstraints: []
126+
125127
priorityClasses:
126128
default:
127129
enabled: false

0 commit comments

Comments
 (0)