I'm trying to use Command and run something on the...
# kubernetes
r
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
I don’t believe there's any other way to configure a Kubernetes client I'm afraid
r
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
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