How to wait for manifest to be ready before continuing in a script?
Let's say I'm doing the following in a shell script, as example I use Argo CD:
kubectl create namespace argocd
kubectl apply -n argocd --server-side --force-conflicts -f https://raw.githubusercontent.com/argoproj/argo-cd/v3.4.4/manifests/install.yaml
Now before continuing in my script, I want to make sure that everything from Argo CD is running. I've seen `kubectl wait`, but when waiting for ready on the complete manifest the issue is that e.g. service accounts have no ready state so this fails. What is the best practice to wait for everything from the manifest to be installed and running or created? Or is there something that is logically last so I can wait just for that last thing, like e.g. if deployment is ready than this implies that all service accounts were already created?