Commit 44c33a70 authored by Geoff Simmons's avatar Geoff Simmons

Use IngressClass in the helm tests/examples, all passing e2e tests.

parent 4ec1e4a4
...@@ -2,10 +2,6 @@ nameOverride: varnish-ingress ...@@ -2,10 +2,6 @@ nameOverride: varnish-ingress
fullnameOverride: varnish-ingress fullnameOverride: varnish-ingress
vikingService: vikingService:
## Name of the ingress class to route through this controller
##
ingressClass: varnish
# labels to add to the pod container metadata # labels to add to the pod container metadata
podLabels: podLabels:
app: varnish-ingress app: varnish-ingress
...@@ -2,10 +2,6 @@ nameOverride: varnish-ingress ...@@ -2,10 +2,6 @@ nameOverride: varnish-ingress
fullnameOverride: varnish-ingress fullnameOverride: varnish-ingress
vikingService: vikingService:
## Name of the ingress class to route through this controller
##
ingressClass: varnish
# labels to add to the pod container metadata # labels to add to the pod container metadata
podLabels: podLabels:
app: varnish-ingress app: varnish-ingress
...@@ -4,8 +4,8 @@ apps: ...@@ -4,8 +4,8 @@ apps:
replicas: 2 replicas: 2
ingress: ingress:
class: varnish-coffee-class
name: coffee-ingress name: coffee-ingress
class: varnish-coffee
rules: rules:
- host: coffee.example.com - host: coffee.example.com
paths: paths:
......
...@@ -2,7 +2,15 @@ vikingController: ...@@ -2,7 +2,15 @@ vikingController:
## Name of the ingress class to route through this controller ## Name of the ingress class to route through this controller
## ##
ingressClass: varnish-coffee ingressClass: varnish-coffee-class
## The controller only considers Ingresses that specify an
## IngressClass with this value in its spec.controller field. If
## that IngressClass is also specified as the cluster default, the
## controller will assume it for Ingresses that do not specify an
## IngressClass.
##
ingressClassController: varnish-coffee/ingress-controller
# labels to add to the pod container metadata # labels to add to the pod container metadata
podLabels: podLabels:
......
vikingService: vikingService:
## Name of the ingress class to route through this controller
##
ingressClass: varnish
# labels to add to the pod container metadata # labels to add to the pod container metadata
podLabels: podLabels:
app: varnish-ingress app: varnish-ingress
...@@ -30,9 +30,9 @@ varnishtest ${TESTOPTS} -Dcoffeeport=${COFFEEPORT} -Dteaport=${TEAPORT} cafe.vtc ...@@ -30,9 +30,9 @@ varnishtest ${TESTOPTS} -Dcoffeeport=${COFFEEPORT} -Dteaport=${TEAPORT} cafe.vtc
CTLPOD=$(kubectl get pods -n kube-system -l app=varnish-ingress-controller,example!=coffee -o jsonpath={.items[0].metadata.name}) CTLPOD=$(kubectl get pods -n kube-system -l app=varnish-ingress-controller,example!=coffee -o jsonpath={.items[0].metadata.name})
# Match the logs # Match the logs
kubectl logs -n kube-system $CTLPOD | grep -q 'Ingress class:varnish' kubectl logs -n kube-system $CTLPOD | grep -q 'Ingress class:viking.uplex.de/ingress-controller'
kubectl logs -n kube-system $CTLPOD | grep -q 'Ingress cafe/tea-ingress configured for Varnish Service cafe/varnish-tea' kubectl logs -n kube-system $CTLPOD | grep -q 'Ingress cafe/tea-ingress configured for Varnish Service cafe/varnish-tea'
kubectl logs -n kube-system $CTLPOD | grep -q "Ignoring Ingress cafe/coffee-ingress, Annotation 'kubernetes.io/ingress.class' absent or is not 'varnish'" kubectl logs -n kube-system $CTLPOD | grep -q "Ignoring Ingress cafe/coffee-ingress, IngressClass 'varnish-coffee-class' does not specify 'viking.uplex.de/ingress-controller'"
# Parse the coffee controller log for these lines # Parse the coffee controller log for these lines
# Ingress class:varnish-coffee # Ingress class:varnish-coffee
...@@ -43,6 +43,6 @@ kubectl logs -n kube-system $CTLPOD | grep -q "Ignoring Ingress cafe/coffee-ingr ...@@ -43,6 +43,6 @@ kubectl logs -n kube-system $CTLPOD | grep -q "Ignoring Ingress cafe/coffee-ingr
CTLPOD=$(kubectl get pods -n kube-system -l app=varnish-ingress-controller -l example=coffee -o jsonpath={.items[0].metadata.name}) CTLPOD=$(kubectl get pods -n kube-system -l app=varnish-ingress-controller -l example=coffee -o jsonpath={.items[0].metadata.name})
# Match the logs # Match the logs
kubectl logs -n kube-system $CTLPOD | grep -q 'Ingress class:varnish-coffee' kubectl logs -n kube-system $CTLPOD | grep -q 'Ingress class:varnish-coffee/ingress-controller'
kubectl logs -n kube-system $CTLPOD | grep -q 'Ingress cafe/coffee-ingress configured for Varnish Service cafe/varnish-coffee' kubectl logs -n kube-system $CTLPOD | grep -q 'Ingress cafe/coffee-ingress configured for Varnish Service cafe/varnish-coffee'
kubectl logs -n kube-system $CTLPOD | grep -q "Ignoring Ingress cafe/tea-ingress, Annotation 'kubernetes.io/ingress.class' absent or is not 'varnish-coffee'" kubectl logs -n kube-system $CTLPOD | grep -q "Ignoring Ingress cafe/tea-ingress, IngressClass 'viking-controller.uplex.de' does not specify 'varnish-coffee/ingress-controller'"
vikingService: vikingService:
## Name of the ingress class to route through this controller
##
ingressClass: varnish
# labels to add to the pod container metadata # labels to add to the pod container metadata
podLabels: podLabels:
app: varnish-ingress app: varnish-ingress
vikingService: vikingService:
## Name of the ingress class to route through this controller
##
ingressClass: varnish
kind: StatefulSet kind: StatefulSet
persistentVolume: persistentVolume:
enabled: true enabled: true
......
...@@ -2,7 +2,15 @@ vikingController: ...@@ -2,7 +2,15 @@ vikingController:
## Name of the ingress class to route through this controller ## Name of the ingress class to route through this controller
## ##
ingressClass: varnish ingressClass: varnish-ns
## The controller only considers Ingresses that specify an
## IngressClass with this value in its spec.controller field. If
## that IngressClass is also specified as the cluster default, the
## controller will assume it for Ingresses that do not specify an
## IngressClass.
##
ingressClassController: varnish-ns/ingress-controller
## Only listen for resources in this namespace (default all) ## Only listen for resources in this namespace (default all)
namespace: varnish-ingress namespace: varnish-ingress
......
...@@ -4,10 +4,6 @@ vikingService: ...@@ -4,10 +4,6 @@ vikingService:
varnish: varnish:
extraArgs: [] extraArgs: []
## Name of the ingress class to route through this controller
##
ingressClass: varnish
# labels to add to the pod container metadata # labels to add to the pod container metadata
podLabels: podLabels:
app: varnish-ingress app: varnish-ingress
...@@ -4,10 +4,6 @@ vikingService: ...@@ -4,10 +4,6 @@ vikingService:
service: service:
type: LoadBalancer type: LoadBalancer
## Name of the ingress class to route through this controller
##
ingressClass: varnish
replicaCount: 1 replicaCount: 1
# labels to add to the pod container metadata # labels to add to the pod container metadata
......
...@@ -4,10 +4,6 @@ vikingService: ...@@ -4,10 +4,6 @@ vikingService:
service: service:
type: NodePort type: NodePort
## Name of the ingress class to route through this controller
##
ingressClass: varnish
replicaCount: 1 replicaCount: 1
# labels to add to the pod container metadata # labels to add to the pod container metadata
......
...@@ -10,10 +10,6 @@ vikingService: ...@@ -10,10 +10,6 @@ vikingService:
- -p - -p
- workspace_client=256k - workspace_client=256k
## Name of the ingress class to route through this controller
##
ingressClass: varnish
replicaCount: 1 replicaCount: 1
# labels to add to the pod container metadata # labels to add to the pod container metadata
......
...@@ -35,10 +35,6 @@ vikingService: ...@@ -35,10 +35,6 @@ vikingService:
- name: VARNISH_READY_PORT - name: VARNISH_READY_PORT
value: "8000" value: "8000"
## Name of the ingress class to route through this controller
##
ingressClass: varnish
replicaCount: 1 replicaCount: 1
# labels to add to the pod container metadata # labels to add to the pod container metadata
......
...@@ -9,10 +9,6 @@ vikingService: ...@@ -9,10 +9,6 @@ vikingService:
fsGroup: 998 fsGroup: 998
runAsUser: 102 runAsUser: 102
## Name of the ingress class to route through this controller
##
ingressClass: varnish
replicaCount: 1 replicaCount: 1
# labels to add to the pod container metadata # labels to add to the pod container metadata
......
...@@ -6,10 +6,6 @@ vikingService: ...@@ -6,10 +6,6 @@ vikingService:
- name: PROTO - name: PROTO
value: PROXY value: PROXY
## Name of the ingress class to route through this controller
##
ingressClass: varnish
replicaCount: 1 replicaCount: 1
# labels to add to the pod container metadata # labels to add to the pod container metadata
......
vikingController: vikingController:
ingressClass: viking-probeCfg ingressClass: viking-probe-cfg
ingressClassController: viking-probe-cfg/ingress-controller
namespace: probe-cfg namespace: probe-cfg
......
...@@ -10,7 +10,7 @@ apps: ...@@ -10,7 +10,7 @@ apps:
ingress: ingress:
name: probe-cfg-ingress name: probe-cfg-ingress
class: viking-probeCfg class: viking-probe-cfg
rules: rules:
- host: cafe.example.com - host: cafe.example.com
paths: paths:
......
vikingController: vikingController:
ingressClass: viking-dev ingressClass: viking-dev
ingressClassController: viking-dev.uplex.de/ingress-controller
namespace: dev namespace: dev
......
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