Skip to content

Commit

Permalink
yaml: remove _NODE_[12]_ subst
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Skrzypczak <[email protected]>
  • Loading branch information
sknat committed Oct 9, 2023
1 parent 8656efe commit d5fb500
Show file tree
Hide file tree
Showing 15 changed files with 2 additions and 32 deletions.
4 changes: 2 additions & 2 deletions test/scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ test_apply ()
k_create_namespace $NAME

export VPP_DATAPLANE_DIRECTORY=$VPP_DATAPLANE_DIRECTORY
sed -e "s/_NODE_1_/${NODES[0]}/" -e "s/_NODE_2_/${NODES[1]}/" $YAML_FILE | \
cat $YAML_FILE | \
envsubst | \
kubectl apply -f -
}
Expand All @@ -128,7 +128,7 @@ test_delete ()
echo "${YAML_FILE} doesnt exist"
exit 1
fi
sed -e "s/_NODE_1_/${NODES[0]}/" -e "s/_NODE_2_/${NODES[1]}/" $YAML_FILE | \
cat $YAML_FILE | \
kubectl delete -f -
k_delete_namespace $1
}
Expand Down
2 changes: 0 additions & 2 deletions test/yaml/envoy/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ spec:
name: envoyyaml
- mountPath: /etc/vpp/vcl.conf
name: vclconf
nodeName: _NODE_1_
volumes:
- name: hostuser
hostPath:
Expand Down Expand Up @@ -68,7 +67,6 @@ spec:
name: hostuser
- mountPath: /etc/envoy/envoy.yaml
name: envoyyaml
nodeName: _NODE_1_
volumes:
- name: hostuser
hostPath:
Expand Down
4 changes: 0 additions & 4 deletions test/yaml/iperf/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ spec:
initialDelaySeconds: 3
periodSeconds: 5
timeoutSeconds: 3
nodeName: _NODE_1_
---
apiVersion: apps/v1
kind: ReplicaSet
Expand Down Expand Up @@ -61,7 +60,6 @@ spec:
initialDelaySeconds: 3
periodSeconds: 5
timeoutSeconds: 3
nodeName: _NODE_1_
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -193,7 +191,6 @@ spec:
ports:
- containerPort: 5001
- containerPort: 5003
nodeName: _NODE_2_
---
apiVersion: v1
kind: Pod
Expand All @@ -208,4 +205,3 @@ spec:
ports:
- containerPort: 5001
- containerPort: 5003
nodeName: _NODE_1_
2 changes: 0 additions & 2 deletions test/yaml/iperf/test_single.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ spec:
ports:
- containerPort: 5001
- containerPort: 5003
nodeName: _NODE_1_
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -54,4 +53,3 @@ spec:
ports:
- containerPort: 5001
- containerPort: 5003
nodeName: _NODE_2_
4 changes: 0 additions & 4 deletions test/yaml/iperf/test_v4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ spec:
initialDelaySeconds: 3
periodSeconds: 5
timeoutSeconds: 3
nodeName: _NODE_1_
---
apiVersion: apps/v1
kind: ReplicaSet
Expand Down Expand Up @@ -61,7 +60,6 @@ spec:
initialDelaySeconds: 3
periodSeconds: 5
timeoutSeconds: 3
nodeName: _NODE_1_
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -150,7 +148,6 @@ spec:
ports:
- containerPort: 5001
- containerPort: 5003
nodeName: _NODE_2_
---
apiVersion: v1
kind: Pod
Expand All @@ -165,4 +162,3 @@ spec:
ports:
- containerPort: 5001
- containerPort: 5003
nodeName: _NODE_1_
4 changes: 0 additions & 4 deletions test/yaml/iperf/test_v6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ spec:
initialDelaySeconds: 3
periodSeconds: 5
timeoutSeconds: 3
nodeName: _NODE_1_
---
apiVersion: apps/v1
kind: ReplicaSet
Expand Down Expand Up @@ -61,7 +60,6 @@ spec:
initialDelaySeconds: 3
periodSeconds: 5
timeoutSeconds: 3
nodeName: _NODE_1_
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -151,7 +149,6 @@ spec:
ports:
- containerPort: 5001
- containerPort: 5003
nodeName: _NODE_2_
---
apiVersion: v1
kind: Pod
Expand All @@ -166,4 +163,3 @@ spec:
ports:
- containerPort: 5001
- containerPort: 5003
nodeName: _NODE_1_
4 changes: 0 additions & 4 deletions test/yaml/iperf3-vcl/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ spec:
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5201
nodeName: _NODE_1_
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -52,7 +51,6 @@ spec:
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5201
nodeName: _NODE_2_
---
apiVersion: v1
kind: Pod
Expand All @@ -68,5 +66,3 @@ spec:
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5201
nodeName: _NODE_1_

2 changes: 0 additions & 2 deletions test/yaml/iperf3/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ spec:
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5201
nodeName: _NODE_1_

---
apiVersion: v1
Expand Down Expand Up @@ -67,4 +66,3 @@ spec:
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5201
nodeName: _NODE_2_
1 change: 0 additions & 1 deletion test/yaml/metallb/test_metallb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ metadata:
subsets:
- addresses:
- ip: 10.10.186.88
nodeName: node1
ports:
- port: 9376
---
Expand Down
1 change: 0 additions & 1 deletion test/yaml/nginx/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ spec:
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
nodeName: _NODE_1_
---
apiVersion: v1
kind: Service
Expand Down
1 change: 0 additions & 1 deletion test/yaml/scalepods/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ spec:
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
nodeName: _NODE_1_
---
apiVersion: v1
kind: Service
Expand Down
2 changes: 0 additions & 2 deletions test/yaml/simple-vcl/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ spec:
- name: simple-client
image: calicovpp/test-simple-vcl
imagePullPolicy: IfNotPresent
nodeName: _NODE_2_
---
apiVersion: v1
kind: Pod
Expand All @@ -25,4 +24,3 @@ spec:
- name: simple-client
image: calicovpp/test-simple-vcl
imagePullPolicy: IfNotPresent
nodeName: _NODE_1_
1 change: 0 additions & 1 deletion test/yaml/testpmd/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ spec:
volumeMounts:
- mountPath: /hugepages
name: hugepage
nodeName: _NODE_1_
volumes:
- name: hugepage
emptyDir:
Expand Down
1 change: 0 additions & 1 deletion test/yaml/trex/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ spec:
volumeMounts:
- mountPath: /hugepages
name: hugepage
nodeName: _NODE_2_
volumes:
- name: hugepage
emptyDir:
Expand Down
1 change: 0 additions & 1 deletion test/yaml/wrk/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ spec:
imagePullPolicy: IfNotPresent
securityContext:
privileged: true
nodeName: _NODE_2_
---

0 comments on commit d5fb500

Please sign in to comment.