Open davidthor opened 11 months ago
@davidthor Thanks for the detailed write up and constructive suggestions. I think there is basis for most of what you brought up. I'll discuss this with the rest of the team to see what improvements we could do for working with K8s service resources.
Thanks for using our provider and providing valuable user experience feedback!
It seems concerning that the default behavior would be changed. I can imagine cases where waiting is important, e.g. if a subsequent resource expects to use the service endpoint.
I agree that the Pulumi annotations shouldn't be written to the object, they're like meta-annotations. It isn't unreasonable that annotations are used in the Pulumi programming model (as opposed to, say, resource options), because they are usable in a variety of contexts (such as in a Helm Release or a ConfigFile resource), but shouldn't be rendered.
Hello!
Issue details
In my first experience with the Kubernetes provider, I ran into an issue of long-running jobs when creating services because it was "Finding pods to direct traffic to". I was creating my services before my deployment/pods so this was innevitable. I pretty quickly found the workaround of using the annotation,
pulumi.com/skipAwait
, but I'm not a fan of it for a couple reasons:There are really two different feature requests here as a result:
skipAwait
annotation.Affected area/feature
Pulumi kubernetes provider, specifically the Service resource.