Commit 70a28d23 authored by Tim Leers's avatar Tim Leers

Add more examples, split each example in a seperate job

parent 588f1eca
......@@ -66,7 +66,121 @@ build:controller:
- docker push $CI_REGISTRY/timleers/k8s-ingress/varnish-ingress/$IMAGE:$CI_COMMIT_SHA
- docker push $CI_REGISTRY/timleers/k8s-ingress/varnish-ingress/$IMAGE:latest
integration:
example:hello:
extends: .integration-tests
script:
- cd ../examples/hello
- ./deploy.sh
- ./verify.sh
- ./undeploy.sh
example:namespace:
extends: .integration-tests
script:
- cd ../examples/namespace
- ./deploy.sh
- ./verify.sh
- ./undeploy.sh
example:architectures:cluster-and-ns-wide:
extends: .integration-tests
script:
- cd ../examples/architectures/cluster-and-ns-wide
- ./deploy.sh
- ./verify.sh
- ./undeploy.sh
example:architectures:clusterwide:
extends: .integration-tests
script:
- cd ../examples/architectures/clusterwide
- ./deploy.sh
- ./verify.sh
- ./undeploy.sh
example:architectures:multi-controller:
extends: .integration-tests
script:
- cd ../examples/architectures/multi-controller
- ./deploy.sh
- ./verify.sh
- ./undeploy.sh
example:architectures:multi-varnish-ns:
extends: .integration-tests
script:
- cd ../examples/architectures/multi-varnish-ns
- ./deploy.sh
- ./verify.sh
- ./undeploy.sh
example:acl:
extends: .integration-tests
script:
- cd ../examples/acl
- ./deploy.sh
- ./verify.sh
- ./undeploy.sh
example:backend-config:
extends: .integration-tests
script:
- cd ../examples/backend-config
- ./deploy.sh
- ./verify.sh
- ./undeploy.sh
example:custom-vcl:
extends: .integration-tests
script:
- cd ../examples/custom-vcl
- ./deploy.sh
- ./verify.sh
- ./undeploy.sh
example:rewrite:
extends: .integration-tests
script:
- cd ../examples/rewrite
- ./deploy.sh
- ./verify.sh
- ./undeploy.sh
example:self-sharding:
extends: .integration-tests
script:
- cd ../examples/self-sharding
- ./deploy.sh
- ./verify.sh
- ./undeploy.sh
example:authentication:basic:
extends: .integration-tests
script:
- cd ../examples/authentication
- ./deploy_basic_auth.sh
- ./verify_basic_auth.sh
- ./undeploy_basic_auth.sh
example:authentication:acl-or-auth:
extends: .integration-tests
script:
- cd ../examples/authentication
- ./deploy_acl_or_auth.sh
- ./verify_acl_or_auth.sh
- ./undeploy_acl_or_auth.sh
example:authentication:proxy:
extends: .integration-tests
script:
- cd ../examples/authentication
- ./deploy_proxy_auth.sh
- ./verify_proxy_auth.sh
- ./undeploy_proxy_auth.sh
# TODO
# req-disposition
# varnish_pod_template
.integration-tests:
needs: ["build:controller"]
stage: e2e
image: docker:19.03.8
......@@ -90,7 +204,6 @@ integration:
- kubectl get nodes -o wide
- kubectl get pods --all-namespaces -o wide
- kubectl get services --all-namespaces -o wide
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker pull $CI_REGISTRY/timleers/k8s-ingress/varnish-ingress/controller:$CI_COMMIT_SHA
# using varnish and haproxy 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
......@@ -106,13 +219,6 @@ integration:
- ./init.sh
- ./deploy.sh
- ./verify.sh
- cd ../examples/hello
- ./deploy.sh
- ./verify.sh
- ./undeploy.sh
# as long as tls is in WIP we only test deployment
# - test/e2e.sh
# basic step for a pipeline to build the varnish image
.build-haproxy:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment