Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
{{- $watchdogImage = .AppParams.watchdogImage}}
{{- end}}

{{- $enableSudo := true}}
{{- if .AppParams.enableSudo }}
{{- if eq .AppParams.enableSudo "false"}}
{{- $enableSudo = false }}
{{- end}}
{{- end}}

###
# TODO: figure out how to remove this service.
# It's not needed with the deployment type brokerapp but is needed for templating patches.
Expand Down Expand Up @@ -124,6 +131,7 @@ spec:
privileged: false
runAsUser: 1000
runAsGroup: 1000
allowPrivilegeEscalation: {{$enableSudo}}
env:
- name: VDI_USER
value: "{{.App}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@
{{- end}}
{{- end}}

{{- $enableSudo := true}}
{{- if .AppParams.enableSudo }}
{{- if eq .AppParams.enableSudo "false"}}
{{- $enableSudo = false }}
{{- end}}
{{- end}}


apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -149,6 +157,7 @@ spec:
privileged: false
runAsUser: 1000
runAsGroup: 1000
allowPrivilegeEscalation: {{$enableSudo}}
env:
- name: VDI_USER
value: "{{.User}}"
Expand Down