Hello there! I started a thread in the <#C01PF3E1B...
# kubernetes
r
Hello there! I started a thread in the #C01PF3E1B8V channel which leads me here today; i’m facing trouble with the use of Kubernetes objects from traefik’s CRDs. To keep it simple, the following in my
Pulumi.yaml
file:
Copy code
resources:
  whoamiHttpIngressRoute:
    type: kubernetes:<http://traefik.containo.us/v1alpha1:IngressRoute|traefik.containo.us/v1alpha1:IngressRoute>
    properties:
      metadata:
        namespace: ${namespace}
        name: http--who-am-i
      spec:
        entryPoints:
          - http
        routes:
          - match: Host(`<http://whoami.example.com|whoami.example.com>`) && PathPrefix(`/notls`)
            kind: Rule
            services:
              - name: whoami
                port: 80
raises an error as follows:
Copy code
Error: error resolving type of resource whoamiHttpIngressRoute: unable to find resource type "kubernetes:<http://traefik.containo.us/v1alpha1:IngressRoute|traefik.containo.us/v1alpha1:IngressRoute>" in resource provider "kubernetes"
      on Pulumi.yaml line 43:
      43:     type: kubernetes:<http://traefik.containo.us/v1alpha1:IngressRoute|traefik.containo.us/v1alpha1:IngressRoute>
Said CRDs can be found here: https://raw.githubusercontent.com/traefik/traefik/v3.1/docs/content/reference/dynamic-configuration/kubernetes-crd-definition-v1.yml Could anyone point me in the right direction to get my resources types from CRDs right? Or, if that isn’t possible and if I need to create a new pulumi provider, perhaps provide a few pointers as to how do so ideally with
pulumi-yaml
?
Here is the link to my first post, just in case: https://pulumi-community.slack.com/archives/C01PF3E1B8V/p1723065992615119
h
unfortunately customresources like this aren’t supported in yaml. we’re currently working on some stuff in this area that might be helpful but i can’t give you a timeline at the moment. if you’d be interested in testing it out let me know!
👍 1
r
Darn. Alright. I’ll have to figure out a way. Thanks for making things clear! I’d have been delighted to test it out and help, but I’m currently short on time. I’ll definitely reach out if my schedule clears up though!
👍 1