Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AWS pod webhook that makes sure service accounts are annotated prior to pod being created #93

Merged
merged 6 commits into from
Nov 19, 2023

Conversation

orishoshan
Copy link
Contributor

@orishoshan orishoshan commented Nov 18, 2023

Description

Previously, Otterize would create annotate ServiceAccounts with AWS role ARNs only after a Pod was created. This meant that the AWS pod identity webhook controller could not apply the environment variables before pod start, meaning a pod restart was required.

This pod webhook annotates service accounts prior to pod creation, although it leaves the actual AWS role management to a ServiceAccount reconciler, in order to run as fast as possible and with as little option for failure.

This webhook controller relies on the AWS webhook controller having configured reinvocation policy = IfNeeded, so that it's retriggered if the Otterize webhook runs first.

References

otterize/helm-charts#133
otterize/intents-operator#294

@orishoshan orishoshan enabled auto-merge (squash) November 19, 2023 21:16
@orishoshan orishoshan merged commit 5277035 into main Nov 19, 2023
4 checks passed
@orishoshan orishoshan deleted the orisho/pod_webhook branch November 19, 2023 21:50
@github-actions github-actions bot locked and limited conversation to collaborators Nov 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants