parodos-dev / orchestrator-helm-chart

Helm chart to deploy the Orchestrator solution suite.
https://parodos.dev/orchestrator-helm-chart/
Apache License 2.0
2 stars 22 forks source link

Redirect all output to /dev/null when checking for existing secret in setup.sh #180

Closed jordigilh closed 6 months ago

jordigilh commented 6 months ago

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!

@masayag @chadcrum PTAL.