Skip to content

Commit 772e7ac

Browse files
authored
fix: fsGroup has to be set on pod securityContext level, not container (falcondev-oss#83)
1 parent 94685f5 commit 772e7ac

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

install/kubernetes/github-actions-cache-server/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: 0.1.0
18+
version: 0.1.1
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

install/kubernetes/github-actions-cache-server/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ spec:
3434
{{- toYaml . | nindent 8 }}
3535
{{- end }}
3636
serviceAccountName: {{ include "github-actions-cache-server.serviceAccountName" . }}
37+
securityContext:
38+
{{- toYaml .Values.podSecurityContext | nindent 8 }}
3739
containers:
3840
- name: {{ .Chart.Name }}
3941
securityContext:

install/kubernetes/github-actions-cache-server/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,16 @@ serviceAccount:
3131
podAnnotations: {}
3232
podLabels: {}
3333

34+
podSecurityContext:
35+
fsGroup: 1000
36+
3437
securityContext:
3538
capabilities:
3639
drop:
3740
- ALL
3841
readOnlyRootFilesystem: true
3942
runAsNonRoot: true
4043
runAsUser: 1000
41-
fsGroup: 1000
4244

4345
service:
4446
type: ClusterIP

0 commit comments

Comments
 (0)