microscopic-agent-70604
04/03/2021, 7:17 PMfunc GetIngressNginxServiceStatus(ingressControllerChartResources pulumi.Output) pulumi.Output {
ingressServiceStatus := ingressControllerChartResources.ApplyT(func(arg interface{}) corev1.ServiceStatusPtrOutput {
x := arg.(map[string]pulumi.Resource)
return x["v1/Service::ingress-nginx/ingress-nginx-controller"].(*corev1.Service).Status
})
return ingressServiceStatus
}
But currently we use flux for our initial deployment and want to use it for ingress-controller as well.
So the question. How to make GetService or applier wait for other resources and do not be executed on pulumi preview? Earlier I used ctx.DryRun() to exclude some stuff from the preview, but here this hostname is used in other further code and I can't just miss this code
if !ctx.DryRun() {...}