Skip to content

Commit

Permalink
for firewall access token must be set in env (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 authored Sep 2, 2021
1 parent f450451 commit 1522655
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -1238,6 +1238,14 @@ func machineConsole(driver *metalgo.Driver, args []string) error {
if err != nil {
return err
}
authContext, err := getAuthContext(viper.GetString("kubeConfig"))
if err != nil {
return err
}
err = os.Setenv("LC_METAL_STACK_OIDC_TOKEN", authContext.IDToken)
if err != nil {
return err
}
err = SSHClient(machineID, key, parsedurl.Host, bmcConsolePort)
if err != nil {
return fmt.Errorf("machine console error:%w", err)
Expand Down

0 comments on commit 1522655

Please sign in to comment.