Skip to content

Commit cc6a755

Browse files
author
github-actions
committed
Update perfectscale-agent chart with new package version v0.0.18
1 parent c760f3b commit cc6a755

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
dependencies:
22
- name: kube-state-metrics
33
repository: https://prometheus-community.github.io/helm-charts
4-
version: 4.16.0
5-
digest: sha256:5bc76ae56c3bc21198a1da8f486466aaf66b04d9b98ac750ebe1347dccda7740
6-
generated: "2022-11-11T09:25:53.387272+01:00"
4+
version: 4.32.0
-8.38 KB
Binary file not shown.
11.3 KB
Binary file not shown.

charts/perfectscale-agent/templates/deployment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ spec:
3535
image: "public.ecr.aws/perfectscale-io/alpine:3.17"
3636
command: [ 'sh' ]
3737
args: [ '-c', 'curl --retry-all-errors --retry 30 --retry-delay 5 -s {{ include "helm.exporter.ksmAddress" . }}; sleep {{ .Values.settings.initSleep | default "1s" }}' ]
38+
{{- if .Values.containerSecurityContext }}
39+
securityContext:
40+
{{ toYaml .Values.containerSecurityContext | indent 12 }}
41+
{{- end }}
3842
containers:
3943
- name: {{ .Chart.Name }}
4044
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
@@ -98,6 +102,10 @@ spec:
98102
port: http
99103
resources:
100104
{{- toYaml .Values.resources | nindent 12 }}
105+
{{- if .Values.containerSecurityContext }}
106+
securityContext:
107+
{{ toYaml .Values.containerSecurityContext | indent 12 }}
108+
{{- end }}
101109
{{- if .Values.imagePullSecrets }}
102110
imagePullSecrets:
103111
- name: {{ .Values.imagePullSecrets.secretName }}

charts/perfectscale-agent/values.yaml

Lines changed: 10 additions & 1 deletion
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: "v0.0.17"
5+
tag: "v0.0.18"
66
settings:
77
serviceId: "psc-exporter"
88
env: "prod"
@@ -51,6 +51,11 @@ securityContext:
5151
fsGroup: 1002
5252
runAsGroup: 1002
5353
runAsUser: 1002
54+
## Specify security settings for a Container
55+
## Allows overrides and additional options compared to (Pod) securityContext
56+
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
57+
containerSecurityContext:
58+
allowPrivilegeEscalation: false
5459
seccompProfile:
5560
type: RuntimeDefault
5661
priorityClass:
@@ -78,6 +83,10 @@ serviceMonitor:
7883
# labels:
7984
# prometheus: kube-prometheus
8085
kube-state-metrics:
86+
containerSecurityContext:
87+
allowPrivilegeEscalation: false
88+
seccompProfile:
89+
type: RuntimeDefault
8190
prometheusScrape: false
8291
metricLabelsAllowlist:
8392
- nodes=[*]

0 commit comments

Comments
 (0)