06/30/2021, 3:59 AM
I'm having some trouble with resource creation ordering. I'm using the Docker provider to create an image that gets used by a Kubernetes Deployment. However, they both start creating at the same time and, of course, the deployment misses the image that isn't already built. I've tried using dependsOn and parent to no good. Also, when the image gets changed, the Deployment doesn't get replaced/recreated. How do I troubleshoot this?


06/30/2021, 4:28 AM
This will have been encountered before, so searching here, GitHub discussions or GitHub issues is a good start.
It's usually a dependsOn problem, unless the image resource can be ready before the real image is. In which case, you'll have to poll the registry or wherever it's being made availlable from
I'm afraid I haven't used either the Docker provider or k8s yet, so I can't offer more help than that.