Skip to content

Commit efafd32

Browse files
authored
[common] apply intend where the helper is used (CloudPirates-io#168)
apply intend where it helper is used
1 parent 7592892 commit efafd32

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

charts/common/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: common
33
description: A library chart for common templates and helper functions
44
type: library
5-
version: 1.1.0
5+
version: 1.1.1
66
appVersion: "1.0.0"
77

88
home: https://www.cloudpirates.io

charts/common/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ kind: StatefulSet
1717
spec:
1818
template:
1919
spec:
20-
securityContext: {{ include "common.renderPodSecurityContext" . }}
20+
securityContext: {{ include "common.renderPodSecurityContext" . | nindent 8 }}
2121
containers:
2222
- name: {{ .Chart.Name }}
23-
securityContext: {{ include "common.renderContainerSecurityContext" . }}
23+
securityContext: {{ include "common.renderContainerSecurityContext" . | nindent 12 }}
2424
```

charts/common/templates/_helpers.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ Usage: {{ include "common.renderPodSecurityContext" . }}
270270
{{- if eq $isOpenshift "true" }}
271271
{{- omit .Values.podSecurityContext "runAsUser" "runAsGroup" "fsGroup" "seLinuxOptions" | toYaml }}
272272
{{- else }}
273-
{{- toYaml .Values.podSecurityContext | nindent 8 }}
273+
{{- toYaml .Values.podSecurityContext }}
274274
{{- end }}
275275
{{- end }}
276276

@@ -283,6 +283,6 @@ Usage: {{ include "common.renderContainerSecurityContext" . }}
283283
{{- if eq $isOpenshift "true" }}
284284
{{- omit .Values.containerSecurityContext "runAsUser" "runAsGroup" "seLinuxOptions" | toYaml }}
285285
{{- else }}
286-
{{- toYaml .Values.containerSecurityContext | nindent 12 }}
286+
{{- toYaml .Values.containerSecurityContext }}
287287
{{- end }}
288288
{{- end }}

0 commit comments

Comments
 (0)