Skip to content

Commit

Permalink
Fix read only dir (#129)
Browse files Browse the repository at this point in the history
* fix read only dir

* add another tmp dir

* use different dif

* add operator tmp dir
  • Loading branch information
dbadura authored Oct 20, 2023
1 parent e8e7ec3 commit 7c17741
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions charts/warden/charts/admission/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,17 @@ spec:
volumeMounts:
- name: config
mountPath: {{ .Values.global.config.dir }}
- name: tmp-cert
mountPath: /tmp/k8s-webhook-server/
- name: notary-tmp
mountPath: /tmp/.notary
volumes:
- name: config
configMap:
name: {{ .Values.global.config.configmapName }}
- name: tmp-cert
emptyDir: {}
- name: notary-tmp
emptyDir: {}
priorityClassName: {{ .Values.global.wardenPriorityClassName }}

4 changes: 4 additions & 0 deletions charts/warden/charts/operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,12 @@ spec:
volumeMounts:
- name: config
mountPath: {{ .Values.global.config.dir }}
- name: notary-tmp
mountPath: /tmp/.notary
volumes:
- name: config
configMap:
name: {{ .Values.global.config.configmapName }}
- name: notary-tmp
emptyDir: { }
priorityClassName: {{ .Values.global.wardenPriorityClassName }}
1 change: 1 addition & 0 deletions charts/warden/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ global:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true


#TODO: group k8s related settings under kubernetes?
Expand Down

0 comments on commit 7c17741

Please sign in to comment.