mirror of
https://github.com/bitnami/charts.git
synced 2026-08-10 14:15:55 +08:00
Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
18 lines
710 B
YAML
18 lines
710 B
YAML
# Copyright Broadcom, Inc. All Rights Reserved.
|
|
# SPDX-License-Identifier: APACHE-2.0
|
|
|
|
file:
|
|
/bitnami/nats/conf/{{ .Vars.natsFilename }}.conf:
|
|
mode: "0644"
|
|
filetype: file
|
|
exists: true
|
|
owner: root
|
|
command:
|
|
{{- $uid := .Vars.containerSecurityContext.runAsUser }}
|
|
{{- $gid := .Vars.podSecurityContext.fsGroup }}
|
|
check-user-info:
|
|
# The UID and GID should always be either the one specified as vars (always a bigger number that the default)
|
|
# or the one randomly defined by openshift (larger values). Otherwise, the chart is still using the default value.
|
|
exec: if [ $(id -u) -lt {{ $uid }} ] || [ $(id -G | awk '{print $2}') -lt {{ $gid }} ]; then exit 1; fi
|
|
exit-status: 0
|