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: adding tag option for karpenter's default AWSNodeTemplate #789

Merged

Conversation

pennywisdom
Copy link
Contributor

@pennywisdom pennywisdom commented Jul 24, 2023

Issue #, if available:

Description of changes:

Adding tags option to the default provisioner so that Karpenter adds tags to all resources created, including EC2 Instances, EBS volumes and Launch Templates.

This change supports accounts with governance requirements where tags are required such as enforcing use of the AWS Instance Scheduler

Karpenter allows overrides of the default "Name" tag but does not allow overrides to restricted domains (such as "karpenter.sh", "karpenter.k8s.aws", and "kubernetes.io/cluster"). This ensures that Karpenter is able to correctly auto-discover machines that it owns, so Karpenter will validate these requirements itself.

An integration test would verify that the tags are added to EC2 instances, EBS volumes and Launch Templates.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@shapirov103
Copy link
Collaborator

@youngjeong46 please review and share your thoughts on functional verification.

Copy link
Collaborator

@youngjeong46 youngjeong46 left a comment

Choose a reason for hiding this comment

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

Thank you for the contributions. LGTM!

Copy link
Collaborator

@shapirov103 shapirov103 left a comment

Choose a reason for hiding this comment

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

LGTM

@shapirov103 shapirov103 merged commit 50d3fb7 into aws-quickstart:main Jul 26, 2023
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.

4 participants