mirror of
https://github.com/siderolabs/omni.git
synced 2026-05-04 22:26:13 +02:00
feat: comment serviceaccount create output
The plain text output makes it less friendly to automation and saving to .env files because it's interpreted by the shell. Signed-off-by: Justin Garrison <justin.garrison@siderolabs.com>
This commit is contained in:
parent
967c229e1d
commit
302e9175a3
@ -69,13 +69,13 @@ var (
|
||||
return err
|
||||
}
|
||||
|
||||
fmt.Printf("Created service account %q with public key ID %q\n", name, publicKeyID)
|
||||
fmt.Printf("\n")
|
||||
fmt.Printf("Set the following environment variables to use the service account:\n")
|
||||
fmt.Fprintf(os.Stderr, "Created service account %q with public key ID %q\n", name, publicKeyID)
|
||||
fmt.Fprintf(os.Stderr, "\n")
|
||||
fmt.Fprintf(os.Stderr, "Set the following environment variables to use the service account:\n")
|
||||
fmt.Printf("%s=%s\n", access.EndpointEnvVar, client.Endpoint())
|
||||
fmt.Printf("%s=%s\n", serviceaccount.OmniServiceAccountKeyEnvVar, encodedKey)
|
||||
fmt.Printf("\n")
|
||||
fmt.Printf("Note: Store the service account key securely, it will not be displayed again\n")
|
||||
fmt.Fprintf(os.Stderr, "\n")
|
||||
fmt.Fprintf(os.Stderr, "Note: Store the service account key securely, it will not be displayed again\n")
|
||||
|
||||
return nil
|
||||
})
|
||||
@ -111,13 +111,13 @@ var (
|
||||
return err
|
||||
}
|
||||
|
||||
fmt.Printf("Renewed service account %q by adding a public key with ID %q\n", name, publicKeyID)
|
||||
fmt.Printf("\n")
|
||||
fmt.Printf("Set the following environment variables to use the service account:\n")
|
||||
fmt.Fprintf(os.Stderr, "Renewed service account %q by adding a public key with ID %q\n", name, publicKeyID)
|
||||
fmt.Fprintf(os.Stderr, "\n")
|
||||
fmt.Fprintf(os.Stderr, "Set the following environment variables to use the service account:\n")
|
||||
fmt.Printf("%s=%s\n", access.EndpointEnvVar, client.Endpoint())
|
||||
fmt.Printf("%s=%s\n", serviceaccount.OmniServiceAccountKeyEnvVar, encodedKey)
|
||||
fmt.Printf("\n")
|
||||
fmt.Printf("Note: Store the service account key securely, it will not be displayed again\n")
|
||||
fmt.Fprintf(os.Stderr, "\n")
|
||||
fmt.Fprintf(os.Stderr, "Note: Store the service account key securely, it will not be displayed again\n")
|
||||
|
||||
return nil
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user