{"action":"closed","issue":{"url":"https://api.github.com/repos/pulumi/pulumi/issues/2047","repository_url":"https://api.github.com/repos/pulumi/pulumi","labels_url":"https://api.github.com/repos/pulumi/pulumi/issues/2047/labels{/name}","comments_url":"https://api.github.com/repos/pulumi/pulumi/issues/2047/comments","events_url":"https://api.github.com/repos/pulumi/pulumi/issues/2047/events","html_url":"https://github.com/pulumi/pulumi/issues/2047","id":369275989,"node_id":"MDU6SXNzdWUzNjkyNzU5ODk=","number":2047,"title":"Replacement logic for provider instances not quite right","user":{"login":"joeduffy","id":3953235,"node_id":"MDQ6VXNlcjM5NTMyMzU=","avatar_url":"https://avatars3.githubusercontent.com/u/3953235?v=4","gravatar_id":"","url":"https://api.github.com/users/joeduffy","html_url":"https://github.com/joeduffy","followers_url":"https://api.github.com/users/joeduffy/followers","following_url":"https://api.github.com/users/joeduffy/following{/other_user}","gists_url":"https://api.github.com/users/joeduffy/gists{/gist_id}","starred_url":"https://api.github.com/users/joeduffy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeduffy/subscriptions","organizations_url":"https://api.github.com/users/joeduffy/orgs","repos_url":"https://api.github.com/users/joeduffy/repos","events_url":"https://api.github.com/users/joeduffy/events{/privacy}","received_events_url":"https://api.github.com/users/joeduffy/received_events","type":"User","site_admin":false},"labels":[{"id":472686215,"node_id":"MDU6TGFiZWw0NzI2ODYyMTU=","url":"https://api.github.com/repos/pulumi/pulumi/labels/area/core","name":"area/core","color":"fbca04","default":false},{"id":472618269,"node_id":"MDU6TGFiZWw0NzI2MTgyNjk=","url":"https://api.github.com/repos/pulumi/pulumi/labels/kind/bug","name":"kind/bug","color":"FF8C94","default":false}],"state":"closed","locked":false,"assignee":{"login":"swgillespie","id":1871912,"node_id":"MDQ6VXNlcjE4NzE5MTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1871912?v=4","gravatar_id":"","url":"https://api.github.com/users/swgillespie","html_url":"https://github.com/swgillespie","followers_url":"https://api.github.com/users/swgillespie/followers","following_url":"https://api.github.com/users/swgillespie/following{/other_user}","gists_url":"https://api.github.com/users/swgillespie/gists{/gist_id}","starred_url":"https://api.github.com/users/swgillespie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swgillespie/subscriptions","organizations_url":"https://api.github.com/users/swgillespie/orgs","repos_url":"https://api.github.com/users/swgillespie/repos","events_url":"https://api.github.com/users/swgillespie/events{/privacy}","received_events_url":"https://api.github.com/users/swgillespie/received_events","type":"User","site_admin":false},"assignees":[{"login":"swgillespie","id":1871912,"node_id":"MDQ6VXNlcjE4NzE5MTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1871912?v=4","gravatar_id":"","url":"https://api.github.com/users/swgillespie","html_url":"https://github.com/swgillespie","followers_url":"https://api.github.com/users/swgillespie/followers","following_url":"https://api.github.com/users/swgillespie/following{/other_user}","gists_url":"https://api.github.com/users/swgillespie/gists{/gist_id}","starred_url":"https://api.github.com/users/swgillespie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swgillespie/subscriptions","organizations_url":"https://api.github.com/users/swgillespie/orgs","repos_url":"https://api.github.com/users/swgillespie/repos","events_url":"https://api.github.com/users/swgillespie/events{/privacy}","received_events_url":"https://api.github.com/users/swgillespie/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/pulumi/pulumi/milestones/33","html_url":"https://github.com/pulumi/pulumi/milestone/33","labels_url":"https://api.github.com/repos/pulumi/pulumi/milestones/33/labels","id":3450897,"node_id":"MDk6TWlsZXN0b25lMzQ1MDg5Nw==","number":33,"title":"0.19","description":"","creator":{"login":"joeduffy","id":3953235,"node_id":"MDQ6VXNlcjM5NTMyMzU=","avatar_url":"https://avatars3.githubusercontent.com/u/3953235?v=4","gravatar_id":"","url":"https://api.github.com/users/joeduffy","html_url":"https://github.com/joeduffy","followers_url":"https://api.github.com/users/joeduffy/followers","following_url":"https://api.github.com/users/joeduffy/following{/other_user}","gists_url":"https://api.github.com/users/joeduffy/gists{/gist_id}","starred_url":"https://api.github.com/users/joeduffy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeduffy/subscriptions","organizations_url":"https://api.github.com/users/joeduffy/orgs","repos_url":"https://api.github.com/users/joeduffy/repos","events_url":"https://api.github.com/users/joeduffy/events{/privacy}","received_events_url":"https://api.github.com/users/joeduffy/received_events","type":"User","site_admin":false},"open_issues":86,"closed_issues":27,"state":"open","created_at":"2018-06-25T19:57:35Z","updated_at":"2018-11-02T16:47:51Z","due_on":"2018-11-25T08:00:00Z","closed_at":null},"comments":1,"created_at":"2018-10-11T19:42:11Z","updated_at":"2018-11-02T16:47:51Z","closed_at":"2018-11-02T16:47:51Z","author_association":"MEMBER","body":"I just changed a Kubernetes cluster's node count, and it triggered a replacement (not sure why, but it did). This then manifested as an _update_, not a replacement, of a custom provider instance that uses that Kubernetes' cluster's configuration as input. Sadly, this meant that the corresponding Kubernetes resources also then got updated, but by the time we got to them, the provider was pointing to the new cluster...which of course knows nothing about those resources.\r\n\r\nHere is the sequence of events:\r\n\r\n```\r\n ++ gcp:container:Cluster gke-cluster created replacement [diff: ~initialNodeCount,name]\r\n +- gcp:container:Cluster gke-cluster replacing [diff: ~initialNodeCount,name]\r\n +- gcp:container:Cluster gke-cluster replaced [diff: ~initialNodeCount,name]\r\n ~  pulumi:providers:kubernetes gke-k8s updating [diff: ~kubeconfig]\r\n ~  pulumi:providers:kubernetes gke-k8s updated [diff: ~kubeconfig]\r\n ~  kubernetes:apps:Deployment rails-deployment updating [diff: ~spec]\r\n ~  kubernetes:apps:Deployment rails-deployment updating [diff: ~spec]; error: Plan apply failed: deployments.apps \"rails-deployment-w7da09rd\" not found\r\n ~  kubernetes:apps:Deployment rails-deployment **updating failed** [diff: ~spec]; error: Plan apply failed: deployments.apps \"rails-deployment-w7da09rd\" not found\r\n    pulumi:pulumi:Stack project-cloudysky-pcs-stage  \r\n```"}}
{"actor":{"display_login":"pgavlin"}}