Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
k8s-ingress
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
uplex-varnish
k8s-ingress
Commits
80728f19
Commit
80728f19
authored
Mar 08, 2019
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Host header match for Ingress rules ignores port numbers.
Closes #9
parent
16a28709
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
backendcfg.golden
pkg/varnish/vcl/testdata/backendcfg.golden
+2
-2
custom_vcl.golden
pkg/varnish/vcl/testdata/custom_vcl.golden
+2
-2
ingress_shard.golden
pkg/varnish/vcl/testdata/ingress_shard.golden
+2
-2
ingressrule.golden
pkg/varnish/vcl/testdata/ingressrule.golden
+2
-2
vcl.tmpl
pkg/varnish/vcl/vcl.tmpl
+2
-2
No files found.
pkg/varnish/vcl/testdata/backendcfg.golden
View file @
80728f19
...
@@ -110,8 +110,8 @@ backend vk8s_tea-svc_192_0_2_3 {
...
@@ -110,8 +110,8 @@ backend vk8s_tea-svc_192_0_2_3 {
sub vcl_init {
sub vcl_init {
new vk8s_hosts = re2.set(
posix_syntax=true, literal=true,
anchor=both);
new vk8s_hosts = re2.set(anchor=both);
vk8s_hosts.add("
cafe.example.com
");
vk8s_hosts.add("
\Qcafe.example.com\E(:\d+)?
");
vk8s_hosts.compile();
vk8s_hosts.compile();
new vk8s_coffee-svc_director = directors.random();
new vk8s_coffee-svc_director = directors.random();
...
...
pkg/varnish/vcl/testdata/custom_vcl.golden
View file @
80728f19
...
@@ -33,8 +33,8 @@ backend vk8s_tea-svc_192_0_2_3 {
...
@@ -33,8 +33,8 @@ backend vk8s_tea-svc_192_0_2_3 {
sub vcl_init {
sub vcl_init {
new vk8s_hosts = re2.set(
posix_syntax=true, literal=true,
anchor=both);
new vk8s_hosts = re2.set(anchor=both);
vk8s_hosts.add("
cafe.example.com
");
vk8s_hosts.add("
\Qcafe.example.com\E(:\d+)?
");
vk8s_hosts.compile();
vk8s_hosts.compile();
new vk8s_coffee-svc_director = directors.round_robin();
new vk8s_coffee-svc_director = directors.round_robin();
...
...
pkg/varnish/vcl/testdata/ingress_shard.golden
View file @
80728f19
...
@@ -33,8 +33,8 @@ backend vk8s_tea-svc_192_0_2_3 {
...
@@ -33,8 +33,8 @@ backend vk8s_tea-svc_192_0_2_3 {
sub vcl_init {
sub vcl_init {
new vk8s_hosts = re2.set(
posix_syntax=true, literal=true,
anchor=both);
new vk8s_hosts = re2.set(anchor=both);
vk8s_hosts.add("
cafe.example.com
");
vk8s_hosts.add("
\Qcafe.example.com\E(:\d+)?
");
vk8s_hosts.compile();
vk8s_hosts.compile();
new vk8s_coffee-svc_director = directors.round_robin();
new vk8s_coffee-svc_director = directors.round_robin();
...
...
pkg/varnish/vcl/testdata/ingressrule.golden
View file @
80728f19
...
@@ -33,8 +33,8 @@ backend vk8s_tea-svc_192_0_2_3 {
...
@@ -33,8 +33,8 @@ backend vk8s_tea-svc_192_0_2_3 {
sub vcl_init {
sub vcl_init {
new vk8s_hosts = re2.set(
posix_syntax=true, literal=true,
anchor=both);
new vk8s_hosts = re2.set(anchor=both);
vk8s_hosts.add("
cafe.example.com
");
vk8s_hosts.add("
\Qcafe.example.com\E(:\d+)?
");
vk8s_hosts.compile();
vk8s_hosts.compile();
new vk8s_coffee-svc_director = directors.round_robin();
new vk8s_coffee-svc_director = directors.round_robin();
...
...
pkg/varnish/vcl/vcl.tmpl
View file @
80728f19
...
@@ -80,9 +80,9 @@ backend {{backendName $svc $addr.IP}} {
...
@@ -80,9 +80,9 @@ backend {{backendName $svc $addr.IP}} {
sub vcl_init {
sub vcl_init {
{{- if .Rules}}
{{- if .Rules}}
new vk8s_hosts = re2.set(
posix_syntax=true, literal=true,
anchor=both);
new vk8s_hosts = re2.set(anchor=both);
{{- range $rule := .Rules}}
{{- range $rule := .Rules}}
vk8s_hosts.add("
{{$rule.Host}}
");
vk8s_hosts.add("
\Q{{$rule.Host}}\E(:\d+)?
");
{{- end}}
{{- end}}
vk8s_hosts.compile();
vk8s_hosts.compile();
{{end}}
{{end}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment