bitnami / kube-libsonnet

Bitnami's jsonnet library for building Kubernetes manifests
https://bitnami.com
Apache License 2.0
174 stars 50 forks source link

Don't crash when the ingress rule has no `path`. #57

Closed robbrit closed 3 years ago

robbrit commented 3 years ago

The path attribute is optional for k8s ingresses (it defaults to /), however the library here crashes if it's not specified.

The relative path check is only useful if path is specified, so add a check to see if it's there before attempting to read it.

parabolala commented 3 years ago

See also #54