https://github.com/stevesloka/contour-client-example
Example showing how to import the Contour client to manage IngressRoute CRD's
https://github.com/stevesloka/contour-client-example
Last synced: 3 months ago
JSON representation
Example showing how to import the Contour client to manage IngressRoute CRD's
- Host: GitHub
- URL: https://github.com/stevesloka/contour-client-example
- Owner: stevesloka
- License: apache-2.0
- Created: 2018-09-25T18:15:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-26T14:24:17.000Z (over 6 years ago)
- Last Synced: 2025-01-25T06:12:30.775Z (5 months ago)
- Language: Go
- Size: 3.8 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Contour Client Example
This repo is a very simple example of how to import the Contour client to manage IngressRoute CRD's.
# Sample Output
```sh
$ go run main.go --kubecfg-file=/Users/stevesloka/.kube/aws/kubeconfig [14:20:28]
Got Routes: {{IngressRoute contour.heptio.com/v1beta1} {kuard default /apis/contour.heptio.com/v1beta1/namespaces/default/ingressroutes/kuard 85dade03-c0ee-11e8-a736-06b436d871a6 1023250 1 2018-09-25 14:12:11 -0400 EDT map[] map[kubectl.kubernetes.io/last-applied-configuration:{"apiVersion":"contour.heptio.com/v1beta1","kind":"IngressRoute","metadata":{"annotations":{},"name":"kuard","namespace":"default"},"spec":{"routes":[{"match":"/","services":[{"name":"node02-kuard","port":80},{"name":"node02-nginx","port":80}]}],"virtualhost":{"fqdn":"marketing.local"}}}
] [] nil [] } {0xc4203f9e60 [{/ [{node02-kuard 80 0 } {node02-nginx 80 0 }] { } false false}]} {valid valid IngressRoute}}
```