Skip to content

Commit

Permalink
Gitjob container has writable /tmp dir
Browse files Browse the repository at this point in the history
Also disable debug logging for tests, since it disables the security
context too
  • Loading branch information
manno committed Sep 11, 2024
1 parent 23f0047 commit decbf9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/scripts/deploy-fleet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ eventually helm upgrade --install fleet charts/fleet \
$shards_settings \
--set-string extraEnv[0].name=EXPERIMENTAL_OCI_STORAGE \
--set-string extraEnv[0].value=true \
--set garbageCollectionInterval=1s \
--set debug=true --set debugLevel=1
--set garbageCollectionInterval=1s

# wait for controller and agent rollout
kubectl -n cattle-fleet-system rollout status deploy/fleet-controller
Expand Down
6 changes: 6 additions & 0 deletions charts/fleet/templates/deployment_gitjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ spec:
drop:
- ALL
{{- end }}
volumeMounts:
- mountPath: /tmp
name: tmp
nodeSelector: {{ include "linux-node-selector" $shard.id | nindent 8 }}
{{- if $.Values.nodeSelector }}
{{ toYaml $.Values.nodeSelector | indent 8 }}
Expand All @@ -125,6 +128,9 @@ spec:
runAsUser: 1000
runAsGroup: 1000
{{- end }}
volumes:
- name: tmp
emptyDir: {}
{{- end }}
---
{{- end }}

0 comments on commit decbf9a

Please sign in to comment.