4444 {{- toYaml . | nindent 8 }}
4545 {{- end }}
4646 serviceAccountName : {{ include "provider.serviceAccountName" . }}
47+ {{- if .Values.global.auditLogging.enabled }}
48+ securityContext :
49+ fsGroup : 65532
50+ {{- end }}
51+ {{- if .Values.global.auditLogging.enabled }}
52+ initContainers :
53+ {{- include "nvsentinel.auditLogging.initContainer" . | nindent 8 }}
54+ {{- end }}
4755 containers :
4856 - name : janitor-provider
4957 image : " {{ .Values.image.repository }}:{{ .Values.image.tag | default ((.Values.global).image).tag | default .Chart.AppVersion }}"
5664 - name : service
5765 containerPort : {{ .Values.service.port | default "50051" }}
5866 env :
67+ - name : POD_NAME
68+ valueFrom :
69+ fieldRef :
70+ fieldPath : metadata.name
5971 - name : JANITOR_PROVIDER_PORT
6072 value : {{ .Values.service.port | default 50051 | quote }}
73+ {{- if .Values.global.auditLogging.enabled }}
74+ {{- include "nvsentinel.auditLogging.envVars" . | nindent 12 }}
75+ {{- end }}
6176 - name : METRICS_PORT
6277 value : {{ ((.Values.global).metricsPort) | default 2112 | quote }}
6378 # Cloud Service Provider configuration
@@ -165,8 +180,11 @@ spec:
165180 {{- end }}
166181 readinessProbe :
167182 {{- toYaml .Values.readinessProbe | nindent 12 }}
168- {{- if or .Values.tls.enabled (and (eq (.Values.csp.provider | default "kind") "nebius") .Values.csp.nebius.serviceAccountKeySecret) }}
183+ {{- if or .Values.global.auditLogging.enabled .Values. tls.enabled (and (eq (.Values.csp.provider | default "kind") "nebius") .Values.csp.nebius.serviceAccountKeySecret) }}
169184 volumeMounts :
185+ {{- if .Values.global.auditLogging.enabled }}
186+ {{- include "nvsentinel.auditLogging.volumeMount" . | nindent 12 }}
187+ {{- end }}
170188 {{- if .Values.tls.enabled }}
171189 - name : tls-cert
172190 mountPath : {{ .Values.tls.certDir }}
@@ -178,8 +196,11 @@ spec:
178196 readOnly : true
179197 {{- end }}
180198 {{- end }}
181- {{- if or .Values.tls.enabled (and (eq (.Values.csp.provider | default "kind") "nebius") .Values.csp.nebius.serviceAccountKeySecret) }}
199+ {{- if or .Values.global.auditLogging.enabled .Values. tls.enabled (and (eq (.Values.csp.provider | default "kind") "nebius") .Values.csp.nebius.serviceAccountKeySecret) }}
182200 volumes :
201+ {{- if .Values.global.auditLogging.enabled }}
202+ {{- include "nvsentinel.auditLogging.volume" . | nindent 8 }}
203+ {{- end }}
183204 {{- if .Values.tls.enabled }}
184205 - name : tls-cert
185206 secret :
0 commit comments