sharingio / pair

A shareable pairing environment
https://pair.sharing.io
Apache License 2.0
11 stars 1 forks source link

Add Knative Ingress listing support #147

Closed BobyMCbobs closed 2 years ago

BobyMCbobs commented 2 years ago

Adds support for listing of Knative services and domains on the instance page

BobyMCbobs commented 2 years ago

Build: https://gitlab.com/sharingio/pair/-/pipelines/527581949

BobyMCbobs commented 2 years ago

Knative Services and DomainMappings show up along side ingress/v1 mappings.

From the API:

...
    {
      "protocol": "http",
      "host": "cows.are.cool",
      "url": "http://cows.are.cool",
      "source": "ingresses.networking.internal.knative.dev/v1alpha1",
      "ingressClass": ""
    },
    {
      "protocol": "http",
      "host": "cows.bobymcbobs.caleb-tests-repos.pair.bobymcbobs.pair.sharing.io",
      "url": "http://cows.bobymcbobs.caleb-tests-repos.pair.bobymcbobs.pair.sharing.io",
      "source": "ingresses.networking.internal.knative.dev/v1alpha1",
      "ingressClass": ""
    },
    {
      "protocol": "https",
      "host": "grafana.caleb-tests-repos.pair.bobymcbobs.pair.sharing.io",
      "url": "https://grafana.caleb-tests-repos.pair.bobymcbobs.pair.sharing.io",
      "source": "ingresses.networking.k8s.io/v1",
      "ingressClass": ""
    },
...