Skip to content

Commit

Permalink
Merge pull request #65 from dfds/bug/2089_annotations-should-be-labels
Browse files Browse the repository at this point in the history
Requested change from annotations to labels
  • Loading branch information
andreasfrisch authored Oct 9, 2023
2 parents 1dab420 + 129956c commit 15f115a
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ ContextAccountCreatedDomainEvent domainEvent
Label.CreateSafely("capability-id", domainEvent.Payload.CapabilityId.ToString()),
Label.CreateSafely("capability-name", domainEvent.Payload.CapabilityName),
Label.CreateSafely("context-id", domainEvent.Payload.ContextId.ToString()),
Label.CreateSafely("context-name", domainEvent.Payload.ContextName)
Label.CreateSafely("context-name", domainEvent.Payload.ContextName),
Label.CreateSafely("pod-security.kubernetes.io/enforce", "baseline")
};

try
Expand All @@ -114,14 +115,6 @@ ContextAccountCreatedDomainEvent domainEvent
{
"dfds-aws-account-id",
domainEvent.Payload.AccountId
},
{
"pod-security.kubernetes.io/audit",
"baseline"
},
{
"pod-security.kubernetes.io/warn",
"baseline"
}
});
}
Expand Down

0 comments on commit 15f115a

Please sign in to comment.