Skip to content

Commit cb02f85

Browse files
author
github-actions
committed
Update perfectscale-autoscaler chart with new package version v1.0.15
1 parent d2e44ed commit cb02f85

16 files changed

+252
-9
lines changed

charts/psc-autoscaler/examples/cluster-config-cost-saving-with-DS-and-STS.yaml renamed to charts/psc-autoscaler/examples/cluster-config-cost-saving-all-supported-workload-types.yaml

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,26 @@ spec:
77
operational:
88
stopAllAutomation: false
99
workloadTypes:
10+
# You should consider if you want to enable StatefulSets automation.
11+
# You might want a human eye while restarting production databases, in general, pods with persistent volume are more fragile.
12+
# As well, if your StatefulSet runs on dedicated nodes, reducing workload resources will not help to reduce the cost
13+
StatefulSet:
14+
operational:
15+
automationMode: "Enabled"
16+
restrictions:
17+
cpuManagement:
18+
request:
19+
increaseEnabled: false
20+
decreaseEnabled: true
21+
limit:
22+
keepLimit: true
23+
memoryManagement:
24+
request:
25+
increaseEnabled: false
26+
decreaseEnabled: true
27+
limit:
28+
increaseEnabled: false
29+
decreaseEnabled: false
1030
Deployment:
1131
operational:
1232
automationMode: "Enabled"
@@ -41,10 +61,24 @@ spec:
4161
limit:
4262
increaseEnabled: false
4363
decreaseEnabled: false
44-
# You should consider if you want to enable StatefulSets automation.
45-
# You might want a human eye while restarting production databases, in general, pods with persistent volume are more fragile.
46-
# As well, if your StatefulSet runs on dedicated nodes, reducing workload resources will not help to reduce the cost
47-
StatefulSet:
64+
CronJob:
65+
operational:
66+
automationMode: "Enabled"
67+
restrictions:
68+
cpuManagement:
69+
request:
70+
increaseEnabled: false
71+
decreaseEnabled: true
72+
limit:
73+
keepLimit: true
74+
memoryManagement:
75+
request:
76+
increaseEnabled: false
77+
decreaseEnabled: true
78+
limit:
79+
increaseEnabled: false
80+
decreaseEnabled: false
81+
Job:
4882
operational:
4983
automationMode: "Enabled"
5084
restrictions:

charts/psc-autoscaler/examples/cluster-config-cost-saving-performance-improvement-with-DS-and-STS.yaml renamed to charts/psc-autoscaler/examples/cluster-config-cost-saving-performance-improvement-all-supported-workload-types.yaml

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,26 @@ spec:
77
operational:
88
stopAllAutomation: false
99
workloadTypes:
10+
# You should consider if you want to enable StatefulSets automation.
11+
# You might want a human eye while restarting production databases, in general, pods with persistent volume are more fragile.
12+
# As well, if your StatefulSet runs on dedicated nodes, reducing workload resources will not help to reduce the cost
13+
StatefulSet:
14+
operational:
15+
automationMode: "Enabled"
16+
restrictions:
17+
cpuManagement:
18+
request:
19+
increaseEnabled: true
20+
decreaseEnabled: true
21+
limit:
22+
keepLimit: false
23+
memoryManagement:
24+
request:
25+
increaseEnabled: true
26+
decreaseEnabled: true
27+
limit:
28+
increaseEnabled: true
29+
decreaseEnabled: true
1030
Deployment:
1131
operational:
1232
automationMode: "Enabled"
@@ -41,10 +61,24 @@ spec:
4161
limit:
4262
increaseEnabled: true
4363
decreaseEnabled: true
44-
# You should consider if you want to enable StatefulSets automation.
45-
# You might want a human eye while restarting production databases, in general, pods with persistent volume are more fragile.
46-
# As well, if your StatefulSet runs on dedicated nodes, reducing workload resources will not help to reduce the cost
47-
StatefulSet:
64+
CronJob:
65+
operational:
66+
automationMode: "Enabled"
67+
restrictions:
68+
cpuManagement:
69+
request:
70+
increaseEnabled: true
71+
decreaseEnabled: true
72+
limit:
73+
keepLimit: false
74+
memoryManagement:
75+
request:
76+
increaseEnabled: true
77+
decreaseEnabled: true
78+
limit:
79+
increaseEnabled: true
80+
decreaseEnabled: true
81+
Job:
4882
operational:
4983
automationMode: "Enabled"
5084
restrictions:

charts/psc-autoscaler/examples/cluster-config-cost-saving-performance-improvement.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,37 @@ spec:
2424
limit:
2525
increaseEnabled: true
2626
decreaseEnabled: true
27+
CronJob:
28+
operational:
29+
automationMode: "Enabled"
30+
restrictions:
31+
cpuManagement:
32+
request:
33+
increaseEnabled: true
34+
decreaseEnabled: true
35+
limit:
36+
keepLimit: false
37+
memoryManagement:
38+
request:
39+
increaseEnabled: true
40+
decreaseEnabled: true
41+
limit:
42+
increaseEnabled: true
43+
decreaseEnabled: true
44+
Job:
45+
operational:
46+
automationMode: "Enabled"
47+
restrictions:
48+
cpuManagement:
49+
request:
50+
increaseEnabled: true
51+
decreaseEnabled: true
52+
limit:
53+
keepLimit: false
54+
memoryManagement:
55+
request:
56+
increaseEnabled: true
57+
decreaseEnabled: true
58+
limit:
59+
increaseEnabled: true
60+
decreaseEnabled: true

charts/psc-autoscaler/examples/cluster-config-cost-saving.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,37 @@ spec:
4141
limit:
4242
increaseEnabled: false
4343
decreaseEnabled: false
44+
CronJob:
45+
operational:
46+
automationMode: "Enabled"
47+
restrictions:
48+
cpuManagement:
49+
request:
50+
increaseEnabled: false
51+
decreaseEnabled: true
52+
limit:
53+
keepLimit: true
54+
memoryManagement:
55+
request:
56+
increaseEnabled: false
57+
decreaseEnabled: true
58+
limit:
59+
increaseEnabled: false
60+
decreaseEnabled: false
61+
Job:
62+
operational:
63+
automationMode: "Enabled"
64+
restrictions:
65+
cpuManagement:
66+
request:
67+
increaseEnabled: false
68+
decreaseEnabled: true
69+
limit:
70+
keepLimit: true
71+
memoryManagement:
72+
request:
73+
increaseEnabled: false
74+
decreaseEnabled: true
75+
limit:
76+
increaseEnabled: false
77+
decreaseEnabled: false

charts/psc-autoscaler/templates/admission.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ metadata:
99
name: {{ include "psc-autoscaler.fullname" . }}-tls
1010
labels:
1111
{{- include "psc-autoscaler.labels" . | nindent 4 }}
12+
{{- if .Values.additionalLabels }}
13+
{{- toYaml .Values.additionalLabels | nindent 4 }}
14+
{{- end }}
15+
{{- with .Values.admission.annotations }}
16+
annotations:
17+
{{- toYaml . | nindent 4 }}
18+
{{- end }}
1219
data:
1320
{{- if .Values.admission.staticCerts.enabled }}
1421
tls.crt: {{ .Values.admission.staticCerts.tlsCert }}
@@ -23,6 +30,11 @@ apiVersion: admissionregistration.k8s.io/v1
2330
kind: MutatingWebhookConfiguration
2431
metadata:
2532
name: {{ include "psc-autoscaler.fullname" . }}
33+
labels:
34+
{{- include "psc-autoscaler.labels" . | nindent 4 }}
35+
{{- if .Values.additionalLabels }}
36+
{{- toYaml .Values.additionalLabels | nindent 4 }}
37+
{{- end }}
2638
{{- with .Values.admission.annotations }}
2739
annotations:
2840
{{- toYaml . | nindent 4 }}
@@ -62,6 +74,11 @@ apiVersion: admissionregistration.k8s.io/v1
6274
kind: ValidatingWebhookConfiguration
6375
metadata:
6476
name: {{ include "psc-autoscaler.fullname" . }}
77+
labels:
78+
{{- include "psc-autoscaler.labels" . | nindent 4 }}
79+
{{- if .Values.additionalLabels }}
80+
{{- toYaml .Values.additionalLabels | nindent 4 }}
81+
{{- end }}
6582
{{- with .Values.admission.annotations }}
6683
annotations:
6784
{{- toYaml . | nindent 4 }}

charts/psc-autoscaler/templates/clusterrole.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRole
44
metadata:
55
name: {{ include "psc-autoscaler.fullname" . }}
6+
labels: {{- include "psc-autoscaler.labels" . | nindent 4 }}
7+
{{- if .Values.additionalLabels }}
8+
{{- toYaml .Values.additionalLabels | nindent 4 }}
9+
{{- end }}
10+
{{- with .Values.serviceAccount.annotations }}
11+
annotations:
12+
{{- toYaml . | nindent 4 }}
13+
{{- end }}
614
rules:
715
- apiGroups: [ "admissionregistration.k8s.io" ]
816
resources: [ "mutatingwebhookconfigurations", "validatingwebhookconfigurations" ]

charts/psc-autoscaler/templates/clusterrolebinding.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ kind: ClusterRoleBinding
44
metadata:
55
name: {{ template "psc-autoscaler.fullname" . }}
66
labels: {{- include "psc-autoscaler.labels" . | nindent 4 }}
7+
{{- if .Values.additionalLabels }}
8+
{{- toYaml .Values.additionalLabels | nindent 4 }}
9+
{{- end }}
10+
{{- with .Values.serviceAccount.annotations }}
11+
annotations:
12+
{{- toYaml . | nindent 4 }}
13+
{{- end }}
714
subjects:
815
- kind: ServiceAccount
916
name: {{ include "psc-autoscaler.serviceAccountName" . }}

charts/psc-autoscaler/templates/deployment.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ metadata:
66
name: {{ include "psc-autoscaler.fullname" . }}-serve
77
labels:
88
{{- include "psc-autoscaler.labels" . | nindent 4 }}
9+
{{- if .Values.additionalLabels }}
10+
{{- toYaml .Values.additionalLabels | nindent 4 }}
11+
{{- end }}
912
{{- with .Values.annotations }}
1013
annotations:
1114
{{- toYaml . | nindent 4 }}
@@ -20,6 +23,9 @@ spec:
2023
metadata:
2124
annotations:
2225
checksum/secret: {{ include (print $.Template.BasePath "/admission.yaml") . | sha256sum }}
26+
{{- with .Values.podAnnotations }}
27+
{{- toYaml . | nindent 8 }}
28+
{{- end }}
2329
{{- if not .Values.admission.staticCerts.enabled }}
2430
{{- /* it requires to reload the latest re-generated certs for mtls after helm upgrade*/}}
2531
rolloutme: {{ randAlphaNum 5 | quote }}
@@ -28,6 +34,9 @@ spec:
2834
automation.perfectscale.io/excluded: "true"
2935
perfectscale.io/psc-autoscaler-cmd: serve
3036
{{- include "psc-autoscaler.selectorLabels" . | nindent 8 }}
37+
{{- if .Values.podLabels }}
38+
{{- toYaml .Values.podLabels | nindent 8 }}
39+
{{- end }}
3140
spec:
3241
{{- if (.Values.hostNetwork).enabled }}
3342
hostNetwork: true
@@ -142,6 +151,9 @@ metadata:
142151
name: {{ include "psc-autoscaler.fullname" . }}-sync
143152
labels:
144153
{{- include "psc-autoscaler.labels" . | nindent 4 }}
154+
{{- if .Values.additionalLabels }}
155+
{{- toYaml .Values.additionalLabels | nindent 4 }}
156+
{{- end }}
145157
{{- with .Values.annotations }}
146158
annotations:
147159
{{- toYaml . | nindent 4 }}
@@ -160,6 +172,13 @@ spec:
160172
automation.perfectscale.io/excluded: "true"
161173
perfectscale.io/psc-autoscaler-cmd: sync
162174
{{- include "psc-autoscaler.selectorLabels" . | nindent 8 }}
175+
{{- if .Values.podLabels }}
176+
{{- toYaml .Values.podLabels | nindent 8 }}
177+
{{- end }}
178+
{{- with .Values.podAnnotations }}
179+
annotations:
180+
{{- toYaml . | nindent 8 }}
181+
{{- end }}
163182
spec:
164183
{{- if .Values.priorityClass.enabled }}
165184
priorityClassName: {{ .Values.priorityClass.name }}
@@ -249,6 +268,9 @@ metadata:
249268
name: {{ include "psc-autoscaler.fullname" . }}-evict
250269
labels:
251270
{{- include "psc-autoscaler.labels" . | nindent 4 }}
271+
{{- if .Values.additionalLabels }}
272+
{{- toYaml .Values.additionalLabels | nindent 4 }}
273+
{{- end }}
252274
{{- with .Values.annotations }}
253275
annotations:
254276
{{- toYaml . | nindent 4 }}
@@ -267,6 +289,13 @@ spec:
267289
automation.perfectscale.io/excluded: "true"
268290
perfectscale.io/psc-autoscaler-cmd: evict
269291
{{- include "psc-autoscaler.selectorLabels" . | nindent 8 }}
292+
{{- if .Values.podLabels }}
293+
{{- toYaml .Values.podLabels | nindent 8 }}
294+
{{- end }}
295+
{{- with .Values.podAnnotations }}
296+
annotations:
297+
{{- toYaml . | nindent 8 }}
298+
{{- end }}
270299
spec:
271300
{{- if .Values.priorityClass.enabled }}
272301
priorityClassName: {{ .Values.priorityClass.name }}

charts/psc-autoscaler/templates/secret.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,14 @@ metadata:
66
name: {{ .Values.secret.name | default $fullName }}
77
annotations:
88
"helm.sh/resource-policy": keep
9+
{{- with .Values.annotations }}
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
912
labels:
1013
{{- include "psc-autoscaler.labels" . | nindent 4 }}
14+
{{- if .Values.additionalLabels }}
15+
{{- toYaml .Values.additionalLabels | nindent 4 }}
16+
{{- end }}
1117
type: Opaque
1218
data:
1319
clientId: {{ .Values.secret.clientId | b64enc | quote }}

charts/psc-autoscaler/templates/service.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ metadata:
44
name: {{ include "psc-autoscaler.fullname" . }}
55
labels:
66
{{- include "psc-autoscaler.labels" . | nindent 4 }}
7+
{{- if .Values.additionalLabels }}
8+
{{- toYaml .Values.additionalLabels | nindent 4 }}
9+
{{- end }}
10+
{{- with .Values.annotations }}
11+
annotations:
12+
{{- toYaml . | nindent 4 }}
13+
{{- end }}
714
spec:
815
type: {{ .Values.service.type }}
916
ports:

charts/psc-autoscaler/templates/serviceaccount.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ metadata:
55
name: {{ include "psc-autoscaler.serviceAccountName" . }}
66
labels:
77
{{- include "psc-autoscaler.labels" . | nindent 4 }}
8+
{{- if .Values.additionalLabels }}
9+
{{- toYaml .Values.additionalLabels | nindent 4 }}
10+
{{- end }}
811
{{- with .Values.serviceAccount.annotations }}
912
annotations:
1013
{{- toYaml . | nindent 4 }}

charts/psc-autoscaler/templates/tests/intTestsMutationCheck.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@ apiVersion: v1
33
kind: Pod
44
metadata:
55
name: {{ include "psc-autoscaler.fullname" . }}-int-tests-mutation-check
6+
labels: {{- include "psc-autoscaler.labels" . | nindent 4 }}
7+
{{- if .Values.additionalLabels }}
8+
{{- toYaml .Values.additionalLabels | nindent 4 }}
9+
{{- end }}
610
annotations:
711
"helm.sh/hook": test
12+
{{- with .Values.annotations }}
13+
{{- toYaml . | nindent 4 }}
14+
{{- end }}
815
spec:
916
containers:
1017
- name: mutation-check

0 commit comments

Comments
 (0)