Add support for rewrite

This commit is contained in:
Manuel de Brito Fontes 2016-05-25 18:04:34 -03:00
parent 6968e23f8d
commit 95e85b57e3
6 changed files with 371 additions and 0 deletions

View file

@ -16,6 +16,10 @@ limitations under the License.
package nginx
import (
"k8s.io/contrib/ingress/controllers/nginx/nginx/rewrite"
)
// IngressConfig describes an NGINX configuration
type IngressConfig struct {
Upstreams []*Upstream
@ -88,6 +92,7 @@ type Location struct {
Path string
IsDefBackend bool
Upstream Upstream
Redirect rewrite.Redirect
}
// LocationByPath sorts location by path