func waitForClusterProfileCRD()

in argocd-clusterprofile-syncer/cmd/main.go [220:229]


func waitForClusterProfileCRD(ctx context.Context, cfg *rest.Config) {
	for {
		err := isCRDInstalled(ctx, cfg, crdName)
		if err == nil {
			return
		}
		setupLog.V(1).Info("ClusterProfile CRD not yet available, waiting...", "error", err)
		time.Sleep(time.Second * 10)
	}
}