Skip to content

Commit 0b19edc

Browse files
authored
Merge pull request #16 from HomeDevopsLab/security-context
Security-context
2 parents 29c7ecd + b881a25 commit 0b19edc

4 files changed

Lines changed: 25 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [2.7.0] - 2025-12-14
4+
5+
### Added
6+
7+
- Ability to insert custom securityContext block
8+
- ConfigMap support
9+
310
## [2.6.1] - 2025-02-15
411

512
### Fixed

chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 2.6.1
18+
version: 2.7.0
1919
# This is the version number of the application being deployed. This version number should be
2020
# incremented each time you make changes to the application. Versions are not expected to
2121
# follow Semantic Versioning. They should reflect the version the application is using.

chart/templates/deployment.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,18 @@ spec:
3030
{{- toYaml . | nindent 12 }}
3131
{{- end }}
3232
{{- end }}
33+
{{- if .Values.securityContext }}
34+
securityContext:
35+
{{- with .Values.securityContext }}
36+
{{- toYaml . | nindent 12 }}
37+
{{- end }}
38+
{{- end }}
3339
{{- if .Values.volumes.enabled }}
3440
volumeMounts:
41+
{{- if .Values.configMap }}
42+
- name: {{ .Values.configMap.name }}
43+
mountPath: {{ .Values.configMap.mountPath }}
44+
{{- end }}
3545
{{- range .Values.volumes.mountPath }}
3646
{{- $dirmap := regexSplit ":" . -1 }}
3747
{{- $sub_path := slice $dirmap 0 1 | first }}
@@ -100,6 +110,11 @@ spec:
100110
fsGroup: {{ $gid | default 0 }}
101111
{{- end}}
102112
volumes:
113+
{{- if .Values.configMap }}
114+
- name: {{ .Values.configMap.name }}
115+
configMap:
116+
name: {{ .Values.configMap.name }}
117+
{{- end }}
103118
- name: {{ .Release.Name }}-volume
104119
{{- if .Values.volumes.type.nfs }}
105120
nfs:

chart/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ image:
99
tag: ""
1010
command: []
1111
args: []
12+
securityContext: {}
1213
registrySecret: ""
1314
env: {}
1415
resources:
@@ -35,3 +36,4 @@ deployNotifications:
3536
enabled: false
3637
image: ""
3738
nodeSelector: {}
39+
configMap: {}

0 commit comments

Comments
 (0)