Add context into for sink service selector 31/71431/1
authorVictor Morales <victor.morales@intel.com>
Mon, 29 Oct 2018 18:01:55 +0000 (11:01 -0700)
committerVictor Morales <victor.morales@intel.com>
Mon, 29 Oct 2018 18:01:55 +0000 (11:01 -0700)
In order to narrow down the number of the endpoints to one. This
change provides a context in the selector section.

Change-Id: If1ebe744fc43ad9ec6ebbc513f397e55dae13dd9
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

vagrant/tests/_common.sh

index a8f01ba..ac226da 100755 (executable)
@@ -226,6 +226,7 @@ spec:
     nodePort: 30667
   selector:
     app: vFirewall
+    context: darkstat
 SERVICE
 
     cat << INGRESS > sink-ingress.yaml
@@ -455,10 +456,12 @@ spec:
   selector:
     matchLabels:
       app: vFirewall
+      context: darkstat
   template:
     metadata:
       labels:
         app: vFirewall
+        context: darkstat
       annotations:
         k8s.v1.cni.cncf.io/networks: '[
             { "name": "protected-private-net-cidr", "interfaceRequest": "eth1" },