Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 36 lines (22 sloc) 700 Bytes
#!/bin/bash
LANG=C
SLEEP_SECONDS=45
echo ""
echo "Creating ArgoCD Project"
# Avoids weird race condition where sometimes two installplans get created
oc new-project argocd
sleep 2
echo ""
echo "Installing Argo CD Operator."
oc apply -k argocd-operator/overlays/default
echo "Pause $SLEEP_SECONDS seconds for the creation and approval of the InstallPlan."
sleep $SLEEP_SECONDS
oc rollout status deploy/argocd-operator -n argocd
echo "Listing Argo CD CRDs."
oc get crd | grep argo
echo "Deploying Argo CD instance"
oc apply -k argocd/overlays/default
echo "Waiting for Argo CD server to start..."
sleep $SLEEP_SECONDS
oc rollout status deploy/argocd-server -n argocd
echo "Argo CD ready!"