mirror of
https://github.com/bokysan/docker-postfix.git
synced 2024-09-20 06:46:10 +08:00
Fix for #118: Properly indent securityContext
This commit is contained in:
parent
fc7ed0b391
commit
3eac3f42ae
|
@ -62,7 +62,7 @@ spec:
|
|||
- name: {{ .Chart.Name }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
securityContext: {{- toYaml .Values.container.postfix.securityContext | indent 12 }}
|
||||
securityContext: {{- toYaml .Values.container.postfix.securityContext | nindent 12 }}
|
||||
ports:
|
||||
- name: smtp
|
||||
containerPort: 587
|
||||
|
|
10
helm/test_12_container_security_context.yml
Normal file
10
helm/test_12_container_security_context.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
container:
|
||||
postfix:
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
runAsUser: 1000
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
|
@ -2,7 +2,13 @@
|
|||
set -e
|
||||
mkdir -p fixtures
|
||||
|
||||
for i in `find -maxdepth 1 -type f -name test\*yml | sort`; do
|
||||
FIND="find"
|
||||
# Brew installs GNU find as "gfind" by default
|
||||
if command -v gfind >/dev/null 2>&2; then
|
||||
FIND="$(which gfind)"
|
||||
fi
|
||||
|
||||
for i in `${FIND} -maxdepth 1 -type f -name test\*yml | sort`; do
|
||||
echo "☆☆☆☆☆☆☆☆☆☆ $i ☆☆☆☆☆☆☆☆☆☆"
|
||||
helm template -f $i --dry-run mail > fixtures/demo.yaml
|
||||
docker run -it -v `pwd`/fixtures:/fixtures garethr/kubeval fixtures/demo.yaml
|
||||
|
|
Loading…
Reference in a new issue