Skip to content

Commit

Permalink
refactor(cronjob-template): security context 설정가능하도록 수정 (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
hschoi1104 authored Apr 28, 2024
1 parent 6f6087a commit f7792d5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/cronjob-template/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ maintainers:
- name: modusign
url: https://github.com/modusign
name: cronjob-template
version: 1.1.1
version: 1.2.0
4 changes: 4 additions & 0 deletions charts/cronjob-template/templates/cron-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ spec:
lifecycle:
{{- toYaml . | nindent 14 }}
{{- end }}
{{- with .Values.securityContext }}
securityContext:
{{- toYaml . | nindent 14 }}
{{- end }}
{{- with .Values.initContainers }}
initContainers:
{{- tpl (toYaml .) $ | nindent 10 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/cronjob-template/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ observability:
# -- Specify postStart and preStop lifecycle hooks for your container
lifecycle: {}

# -- Security context for container
securityContext: {}

# -- Resource limits and requests for the server
resources:
requests:
Expand Down

0 comments on commit f7792d5

Please sign in to comment.