rapid-advantage-25766
08/08/2024, 2:03 PMPulumi.yaml
file:
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:
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
?rapid-advantage-25766
08/08/2024, 2:06 PMhallowed-photographer-31251
08/08/2024, 8:05 PMrapid-advantage-25766
08/09/2024, 8:46 AM