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: Karpenter eventbridge naming #1483

Closed
wants to merge 6 commits into from
Closed

Conversation

dtherhtun
Copy link
Contributor

@dtherhtun dtherhtun commented Mar 7, 2023

‼️ PLEASE READ THIS FIRST ‼️

The direction for EKS Blueprints will soon shift from providing an all-encompassing, monolithic "framework" and instead focus more on how users can organize a set of modular components to create the desired solution on Amazon EKS. We have updated the examples to show how we use the https://github.com/terraform-aws-modules/terraform-aws-eks for EKS cluster and node group creation. We will not be accepting any PRs that apply to EKS cluster or node group creation process. Any such PR may be closed by the maintainers.

We are hitting also the pause button on new add-on creations at this time until a future roadmap for add-ons is finalized. Please do not submit new add-on PRs. Any such PR may be closed by the maintainers.

Please track progress, learn what's new and how the migration path would look like to upgrade your current Terraform deployments. We welcome the EKS Blueprints community to continue the discussion in issue #1421

What does this PR do?

🛑 Please open an issue first to discuss any significant work and flesh out details/direction - we would hate for your time to be wasted.
Consult the CONTRIBUTING guide for submitting pull-requests.

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

@dtherhtun dtherhtun requested a review from a team as a code owner March 7, 2023 10:57
@dtherhtun dtherhtun temporarily deployed to EKS Blueprints Test March 7, 2023 10:57 — with GitHub Actions Inactive
@dtherhtun dtherhtun changed the title fix: karpenter eventbridge naming fix: Karpenter eventbridge naming Mar 7, 2023
@dtherhtun
Copy link
Contributor Author

Screenshot 2023-03-07 at 18 23 42

- Tested

Copy link
Contributor

@vara-bonthu vara-bonthu left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏼

@@ -37,7 +37,7 @@ resource "aws_sqs_queue_policy" "this" {
resource "aws_cloudwatch_event_rule" "this" {
for_each = { for k, v in local.event_rules : k => v if var.enable_spot_termination }

name = each.value.name
name = join("-", [each.value.name, var.addon_context.eks_cluster_id])
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer using the name_prefix over a fixed name here. Similar to https://github.com/terraform-aws-modules/terraform-aws-eks/blob/c7565e265e23cbc622041fc153193f490cfe948f/modules/karpenter/main.tf#L270.

Suggested change
name = join("-", [each.value.name, var.addon_context.eks_cluster_id])
name_prefix = each.value.name

@askulkarni2
Copy link
Contributor

@dtherhtun can you please re-open this PR against https://github.com/aws-ia/terraform-aws-eks-blueprints-addons repo? This is going to be the new home for blueprints addons repo going forward as a part of changes described in #1421.

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.

[Karpenter] Rule with the name already exists on this event bus.
3 participants