Skip to content

Commit

Permalink
add Name tag to default launch template (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwagner5 committed Jul 23, 2021
1 parent 70b498d commit 9e7823a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/cloudprovider/aws/launchtemplate.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ func (p *LaunchTemplateProvider) createLaunchTemplate(ctx context.Context, optio
TagSpecifications: []*ec2.LaunchTemplateTagSpecificationRequest{{
ResourceType: aws.String(ec2.ResourceTypeInstance),
Tags: []*ec2.Tag{
{
Key: aws.String("Name"),
Value: aws.String(fmt.Sprintf("Karpenter/%s", ptr.StringValue(options.Cluster.Name))),
},
{
Key: aws.String(fmt.Sprintf(ClusterTagKeyFormat, ptr.StringValue(options.Cluster.Name))),
Value: aws.String("owned"),
Expand Down

0 comments on commit 9e7823a

Please sign in to comment.