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

fix: Align creation of k8s namespaces and service account in addons #1486

Conversation

atorrescogollo
Copy link
Contributor

What does this PR do?

Some addons support setting helm_config.create_namespace, but don't support setting helm_config.create_service_account. This makes disabling create_namespace useless when the creation of the service account is enabled since the service account can't be created into a non-existent namespace.

On the other hand, since Blueprints v5 will have different repositories per addon, I would prefer to manage all Kubernetes resources through a custom ArgoCD app. And then, I want blueprints to only create the IAM roles for IRSA.

For both reasons, this PR will allow conditionally creating namespaces (already supported) and service accounts per addon.

Motivation

More

  • Yes, I have tested the PR using my local account setup (Provide any test evidence report under Additional Notes)
  • Yes, I have updated the docs for this feature
  • Yes, I ran pre-commit run -a with this PR

For Moderators

  • E2E Test successfully complete before merge?

Additional Notes

@atorrescogollo atorrescogollo requested a review from a team as a code owner March 8, 2023 12:01
@atorrescogollo atorrescogollo force-pushed the addons-k8s-resources-conditional-creation branch from 8f5cd7c to 3dbe341 Compare March 8, 2023 12:55
@bryantbiggs
Copy link
Contributor

thank you for the PR - this will be resolved in the new addons module https://github.com/aws-ia/terraform-aws-eks-blueprints-addons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants