Skip to content

Commit

Permalink
Fix file formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
heiko.rothe committed Feb 22, 2022
1 parent 1921e6a commit a534fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cloudprovider/aws/launchtemplate.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func (p *LaunchTemplateProvider) getUserData(ctx context.Context, constraints *v

func (p *LaunchTemplateProvider) getBottlerocketUserData(ctx context.Context, constraints *v1alpha1.Constraints, additionalLabels map[string]string, caBundle *string) string {
userData := fmt.Sprintf("[settings.kubernetes]\ncluster-name = \"%s\"\napi-server = \"%s\"\n", injection.GetOptions(ctx).ClusterName, injection.GetOptions(ctx).ClusterEndpoint)
if len(constraints.KubeletConfiguration.ClusterDNS) > 0 {
if len(constraints.KubeletConfiguration.ClusterDNS) > 0 {
userData += fmt.Sprintf("cluster-dns-ip = \"%s\"\n", constraints.KubeletConfiguration.ClusterDNS[0])
}
if caBundle != nil {
Expand Down

0 comments on commit a534fbc

Please sign in to comment.