Skip to content

Commit

Permalink
Merge pull request #909 from matheuscscp/fix-tfctl-install
Browse files Browse the repository at this point in the history
fix tfctl install --export not separating yaml objects properly
  • Loading branch information
Chanwit Kaewkasi authored Aug 30, 2023
2 parents eb4c3ad + d45b0fc commit a4633fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tfctl/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,16 @@ func (c *CLI) Install(out io.Writer, version string, export bool) (err error) {
spinner.Start()
}

for _, k := range []string{"crds", "rbac", "deployment"} {
for i, k := range []string{"crds", "rbac", "deployment"} {
data, err := download(version, k)
if err != nil {
return err
}

if export {
if i > 0 {
fmt.Fprintln(out, "---")
}
fmt.Fprintln(out, string(data))
continue
}
Expand Down

0 comments on commit a4633fd

Please sign in to comment.