Skip to content

Commit

Permalink
Reduce label yaml space
Browse files Browse the repository at this point in the history
  • Loading branch information
kimlisa committed Jan 7, 2025
1 parent 734c2bf commit 4d48a07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/web/join_tokens.go
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ func getJoinScript(ctx context.Context, settings scriptSettings, m nodeAPIGetter
}

suggestedLabels := token.GetSuggestedLabels()
appServerResourceLabels, err = scripts.MarshalLabelsYAML(suggestedLabels, 6)
appServerResourceLabels, err = scripts.MarshalLabelsYAML(suggestedLabels, 4)
if err != nil {
return "", trace.Wrap(err)
}
Expand Down
2 changes: 1 addition & 1 deletion lib/web/scripts/node-join/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ app_service:
uri: "${APP_URI}"
public_addr: ${APP_PUBLIC_ADDR}
labels:{{range $index, $line := .appServerResourceLabels}}
{{$line -}}
{{$line -}}
{{end}}
EOF
}
Expand Down

0 comments on commit 4d48a07

Please sign in to comment.