kubernetes-sigs / ingress2gateway

Convert Ingress resources to Gateway API resources
Apache License 2.0
327 stars 54 forks source link

ingress-contour Support #143

Open pgold30 opened 4 months ago

pgold30 commented 4 months ago

contour projectcontour.io/ingress/ingress-contour-contour What would you like to be added: We would like to migrate Countour-envoy provider , is not listed on the existing 3 Why this is needed: this will help us migrating a lot of our existing

We are getting error `...go/bin/ingress2gateway print -n backend 6s Error: failed to read istio resources from the cluster: failed to read resources from cluster: failed to read gateways: failed to list istio gateways: failed to get API group resources: unable to retrieve the complete list of server APIs: networking.istio.io/v1beta1: the server could not find the requested resource Usage: ingress2gateway print [flags]

Flags: -A, --all-namespaces If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace. -h, --help help for print --input_file string Path to the manifest file. When set, the tool will read ingresses from the file instead of reading from the cluster. Supported files are yaml and json -n, --namespace string If present, the namespace scope for this CLI request -o, --output string Output format. One of: (json, yaml) (default "yaml") --providers strings If present, the tool will try to convert only resources related to the specified providers, supported values are [ingress-nginx istio kong apisix] (default [kong,apisix,ingress-nginx,istio])`

LiorLieberman commented 4 months ago

The error your are getting is related to https://github.com/kubernetes-sigs/ingress2gateway/issues/138

In the meantime, you can solve it by specifying the provider/s you need with the flag.

/cc @sunjayBhatia for contour support request

pgold30 commented 4 months ago

Hi @LiorLieberman @sunjayBhatia Countour is not in the list of supported providers , so we can not select it , this is for adding that provider to the supported ones

LiorLieberman commented 3 months ago

To add the provider for the supported providers, someone need to implement the provider specific logic. Thats the reason I cc'd @sunjayBhatia

Regardless of contour support, I explained why you are getting an error.

sunjayBhatia commented 3 months ago

Yep, I haven't had a lot of bandwidth to implement contour support in ingress2gateway, but if there is a willing contributor I would definitely help shepherd the changes!

ipsum-0320 commented 3 months ago

Yep, I haven't had a lot of bandwidth to implement contour support in ingress2gateway, but if there is a willing contributor I would definitely help shepherd the changes!是的,我没有足够的带宽来在 ingress2gateway 中实现轮廓支持,但如果有愿意的贡献者,我肯定会帮助引导这些更改!

@sunjayBhatia @LiorLieberman hi, i want to give it a try, can u tell me how to finish it?

ipsum-0320 commented 3 months ago

/assign