Skip to content

Commit 500c2e5

Browse files
committed
feat(helm): add support for enabling user namespace
Signed-off-by: t3mi <t3mi@users.noreply.github.com>
1 parent ba9d194 commit 500c2e5

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

deployments/kubernetes/chart/reloader/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ helm uninstall {{RELEASE_NAME}} -n {{NAMESPACE}}
7575
| ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | ----------------- |
7676
| `reloader.deployment.replicas` | Number of replicas, if you wish to run multiple replicas set `reloader.enableHA = true`. The replicas will be limited to 1 when `reloader.enableHA = false` | int | 1 |
7777
| `reloader.deployment.revisionHistoryLimit` | Limit the number of revisions retained in the revision history | int | 2 |
78+
| `reloader.deployment.hostUsers` | Enable user namespace | boolean | |
7879
| `reloader.deployment.nodeSelector` | Scheduling pod to a specific node based on set labels | map | `{}` |
7980
| `reloader.deployment.affinity` | Set affinity rules on pod | map | `{}` |
8081
| `reloader.deployment.securityContext` | Set pod security context | map | `{}` |

deployments/kubernetes/chart/reloader/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ spec:
4747
{{- if .Values.global.imagePullSecrets }}
4848
imagePullSecrets:
4949
{{ include "reloader-imagePullSecrets" . | indent 8 }}
50+
{{- end }}
51+
{{- if kindIs "bool" .Values.reloader.deployment.hostUsers }}
52+
hostUsers: {{ .Values.reloader.deployment.hostUsers }}
5053
{{- end }}
5154
{{- if .Values.reloader.deployment.nodeSelector }}
5255
nodeSelector:

deployments/kubernetes/chart/reloader/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ reloader:
7878

7979
revisionHistoryLimit: 2
8080

81+
hostUsers: null
82+
8183
nodeSelector:
8284
# cloud.google.com/gke-nodepool: default-pool
8385

0 commit comments

Comments
 (0)