Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# spring-service

## 5.3.0

- Allow to configure a `securityContext`

## 5.2.0

- Allow to disable environment variable service links using `enableServiceLinks: false`
Expand Down
2 changes: 1 addition & 1 deletion charts/spring-service/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
name: spring-service
description: A generalized deployment for Meisterplan Spring Boot services in Kubernetes.
version: 5.2.0
version: 5.3.0
4 changes: 4 additions & 0 deletions charts/spring-service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -266,3 +266,7 @@ spec:
- name: {{ $key }}
{{ toYaml $value | indent 14 }}
{{- end }}
{{- if .Values.securityContext }}
securityContext:
{{ toYaml .Values.securityContext | indent 12 }}
{{- end}}
2 changes: 2 additions & 0 deletions charts/spring-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ disruptionBudget:
# Set to false to disable service link environment variables
enableServiceLinks: true

securityContext: { }

# Allow additional manifest to be deployed with the chart
extraManifests: []
# - apiVersion: v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,7 @@ spec:
- name: URLS
value: https://mycompany.tld/url1 https://mycompany.tld/url2 https://mycompany.tld/url3
https://mycompany.tld/url4
securityContext:
runAsUser: 1000
seccompProfile:
type: RuntimeDefault
5 changes: 5 additions & 0 deletions tests/spring-service/complex-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ disruptionBudget:

enableServiceLinks: false

securityContext:
runAsUser: 1000
seccompProfile:
type: RuntimeDefault

extraManifests:
- apiVersion: v1
kind: ConfigMap
Expand Down