https://pulumi.com logo
Title
b

boundless-angle-56560

06/23/2021, 2:05 PM
Hi All, I am trying to deploy some CRDs on AWS EKS Kubernetes and getting following error:
kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinition (ingressclassparams.elbv2.k8s.aws): error: unrecognized resource type (Check): kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinition
seems like pulumi doesn't understand some resource types
b

billowy-army-68599

06/23/2021, 2:11 PM
Can you share your code?
b

boundless-angle-56560

06/23/2021, 2:12 PM
def remove_status(obj, opts):
if obj["kind"] == "CustomResourceDefinition":
del obj["status"]
crd_defs = k8s.yaml.ConfigFile("my-eks-defs",
file="eks_crds.yml",
transformations=[remove_status],
opts=ResourceOptions(provider=provider.pabk_dev))
slack really is horrible
b

billowy-army-68599

06/23/2021, 2:14 PM
What version is your eks cluster?
b

boundless-angle-56560

06/23/2021, 2:14 PM
1.19 eks
b

billowy-army-68599

06/23/2021, 2:57 PM
what's the content of
eks_crds.yml
?
b

boundless-angle-56560

06/23/2021, 3:04 PM
here is the file, its rather large pile of yaml definitions
b

billowy-army-68599

06/23/2021, 3:08 PM
where do you define your provider?
b

boundless-angle-56560

06/23/2021, 3:15 PM
provider for manipulating with k8s resources is like this:
kubecfg = dev_second_eks_util.generate_kube_config(eks_cluster) prov = k8s.Provider("k8s-provider", kubeconfig=kubecfg,)
oh, wait
I have my "aws" provider specified for that ConfigFile resource!
instead of my k8s provider
this is probably wrong
b

billowy-army-68599

06/23/2021, 3:29 PM
it is 😄
b

boundless-angle-56560

06/23/2021, 3:38 PM
yeah, now its doing something 🙂 apologize for silly mistake