From 4b88bc2631db716ecf105926cebb17b7f6c2f84f Mon Sep 17 00:00:00 2001 From: Adrian Berger Date: Fri, 11 Oct 2024 16:06:06 +0200 Subject: [PATCH] fix[vcluster]: add release name to audit logs as prefix Signed-off-by: Adrian Berger --- charts/vcluster/Chart.yaml | 2 +- charts/vcluster/README.md | 2 +- .../templates/components/kubernetes/apiserver/deployment.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/vcluster/Chart.yaml b/charts/vcluster/Chart.yaml index fe741fcf..a1191cb4 100644 --- a/charts/vcluster/Chart.yaml +++ b/charts/vcluster/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: vcluster description: Virtual Kubernetes Cluster type: application -version: 0.6.0 +version: 0.6.1 appVersion: 0.1.0 keywords: - vcluster diff --git a/charts/vcluster/README.md b/charts/vcluster/README.md index 2cb33be1..7b9540c0 100644 --- a/charts/vcluster/README.md +++ b/charts/vcluster/README.md @@ -2,7 +2,7 @@ __This Chart is under active development! We try to improve documentation and values consistency over time__ -![Version: 0.6.0](https://img.shields.io/badge/Version-0.6.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) +![Version: 0.6.1](https://img.shields.io/badge/Version-0.6.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) Virtual Kubernetes Cluster diff --git a/charts/vcluster/templates/components/kubernetes/apiserver/deployment.yaml b/charts/vcluster/templates/components/kubernetes/apiserver/deployment.yaml index 82613e80..ac0a583d 100644 --- a/charts/vcluster/templates/components/kubernetes/apiserver/deployment.yaml +++ b/charts/vcluster/templates/components/kubernetes/apiserver/deployment.yaml @@ -113,7 +113,7 @@ spec: {{- end }} {{- if $kubernetes.apiServer.audit.enabled }} - --audit-policy-file=/etc/kubernetes/audit/policy.yaml - - --audit-log-path=/var/log/kubernetes/audit/audit.log + - --audit-log-path=/var/log/kubernetes/audit/{{ include "pkg.cluster.name" $ }}-audit.log - --audit-log-maxage={{ $kubernetes.apiServer.audit.maxAge | int }} - --audit-log-maxbackup={{ $kubernetes.apiServer.audit.maxBackup | int }} - --audit-log-maxsize={{ $kubernetes.apiServer.audit.maxSize | int }}