quick-king-51158
05/04/2023, 10:34 AMresource "kubernetes_manifest" "foo_mci" {
provider = ...
depends_on = ...
manifest = { ... }
wait {
fields = {
# check ingress has an IP
"<http://status.VIP|status.VIP>" = "^(\\d+(\\.|$)){4}"
}
}
timeouts {
create = "5m"
update = "5m"
delete = "1m"
}
}
cuddly-computer-18851
05/04/2023, 11:55 AMrich-motorcycle-3089
05/04/2023, 3:32 PMquick-king-51158
05/04/2023, 3:47 PMrich-motorcycle-3089
05/04/2023, 6:01 PM.apply
block to it to indicate to Pulumi that you need that field for something before it can proceed.
I’m thinking something like
const ingressAddress = crd.publicIpAddress.apply(
(address) => MyCustomIngressAddressResource(address)
);
const nextComponent = TheNextComponent(
...,
{
dependsOn: [ingressAddress]
}
);
quick-king-51158
05/04/2023, 7:11 PM