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
3e558def
Commit
3e558def
authored
Apr 27, 2020
by
Tim Leers
Committed by
Geoff Simmons
Apr 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inline commands
parent
ec13f4d6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
58 deletions
+35
-58
.gitlab-ci.yml
.gitlab-ci.yml
+33
-31
verify_cli-args.sh
examples/varnish_pod_template/verify_cli-args.sh
+1
-14
verify_proxy.sh
examples/varnish_pod_template/verify_proxy.sh
+1
-13
No files found.
.gitlab-ci.yml
View file @
3e558def
stages
:
-
test
-
build
-
e2e
-
test
test
:
image
:
golang:1.11.6
...
...
@@ -70,6 +70,7 @@ build:controller:
-
docker push $CI_REGISTRY/timleers/k8s-ingress/varnish-ingress/$IMAGE:latest
integration
:
needs
:
[
"
build:controller"
]
stage
:
e2e
image
:
docker:19.03.8
services
:
...
...
@@ -97,6 +98,7 @@ integration:
# using varnish image with latest tag due to performance. if we are changing this image a lot, we need to improve this as can lead to pulling the incorrect image
-
docker pull $CI_REGISTRY/timleers/k8s-ingress/varnish-ingress/varnish:latest
-
docker tag $CI_REGISTRY/timleers/k8s-ingress/varnish-ingress/controller:$CI_COMMIT_SHA varnish-ingress/controller
-
docker tag $CI_REGISTRY/timleers/k8s-ingress/varnish-ingress/varnish:latest varnish-ingress/ingress
-
docker tag $CI_REGISTRY/timleers/k8s-ingress/varnish-ingress/varnish:latest varnish-ingress/varnish
-
kind load docker-image varnish-ingress/varnish
-
kind load docker-image varnish-ingress/controller
-
test/e2e.sh
examples/varnish_pod_template/verify_cli-args.sh
View file @
3e558def
...
...
@@ -4,13 +4,6 @@ function killforward {
kill
$KUBEPID
}
failureCode
()
{
local
code
=
${
2
:-
500
}
local
status
=
$(
curl
--head
--location
--connect-timeout
5
--write-out
%
{
http_code
}
--silent
--output
/dev/null localhost:
${
LOCALPORT
})
[[
$status
==
${
code
}
]]
||
[[
$status
==
000
]]
}
LOCALPORT
=
${
LOCALPORT
:-
8888
}
kubectl
wait
--timeout
=
2m pod
-l
app
=
varnish-ingress,example!
=
cli-args
--for
=
delete
...
...
@@ -22,11 +15,5 @@ kubectl port-forward svc/varnish-ingress ${LOCALPORT}:80 >/dev/null &
KUBEPID
=
$!
trap
killforward EXIT
for
((
n
=
0
;
n < 20
;
n++
))
;
do
if
[[
failureCode
]]
;
then
sleep
0.5
fi
break
done
sleep
1
varnishtest
${
TESTOPTS
}
-Dlocalport
=
${
LOCALPORT
}
cafe_cli-args.vtc
examples/varnish_pod_template/verify_proxy.sh
View file @
3e558def
...
...
@@ -4,12 +4,6 @@ function killforward {
kill
$KUBEPID
}
failureCode
()
{
local
code
=
${
2
:-
500
}
local
status
=
$(
curl
--head
--location
--connect-timeout
5
--write-out
%
{
http_code
}
--silent
--output
/dev/null localhost:
${
LOCALPORT
})
[[
$status
==
${
code
}
]]
||
[[
$status
==
000
]]
}
LOCALPORT
=
${
LOCALPORT
:-
8888
}
kubectl
wait
--timeout
=
2m pod
-l
app
=
varnish-ingress,example!
=
proxy
--for
=
delete
...
...
@@ -21,11 +15,5 @@ kubectl port-forward svc/varnish-ingress ${LOCALPORT}:80 >/dev/null &
KUBEPID
=
$!
trap
killforward EXIT
for
((
n
=
0
;
n < 20
;
n++
))
;
do
if
[[
failureCode
]]
;
then
sleep
0.5
fi
break
done
sleep
1
varnishtest
${
TESTOPTS
}
-Dlocalport
=
${
LOCALPORT
}
cafe_proxy.vtc
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