Redirect all output to /dev/null when checking if the backstage-backend-auth-secret secret exists in the rhdh-operator namespace to avoid printing the error message Error from server (NotFound): secrets "backstage-backend-auth-secret" not found in the stdout when the secret does not exist.
Before:
$> ./hack/setup.sh
Not using default values.
...
...
Found Route at argocd-server-orchestrator-gitops.apps.stress.parodos.dev
Error from server (NotFound): secrets "backstage-backend-auth-secret" not found
secret/backstage-backend-auth-secret created
...
...
Setup completed successfully!
After:
$> ./hack/setup.sh
Not using default values.
...
Found Route at argocd-server-orchestrator-gitops.apps.stress.parodos.dev
secret/backstage-backend-auth-secret created
...
..
Setup completed successfully!
Redirect all output to
/dev/null
when checking if thebackstage-backend-auth-secret
secret exists in therhdh-operator
namespace to avoid printing the error messageError from server (NotFound): secrets "backstage-backend-auth-secret" not found
in the stdout when the secret does not exist.Before:
After:
@masayag @chadcrum PTAL.