Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ commands:
- script: |
api_server=$(oc get routes -n openshift-gitops --field-selector metadata.name=openshift-gitops-server -o jsonpath="{.items[*]['spec.host']}")
password=$(oc get secret openshift-gitops-cluster -n openshift-gitops -o jsonpath='{.data.admin\.password}' | base64 -d)
output=$(argocd login $api_server --username admin --password $password --insecure)

# --skip-test-tls is added as a temporary fix to "context deadline exceeded" failure
output=$(argocd login $api_server --username admin --password $password --insecure --skip-test-tls)

if ! [[ "${output}" =~ "'admin:login' logged in successfully" ]]; then
if [[ "${output}" == *"rpc error: code = Unknown desc = server.secretkey is missing" ]]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ commands:
api_server=$(oc get routes -n openshift-gitops --field-selector metadata.name=openshift-gitops-server -o jsonpath="{.items[*]['spec.host']}")
password=$(oc get secret openshift-gitops-cluster -n openshift-gitops -o jsonpath='{.data.admin\.password}' | base64 -d)

output=$(argocd login $api_server --username admin --password $password --insecure)

# --skip-test-tls is added as a temporary fix to "context deadline exceeded" failure
output=$(argocd login $api_server --username admin --password $password --insecure --skip-test-tls)

if ! [[ "${output}" =~ "'admin:login' logged in successfully" ]]; then
exit 1
fi
Expand Down
Loading