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

chore: Validate karpenter addon using the updated karpenter example #1574

Merged
merged 1 commit into from
May 3, 2023

Conversation

bryantbiggs
Copy link
Contributor

@bryantbiggs bryantbiggs commented May 2, 2023

What does this PR do?

  • Validate karpenter addon using the updated karpenter example
  • Add local copy of terraform-aws-eks-blueprints-addons to speed up testing and validation of both addons and examples
  • This also adds support for creating the EC2 node IAM role when using the karpenter addon which simplifies things for users

Motivation

  • Validate both the new karpenter addon implementation and the updated karpenter example for v5

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

@bryantbiggs bryantbiggs requested a review from a team as a code owner May 2, 2023 20:00
@bryantbiggs
Copy link
Contributor Author

Note: this is going into the [refactor/addons-module](https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/refactor/addons-module) branch and not main

@@ -0,0 +1,99 @@
# Karpenter
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will eventually live in the docs folder of terraform-aws-eks-blueprints-addons when the changes are sync'd back to that repo


cluster_name = module.eks.cluster_name
cluster_endpoint = module.eks.cluster_endpoint
cluster_version = module.eks.cluster_version
oidc_provider_arn = module.eks.oidc_provider_arn

# We want to wait for the Fargate profiles to be deployed first
create_delay_dependencies = [for prof in module.eks.fargate_profiles : prof.fargate_profile_arn]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

had to add back in the "hack" - it feels better, not sold on the name yet - just dependencies? wait_dependencies

@@ -310,40 +303,3 @@ module "vpc" {

tags = local.tags
}

module "ebs_csi_driver_irsa" {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these aren't relevant to the pattern as it currently stands - removed

Copy link
Contributor

@csantanapr csantanapr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@bryantbiggs bryantbiggs merged commit c9d5bfb into refactor/addons-module May 3, 2023
@bryantbiggs bryantbiggs deleted the chore/validate-karpenter branch May 3, 2023 18:24
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