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.

Copy link

netlify bot commented Nov 6, 2024

Deploy Preview for karpenter-docs-prod canceled.

Name Link
🔨 Latest commit 9347ba5
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/672da3025db07d0008cacd00

@wesley-yep-canva wesley-yep-canva force-pushed the feat-custom-ssm-paramters-for-ami-selector-terms branch from fc278bc to bc75e08 Compare November 6, 2024 23:23
@wesley-yep-canva wesley-yep-canva force-pushed the feat-custom-ssm-paramters-for-ami-selector-terms branch 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.

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

Successfully merging this pull request may close these issues.

Support Custom SSM Alias
1 participant