Skip to content

Commit

Permalink
fix(helm): add missing keys for securityContexts
Browse files Browse the repository at this point in the history
  • Loading branch information
yannicnevado committed Jul 7, 2023
1 parent 25e570a commit 999516e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions charts/ingressmonitorcontroller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ helm install stakater/ingressmonitorcontroller
| kube-rbac-proxy.image.repository | `gcr.io/kubebuilder/kube-rbac-proxy` | Image repository for kube-rbac-proxy |
| kube-rbac-proxy.image.tag | `v0.8.0` | Tag of the kube-rbac-proxy image |
| kube-rbac-proxy.image.pullPolicy | `IfNotPresent` | Pull policy for the image |
| kube-rbac-proxy.securityContext | `{}` |securityContext for the kube-rbac-proxy Container |
| imagePullSecrets | `` | List of secrets used to pull images |
| nameOverride | `""` | Partial override for ingress-monitor-controller.fullname template (will keep the release name) |
| fullnameOverride | `""` | Full override for ingress-monitor-controller.fullname template |
Expand Down
6 changes: 5 additions & 1 deletion charts/ingressmonitorcontroller/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ spec:
- containerPort: 8443
name: https
resources:
{{- toYaml .resources | nindent 10 }}
{{- toYaml .resources | nindent 10 }}
securityContext:
{{- toYaml .securityContext | nindent 10 }}
{{- end }}
- args:
- --health-probe-bind-address=:8081
Expand Down Expand Up @@ -77,6 +79,8 @@ spec:
periodSeconds: 10
resources:
{{- toYaml .Values.resources | nindent 10 }}
securityContext:
{{- toYaml .Values.securityContext | nindent 10 }}
terminationGracePeriodSeconds: 10
{{- with .Values.nodeSelector }}
nodeSelector:
Expand Down
8 changes: 8 additions & 0 deletions charts/ingressmonitorcontroller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ kube-rbac-proxy:
pullPolicy: IfNotPresent
resources:
{}
securityContext:
{}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000

# Partial override for ingress-monitor-controller.fullname template (will keep the release name)
nameOverride: ""
Expand Down

0 comments on commit 999516e

Please sign in to comment.