https://pulumi.com logo
s

sparse-insurance-40223

11/08/2018, 9:23 AM
I'm having an issue with kube custom resources that pulumi is convinced have been deployed, but havent. Is there anything special I need to do with them?
c

creamy-potato-29402

11/08/2018, 9:24 AM
Can you expand on this?
s

sparse-insurance-40223

11/08/2018, 9:24 AM
I had a similar problem with them failing to be removed from the state after I removed the definitions, and pulumi errored during each update because it couldn't find them.
I deleted them manually out of state to fix tha tone...
c

creamy-potato-29402

11/08/2018, 9:25 AM
that is exceptionally odd, and not desired behavior.
If you tell me the exact scenario I can try to get a repro and fix.
s

sparse-insurance-40223

11/08/2018, 9:25 AM
well background: i have a custom json that defines 2 services and i loop through, for each i create a dns/userAssignedIdentity/deployment/service/ingress etc
in addition... i'm using "aad-pod-identity" which lets a pod adopt the UserAssignedIdentity from azure AD
that project defines 3 custom resources
azureidentity, azureidentitybinding and azureassignedidentity
so i create an azureidentity for the UserAssignedIdentity then create an AzureIdentityBinding to map it to a pod, then the aad-pod-identity internals do the azureassignedidentity.
anyway... the first one is deployed fine and the second one is in the state file but kubectl knows nothing about it
and they're both created by the same means in the same loop from the same data structure
Copy code
PS C:\Program Files\PowerShell\6.0.2> kubectl get azureidentitybindings --all-namespaces
NAMESPACE   NAME            AGE
default     virtualreader   17h
PS C:\Program Files\PowerShell\6.0.2> kubectl get azureidentities --all-namespaces
NAMESPACE   NAME            AGE
default     virtualreader   17h
PS C:\Program Files\PowerShell\6.0.2> kubectl get azureassignedidentities --all-namespaces
NAMESPACE   NAME                                                              AGE
default     virtualreader-2327qnsa-64ddd77cb-gv92j-goodfellow-virtualreader   17h
basically there should be 2 of each in that. the missing ones are in the state file.
c

creamy-potato-29402

11/08/2018, 9:30 AM
these are custom resouces?
s

sparse-insurance-40223

11/08/2018, 9:30 AM
yeah
c

creamy-potato-29402

11/08/2018, 9:30 AM
can you share the output of the
pulumi up
?
oh also
what version are you running?
s

sparse-insurance-40223

11/08/2018, 9:31 AM
0.16.3 i think? I updated yesterday
c

creamy-potato-29402

11/08/2018, 9:31 AM
Of
@pulumi/kubernetes
I mean
s

sparse-insurance-40223

11/08/2018, 9:32 AM
hmm.. i just ran up and it's created them lol
i seem to have some strange situation where it requires 3 ups to complete things
i had to do 2 yesterday
c

creamy-potato-29402

11/08/2018, 9:33 AM
it would be in your package.json file
actually check package-lock.json though
so I can see what it resolved to
s

sparse-insurance-40223

11/08/2018, 9:33 AM
"@echoing-match-29901/kubernetes": { "version": "0.17.4", "resolved": "https://registry.npmjs.org/@pulumi/kubernetes/-/kubernetes-0.17.4.tgz",
c

creamy-potato-29402

11/08/2018, 9:33 AM
ok looks good.
s

sparse-insurance-40223

11/08/2018, 9:33 AM
goddamn i hate that slack replace for the ~@
c

creamy-potato-29402

11/08/2018, 9:33 AM
that means it’s probably a bug. 🙂
lol I’m not sure whoh that pings, but it’s not me.
s

sparse-insurance-40223

11/08/2018, 9:34 AM
hah
c

creamy-potato-29402

11/08/2018, 9:34 AM
anyway, can you share the output of
pulumi up
?
if you have a small program youu’re willing to share (even over DM) I can try to repro and look into it before I go to sleep
2 Views