translate_ingress

Function translate_ingress 

Source
pub fn translate_ingress(
    ingresses: &[Ingress],
    ingress_class: &str,
    endpoints: &HashMap<String, Vec<Endpoint>>,
) -> Result<TranslationResult, String>
Expand description

Translate Ingress resources into a dwara Gateway config.

ingresses are the Ingress resources. ingress_class is the configured class name (only Ingresses with spec.ingressClassName matching this, or with no class name when the class is the default, are translated). endpoints is a map from <namespace>/<service-name>:<port> to endpoint addresses.