From 64af417d9f290a4007a0edc2c06f7dffed3af966 Mon Sep 17 00:00:00 2001 From: "Emil H. Clausen" Date: Tue, 25 Jul 2023 09:38:35 +0200 Subject: [PATCH] Add pod security annotations for new namespaces --- .../ContextAccountCreatedDomainEventHandler.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/K8sJanitor.WebApi/EventHandlers/ContextAccountCreatedDomainEventHandler.cs b/src/K8sJanitor.WebApi/EventHandlers/ContextAccountCreatedDomainEventHandler.cs index faf7dbb..d576aa1 100644 --- a/src/K8sJanitor.WebApi/EventHandlers/ContextAccountCreatedDomainEventHandler.cs +++ b/src/K8sJanitor.WebApi/EventHandlers/ContextAccountCreatedDomainEventHandler.cs @@ -114,6 +114,14 @@ ContextAccountCreatedDomainEvent domainEvent { "dfds-aws-account-id", domainEvent.Payload.AccountId + }, + { + "pod-security.kubernetes.io/audit", + "baseline" + }, + { + "pod-security.kubernetes.io/warn", + "baseline" } }); }