Closed jordigilh closed 4 months ago
/lgtm
Note that the script captures the K8s fields if the user has an authenticated connection with a cluster. Is this behavior acceptable @masayag? This means that the backstage's k8s plugin will be available as part of the RHDH deployment: https://github.com/parodos-dev/orchestrator-helm-chart/blob/197b069d45cc8399b2a52b6c0104ad93d2869983/charts/orchestrator/templates/rhdh-operator.yaml#L111
I'm asking because the existing "manual" setup did not include k8s configuration as part of the secret creation, but now it would automatically.
Changes the
hack/setup.sh
so that it now will succeed even if no argocd is found in the cluster. This change allows to run the script to generate the backstage secret for non-GitOps environments and removes the necessity in the installation process to specify a different path for non-GitOps environments.Additionally, the secret created will contain only those keys that have been populated, thus avoiding secrets with keys with empty values.
Links to https://github.com/parodos-dev/orchestrator-helm-chart/pull/175 @batzionb @masayag @pkliczewski PTAL.