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

feat: Add support for custom ssm parameters in amiSelectorTerms #7341

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

wesley-yep-canva
Copy link

@wesley-yep-canva wesley-yep-canva commented Nov 6, 2024

Fixes #3657

Description

Adds ssmParameterName to amiSelectorTerms to allow Karpenter to read a custom ssm parameter to get the AMI Image ID.

Karpenter already has ssm parameter IAM permissions and a ssm provider class as it's used to retrieve the public ssm params for alias based amiSelectorTerms. The reason I've added a separate function GetCustomParameter to the ssm provider is because we'd prefer not to use the cache for custom parameters, since it won't suffer from the same "thundering herd" behavior compared to if a public parameter was changed.

How was this change tested?

  • make test
  • tested in an EKS cluster

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: #
  • No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@wesley-yep-canva wesley-yep-canva requested a review from a team as a code owner November 6, 2024 22:54
Copy link

netlify bot commented Nov 6, 2024

Deploy Preview for karpenter-docs-prod ready!

Name Link
🔨 Latest commit ee3fd83
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/6743a02e4dae800008ab0db0
😎 Deploy Preview https://deploy-preview-7341--karpenter-docs-prod.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@wesley-yep-canva wesley-yep-canva force-pushed the feat-custom-ssm-paramters-for-ami-selector-terms branch 2 times, most recently from 6ff77e6 to b0d3183 Compare November 6, 2024 23:49
Copy link
Contributor

This PR has been inactive for 14 days. StaleBot will close this stale PR after 14 more days of inactivity.

@wesley-yep-canva wesley-yep-canva force-pushed the feat-custom-ssm-paramters-for-ami-selector-terms branch from 9347ba5 to ee3fd83 Compare November 24, 2024 21:52
@wesley-yep-canva
Copy link
Author

/remove-lifecycle stale

@jonathan-innis
Copy link
Contributor

Hey @wesley-yep-canva sorry that it's taken us so long to get around to this stuff :) Team has been pretty back-logged. Since this is a feature, there's also going to be some discussion around it I think.

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.

Support Custom SSM Alias
3 participants