-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vcluster]: Add audit feature to apiserver
Signed-off-by: Adrian Berger <adrian.berger@bedag.ch>
- Loading branch information
Showing
6 changed files
with
87 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
charts/vcluster/templates/components/kubernetes/apiserver/policy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{{- if (include "kubernetes.enabled" $) -}} | ||
{{- $kubernetes := $.Values.kubernetes -}} | ||
{{- if and $kubernetes.apiServer.enabled $kubernetes.apiServer.audit.enabled -}} | ||
{{- $fullName := include "kubernetes.fullname" . -}} | ||
{{- $component_name := "apiserver" -}} | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ $fullName }}-audit-policy | ||
labels: {{- include "kubernetes.labels" $ | nindent 4 }} | ||
{{ include "pkg.common.labels.component" $ }}: {{ $component_name }} | ||
namespace: {{ $.Release.Namespace }} | ||
data: | ||
audit-policy.yaml: | | ||
{{- $kubernetes.apiServer.audit.policy | nindent 4 }} | ||
{{- end -}} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters