Hi, I am trying to setup argoCD and create an app...
# kubernetes
g
Hi, I am trying to setup argoCD and create an app using Pulumi kubernetes (in python). However I do not understand how to make sure that argoCD is ready with all pods etc before starting the app creation. So far I tried the following
Copy code
argocd_stack = ConfigFile(
    'argocd-installation',
    file=f'{iac_lj_folder}/argocd/install.yaml',
    transformations=[
        set_argocd_namespace
    ],
    opts=pulumi.ResourceOptions(
        depends_on=[argocd_namespace],
        custom_timeouts=CustomTimeouts(create='5m')
    )
)

argocd_octais_app = k8s.apiextensions.CustomResource(
    'argocd-octais-app',
    api_version='<http://argoproj.io/v1alpha1|argoproj.io/v1alpha1>',
    kind='Application',
    metadata=argocd_octais_manifest['metadata'],
    spec=argocd_octais_manifest['spec'],
    opts=pulumi.ResourceOptions(
        parent=argocd_stack,
        depends_on=[
            # argocd_stack,
            argocd_github_secret,
            argocd_namespace,
            octais_namespace,
            dockerconfigjson_github
        ],
        custom_timeouts=CustomTimeouts(create='5m')
    )
)
However so far it doens't work what I need to do is: Comment the argocd_actais_app -> first run pulumi up -> wait a bit -> uncomment -> run again Is there any hint, thx a lot for the help (sorry if I posted in the wrong channel)
h
hi @gorgeous-leather-93186, including
argocd_stack
in
depends_on
is normally the way to do this, but it depends on what’s installed with that
install.yaml
file. if that file is installing daemonsets or custom resources, the provider doesn’t currently await for those to become ready. this is something we’re working on. does that sound like it might be what you’re running into?
g
oh yeap I can see some CustomResourceDefinition https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml Thx a lot for the response
is there a way to extends the retry count in that case? it usually take 45s for argoCD to be ready