Running `flux bootrrap` within a <Pulumi Command> ...
# general
m
Running
flux bootrrap
within a Pulumi Command Pulumi reports errors when there is no error running the underlying command. I don’t really understand why, does Pulumi assume errors whilst receiving multiple lines of output?
🤔 1
m
Do you know what the exit code of the command is?
I ask because the docs suggest anything nonzero is considered a failure: https://www.pulumi.com/registry/packages/command/api-docs/local/command/
m
Yes, it exits with 0 at the end
Copy code
❯ echo $? 
0
However, every line from the Flux CLI is being outputted as an error by Pulumi
Copy code
Diagnostics:
  command:local:Command (strap):
    error: ► connecting to <http://github.com|github.com>
    ...
    error: ✔ notification-controller: deployment ready
    error: ✔ source-controller: deployment ready
    error: ✔ all components are healthy
 
Resources:
    + 2 created

Duration: 35s
Perhaps lines are outputted to Stderr in Flux CLI.
Confirmed: Flux used stderr for runtime output, and stdout for manifest creation so you can
>
it to files