https://pulumi.com logo
Title
r

rhythmic-whale-48997

03/25/2022, 9:55 AM
I'm trying to use Command and run something on the create. There is already an EKS cluster and I have it's kubeconfig From the example on https://www.pulumi.com/registry/packages/command/#graceful-cleanup-of-workloads-in-a-kubernetes-cluster I'm getting an error
environment[KUBECONFIG] value: An error occurred decoding 'command.environment[KUBECONFIG] value': Cannot decode Object{} to type string; it isn't a struct, and no custom decoder exists
Is there some better way to provide kubeconfig to the command and I would like to avoid having it on filesystem.
q

quiet-wolf-18467

03/25/2022, 10:24 AM
I don’t believe there's any other way to configure a Kubernetes client I'm afraid
r

rhythmic-whale-48997

03/25/2022, 11:05 AM
Then I would suggest to change the example since this will always throw an error and kubeconfig that is returned from EKS is in json format
q

quiet-wolf-18467

03/25/2022, 11:07 AM
Hmm. I didn't look at the example. Yeah, that doesn't seem right. I'd be really surprised if that worked. I'll do some tests and get this fixed. Thanks @rhythmic-whale-48997
👍 1