Open kosta1221 opened 2 years ago
@kosta1221: This issue is currently awaiting triage.
If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted
label and provide further guidance.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/remove-lifecycle stale
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
What do you want to happen?
I have a use case where I want to store additional (custom) info per path in a rule. Currently the default nginx template produces
location
blocks in a limiting way. I would like to be able to parse additional properties about the backend supplied to the ingress itself, by using a CRD perhaps instead of the Ingress resource.The relevant flow in
location
blocks production by the template:getIngressInformation
method which parses the Ingress resource itself with 3 params: ingress, host and path. Host and path allow this method to get info about the specific backend.nginx vars in the
location
block which correspond to a specific backend are:$location_path
,$service-name
and$service-port
which are whatHTTPIngressPath
consists of. If I add a custom prop per backend, and the go code which parses the resource yaml could somehow handle that to be used in a custom template or even in the default one, that could be very powerful.Example Ingress yaml (this can perhaps be an extension of Ingress via CRD):
In the custom template
/etc/nginx/template/nginx.tmpl
(or maybe even written generically to be supported in the default one):Is there currently another issue associated with this?
Not that I have found one