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
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)