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: Cannot create Karpenter add-on aws_im_policy with interruptionQueueName #1247

Merged
merged 12 commits into from
Dec 10, 2022

Conversation

pincher95
Copy link
Contributor

@pincher95 pincher95 commented Dec 10, 2022

What does this PR do?

Fix Karpenter unable to discover AWS SQS queue url when node termination handler enabled.

Motivation

Fix issue #1246

More

  • Yes, I have tested the PR using my local account setup (Provide any test evidence report under Additional Notes)
  • Yes, I have added a new example under examples to support my PR
  • Yes, I have created another PR for add-ons under add-ons repo (if applicable)
  • Yes, I have updated the docs for this feature
  • Yes, I ran pre-commit run -a with this PR

Note: Not all the PRs require a new example and/or doc page. In general:

  • Use an existing example when possible to demonstrate a new addons usage
  • A new docs page under docs/add-ons/* is required for new a new addon

For Moderators

  • E2E Test successfully complete before merge?

Additional Notes

@pincher95 pincher95 requested a review from a team as a code owner December 10, 2022 17:46
@pincher95 pincher95 changed the title Fix karpenter sqs discover url fix: Cannot create Karpenter add-on aws_im_policy with interruptionQueueName Dec 10, 2022
@@ -1,3 +1,7 @@
data "aws_sqs_queue" "karpenter" {
Copy link
Contributor

Choose a reason for hiding this comment

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

we have more info with the ARN than the name, so we can use:

data "aws_arn" "queue" {
  for_each = var.sqs_queue_arn != "" ? 1 : 0
  
  arn = var.sqs_queue_arn
}

Copy link
Contributor

Choose a reason for hiding this comment

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

other than the two comments, everything else can stay as it was

@bryantbiggs bryantbiggs temporarily deployed to EKS Blueprints Test December 10, 2022 20:02 — with GitHub Actions Inactive
@bryantbiggs bryantbiggs temporarily deployed to EKS Blueprints Test December 10, 2022 20:08 — with GitHub Actions Inactive
@bryantbiggs bryantbiggs temporarily deployed to EKS Blueprints Test December 10, 2022 20:15 — with GitHub Actions Inactive
@bryantbiggs bryantbiggs temporarily deployed to EKS Blueprints Test December 10, 2022 21:03 — with GitHub Actions Inactive
@bryantbiggs bryantbiggs merged commit c8f4544 into aws-ia:main Dec 10, 2022
allamand pushed a commit to allamand/terraform-aws-eks-blueprints that referenced this pull request Dec 15, 2022
…eueName (aws-ia#1247)

Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
allamand pushed a commit to allamand/terraform-aws-eks-blueprints that referenced this pull request Jan 10, 2023
…eueName (aws-ia#1247)

Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
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.

None yet

2 participants