Without the --write-to option, the "clusterctl generate cluster" command fails. #7970
Labels
area/clusterctl
Issues or PRs related to clusterctl
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/active
Indicates that an issue or PR is actively being worked on by a contributor.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
What steps did you take and what happened:
In clsuterctl built from latest source code for master branch, fail output yaml-template to stdout when running
clsuterctl generate cluster
.--write-to
option, output to any file works fine.What did you expect to happen:
Since this command worked fine in previous versions, we hope the same result in the latest version.
Anything else you would like to add:
The output flag is added in the following PR.
If this flag is not specified, the return value of
filepath.Clean()
is "."(dot), but it appears that this is not handled.Environment:
/kind bug
/area clusterctl
The text was updated successfully, but these errors were encountered: