https://pulumi.com logo
#general
Title
# general
b

busy-umbrella-36067

11/27/2018, 11:24 PM
also, is there a benefit for failing pulumi refreshes if a service is broken? Example:
Copy code
Diagnostics:
  kubernetes:core:Service (XXXXX-XXX-0151):
    error: Preview failed: 2 errors occurred:

    * Resource XXXXX-XXX-0151' was created but failed to initialize
    * Service does not target any Pods. Application Pods may failed to become alive, or field '.spec.selector' may not match labels on any Pods

error: an error occurred while advancing the preview
If I’m trying to update the state of my infrastructure to detect some drift and fix it, this would be a blocker
g

gorgeous-egg-16927

11/27/2018, 11:29 PM
@creamy-potato-29402 ^
c

creamy-potato-29402

11/28/2018, 1:35 PM
@busy-umbrella-36067 say more!
The reason we error out here is because
pulumi up
would error out. If we allow a refresh here, they’d refresh into a state of error, no?
What we should probably do is allow an annotation that opts out of the endpoints stuff.
b

busy-umbrella-36067

11/28/2018, 4:29 PM
@creamy-potato-29402 what happened is the sts/deploy behind that service was deleted
c

creamy-potato-29402

11/28/2018, 4:30 PM
@busy-umbrella-36067 makes sense. We’ll fix this next week.
b

busy-umbrella-36067

11/28/2018, 4:30 PM
ideally I’d like Pulumi to just recognize that and recreate the missing resource
c

creamy-potato-29402

11/28/2018, 4:30 PM
Oh I see.
You’re saying that you tried to refresh because the sts is missing.
Then that failed.
that is really interesting.
I had not considered this.
b

busy-umbrella-36067

11/28/2018, 4:32 PM
yeah, for instance: terraform does a refresh before any update
to make sure that any drift on the infrastructure doesn’t result in a failed deployment
c

creamy-potato-29402

11/28/2018, 4:38 PM
ok I’ll take a look at this.