From 6bd84d9a4309ee515230f69044f098d6508cbe75 Mon Sep 17 00:00:00 2001 From: Derek Brown Date: Mon, 11 Mar 2024 16:51:03 -0700 Subject: [PATCH 1/2] feat: cannonical label for skipping pod identity webhook --- deploy/mutatingwebhook.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy/mutatingwebhook.yaml b/deploy/mutatingwebhook.yaml index c8e66e732..1f1e718f0 100644 --- a/deploy/mutatingwebhook.yaml +++ b/deploy/mutatingwebhook.yaml @@ -13,6 +13,11 @@ webhooks: name: pod-identity-webhook namespace: default path: "/mutate" + objectSelector: + matchExpressions: + - key: eks.amazonaws.com/skip-identity-webhook + operator: "DoesNotExist" + values: [] rules: - operations: [ "CREATE" ] apiGroups: [""] From 783795469a0e2b2477bc1f988a7369c5e876b222 Mon Sep 17 00:00:00 2001 From: Derek Brown Date: Mon, 24 Jun 2024 17:21:27 -0700 Subject: [PATCH 2/2] rename --- deploy/mutatingwebhook.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/mutatingwebhook.yaml b/deploy/mutatingwebhook.yaml index 1f1e718f0..32b39e1df 100644 --- a/deploy/mutatingwebhook.yaml +++ b/deploy/mutatingwebhook.yaml @@ -15,7 +15,7 @@ webhooks: path: "/mutate" objectSelector: matchExpressions: - - key: eks.amazonaws.com/skip-identity-webhook + - key: eks.amazonaws.com/skip-pod-identity-webhook operator: "DoesNotExist" values: [] rules: