Skip to content

Commit 765b364

Browse files
author
github-actions
committed
Update perfectscale-agent chart with new package version v1.0.14
1 parent 3fa6c74 commit 765b364

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

charts/perfectscale-agent/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ spec:
2121
labels:
2222
{{- include "helm.selectorLabels" . | nindent 8 }}
2323
spec:
24-
{{- if .Values.priorityClass.enabled }}
25-
priorityClassName: {{ .Values.priorityClass.name }}
24+
{{- if ne .Values.priorityClass.enabled false}}
25+
priorityClassName: {{ .Values.priorityClass.name | default "perfectscale-exporter" }}
2626
{{- end }}
2727
serviceAccountName: {{ include "helm.serviceAccountName" . }}
2828
automountServiceAccountToken: true

charts/perfectscale-agent/templates/priorityclass.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
{{- if .Values.priorityClass.create }}
2-
{{- $priorityClassExists := lookup "scheduling.k8s.io/v1" "PriorityClass" "" .Values.priorityClass.name }}
1+
{{- if ne .Values.priorityClass.create false }}
2+
{{- $priorityClassName := .Values.priorityClass.name | default "perfectscale-exporter" }}
3+
{{- $priorityClassExists := lookup "scheduling.k8s.io/v1" "PriorityClass" "" $priorityClassName }}
34
{{- if not $priorityClassExists }}
45
apiVersion: scheduling.k8s.io/v1
56
kind: PriorityClass
67
metadata:
7-
name: {{ .Values.priorityClass.name }}
8-
annotations:
9-
"helm.sh/hook": pre-install,pre-upgrade
8+
name: {{ $priorityClassName }}
109
value: {{ .Values.priorityClass.value | default "1000000" }}
1110
preemptionPolicy: {{ .Values.priorityClass.preemptionpolicy | default "PreemptLowerPriority" }}
1211
globalDefault: false

charts/perfectscale-agent/values.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ replicaCount: 1
22
image:
33
repository: public.ecr.aws/perfectscale-io/psc-exporter
44
pullPolicy: Always
5-
tag: "v1.0.13"
5+
tag: "v1.0.14"
66
settings:
77
deployKubeStateMetrics: true
88
serviceId: "psc-exporter"
@@ -79,12 +79,14 @@ containerSecurityContext:
7979
allowPrivilegeEscalation: false
8080
seccompProfile:
8181
type: RuntimeDefault
82+
## Pod Priority
83+
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
8284
priorityClass:
8385
enabled: true
8486
create: true
8587
name: perfectscale-exporter
8688
preemptionpolicy: PreemptLowerPriority
87-
value: ''
89+
value: '1000000'
8890
# Pod toleration rules.
8991
# Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
9092
tolerations: {}

0 commit comments

Comments
 (0)