Skip to content

Commit

Permalink
[prometheus-memcached-exporter] Fixing problem when enabling security…
Browse files Browse the repository at this point in the history
… context (#4729)

* Fixing problem when enabling security context

Signed-off-by: Ignacio Silvera <[email protected]>

* Bumped chart version

Signed-off-by: Ignacio Silvera <[email protected]>

* Add CI test cases

Signed-off-by: zeritti <[email protected]>

---------

Signed-off-by: Ignacio Silvera <[email protected]>
Signed-off-by: zeritti <[email protected]>
Co-authored-by: zeritti <[email protected]>
  • Loading branch information
silveraignacio and zeritti authored Jul 21, 2024
1 parent c241f04 commit a99cf38
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/prometheus-memcached-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: prometheus-memcached-exporter
description: Prometheus exporter for Memcached metrics
type: application
version: 0.3.3
version: 0.3.4
appVersion: "v0.14.4"
home: https://github.com/prometheus/memcached_exporter
sources:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## Test case: use chart's default values
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
podSecurityContext:
fsGroup: 2000

securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 3000
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
resources:
limits:
cpu: 100m
memory: 32Mi
requests:
cpu: 100m
memory: 32Mi
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
{{- end }}
{{- with .Values.securityContext }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
{{- toYaml . | nindent 12 }}
{{- end }}
ports:
- name: http-alt
Expand Down

0 comments on commit a99cf38

Please sign in to comment.