sparse-intern-71089
12/04/2019, 11:24 AMstocky-island-3676
12/04/2019, 11:28 AMstocky-island-3676
12/04/2019, 11:45 AMIn order to
successfully import a resource, its desired configuration (i.e. its
inputs) must not differ from its actual configuration (i.e. its state)
as calculated by the resource’s provider.
https://github.com/pulumi/pulumi/pull/2893#issue-293527337That’s intended as a gate to not accidentally overwrite it with `pulumi up --yes`: https://github.com/pulumi/pulumi/pull/2893#issuecomment-509771727
handsome-cat-98152
12/04/2019, 11:46 AMService
and Deployment
Objects so far.
I can see precisely which fields differ, pulumi offers a great view into this. It looks like this:
warning: inputs to import do not match the existing resource; importing this resource will fail
= kubernetes:core/v1:Service: (import)
[id=microservice-example-ihrhjljj]
[urn=urn:pulumi:dev::pulumi::kubernetes:core/v1:Service::microservice-example]
[provider=urn:pulumi:dev::pulumi::pulumi:providers:kubernetes::default_1_3_1::04da6b54-80e4-46f7-96ec-b56ff0331ba9]
~ spec: {
~ selector: {
~ tier: "backend" => "frontend"
}
}
stocky-island-3676
12/04/2019, 11:56 AMselector
to tier: backend
in your code, then the import should work, or?handsome-cat-98152
12/04/2019, 12:09 PM