Merge pull request #5571 from agile6v/dev

feat: support the combination of Nginx variables for annotation upstream-hash-by.
This commit is contained in:
Kubernetes Prow Robot 2020-06-01 15:10:14 -07:00 committed by GitHub
commit d061375afa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 95 additions and 22 deletions

View file

@ -39,6 +39,7 @@ func TestParse(t *testing.T) {
expected string
}{
{map[string]string{annotation: "$request_uri"}, "$request_uri"},
{map[string]string{annotation: "$request_uri$scheme"}, "$request_uri$scheme"},
{map[string]string{annotation: "false"}, "false"},
{map[string]string{}, ""},
{nil, ""},