Description
Currently, the readUpstreamsFromCluster function in the Gloo Edge provider is a stub and returns no Upstreams when reading from a Kubernetes cluster. To support full fidelity conversion and UX parity with file input, implement readUpstreamsFromCluster using the Kubernetes dynamic client to read Upstream custom resources from the cluster and properly populate serviceName, serviceNamespace, and servicePort fields.
File Upstream reading has already been completed and is fully functional.
Acceptance Criteria
Context
At present, the cluster loader code returns empty results, meaning cluster-driven conversions do not resolve upstream ports or service metadata. This is inconsistent with file-based conversion, which does parse and resolve upstreams.
References
- See
readUpstreamsFromFile implementation in pkg/i2gw/providers/glooedge/resource_reader.go
Description
Currently, the
readUpstreamsFromClusterfunction in the Gloo Edge provider is a stub and returns no Upstreams when reading from a Kubernetes cluster. To support full fidelity conversion and UX parity with file input, implementreadUpstreamsFromClusterusing the Kubernetes dynamic client to read Upstream custom resources from the cluster and properly populate serviceName, serviceNamespace, and servicePort fields.File Upstream reading has already been completed and is fully functional.
Acceptance Criteria
name,namespace,spec.kube.serviceName,serviceNamespace, andservicePortContext
At present, the cluster loader code returns empty results, meaning cluster-driven conversions do not resolve upstream ports or service metadata. This is inconsistent with file-based conversion, which does parse and resolve upstreams.
References
readUpstreamsFromFileimplementation inpkg/i2gw/providers/glooedge/resource_reader.go