Skip to content

Commit

Permalink
fix: Remove subPath from configMap file mount in vcluster
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Berger <adrian.berger@bedag.ch>
  • Loading branch information
adberger committed Oct 7, 2024
1 parent 3ae8528 commit e9bf266
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ spec:
{{- end }}
{{- end }}
{{- if $kubernetes.apiServer.audit.enabled }}
- --audit-policy-file=/etc/kubernetes/audit-policy.yaml
- --audit-policy-file=/etc/kubernetes/audit/policy.yaml
- --audit-log-path=/var/log/kubernetes/audit/audit.log
- --audit-log-maxage={{ $kubernetes.apiServer.audit.maxAge | int }}
- --audit-log-maxbackup={{ $kubernetes.apiServer.audit.maxBackup | int }}
Expand Down Expand Up @@ -184,10 +184,9 @@ spec:
{{- end }}
{{- end }}
{{- if $kubernetes.apiServer.audit.enabled }}
- mountPath: /etc/kubernetes/audit-policy.yaml
- mountPath: /etc/kubernetes/audit/
name: audit
readOnly: true
subPath: audit-policy.yaml
- mountPath: /var/log/kubernetes/audit/
name: audit-log
readOnly: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
{{ include "pkg.common.labels.component" $ }}: {{ $component_name }}
namespace: {{ $.Release.Namespace }}
data:
audit-policy.yaml: |
policy.yaml: |
{{- $kubernetes.apiServer.audit.policy | nindent 4 }}
{{- end -}}
{{- end -}}

0 comments on commit e9bf266

Please sign in to comment.