I'm having an issue with kube custom resources tha...
# general
s
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
Can you expand on this?
s
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
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
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
these are custom resouces?
s
yeah
c
can you share the output of the
pulumi up
?
oh also
what version are you running?
s
0.16.3 i think? I updated yesterday
c
Of
@pulumi/kubernetes
I mean
s
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
it would be in your package.json file
actually check package-lock.json though
so I can see what it resolved to
s
"@echoing-match-29901/kubernetes": { "version": "0.17.4", "resolved": "https://registry.npmjs.org/@pulumi/kubernetes/-/kubernetes-0.17.4.tgz",
c
ok looks good.
s
goddamn i hate that slack replace for the ~@
c
that means it’s probably a bug. 🙂
lol I’m not sure whoh that pings, but it’s not me.
s
hah
c
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