Skip to content

Commit

Permalink
[prometheus-adapter] - Added pod security policy specific annotations (
Browse files Browse the repository at this point in the history
…#4035)

Signed-off-by: James Neate <[email protected]>
  • Loading branch information
jneate authored Nov 24, 2023
1 parent 212febc commit 123dad0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/prometheus-adapter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: prometheus-adapter
version: 4.8.3
version: 4.9.0
appVersion: v0.11.2
description: A Helm chart for k8s prometheus adapter
home: https://github.com/kubernetes-sigs/prometheus-adapter
Expand Down
4 changes: 2 additions & 2 deletions charts/prometheus-adapter/templates/psp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: {{ template "k8s-prometheus-adapter.fullname" . }}
{{- if .Values.customAnnotations }}
{{- with (merge .Values.customAnnotations .Values.psp.annotations) }}
annotations:
{{- toYaml .Values.customAnnotations | nindent 4 }}
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{- include "k8s-prometheus-adapter.labels" . | indent 4 }}
Expand Down
5 changes: 5 additions & 0 deletions charts/prometheus-adapter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ rbac:
psp:
# Specifies whether PSP resources should be created
create: false
# Annotations added to the pod security policy
annotations: {}
## Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#apparmor
## Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#seccomp
## Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#sysctl

serviceAccount:
# Specifies whether a service account should be created
Expand Down

0 comments on commit 123dad0

Please sign in to comment.