From 707d4de2992f722e6079710c1a7fe2556f4f4ddd Mon Sep 17 00:00:00 2001 From: NSMBot Date: Wed, 16 Nov 2022 11:00:22 +0000 Subject: [PATCH] Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main PR link: https://github.com/networkservicemesh/deployments-k8s/pull/7772 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit: 148bae8 Author: Network Service Mesh Bot Date: 2022-11-16 02:36:52 -0600 Message: - Update go.mod and go.sum to latest version from networkservicemesh/de… Signed-off-by: NSMBot --- extensions/base/suite.go | 2 +- suites/basic/suite.gen.go | 26 +++---- suites/features/suite.gen.go | 44 ++++++------ suites/heal/suite.gen.go | 68 +++++++++---------- suites/interdomain/nsm/suite.gen.go | 4 +- .../nsm_istio_booking/suite.gen.go | 8 +-- suites/interdomain/spire/suite.gen.go | 2 +- suites/interdomain/suite.gen.go | 38 +++++------ .../external_nsc/docker/suite.gen.go | 2 +- .../external_nsc/spire/suite.gen.go | 2 +- suites/k8s_monolith/external_nsc/suite.gen.go | 4 +- .../external_nse/docker/suite.gen.go | 2 +- .../external_nse/spire/suite.gen.go | 2 +- suites/k8s_monolith/external_nse/suite.gen.go | 4 +- suites/memory/suite.gen.go | 8 +-- suites/multicluster/spire/suite.gen.go | 6 +- suites/multicluster/suite.gen.go | 40 +++++------ suites/multiforwarder/suite.gen.go | 16 ++--- suites/observability/suite.gen.go | 6 +- suites/ovs/suite.gen.go | 10 +-- suites/remotevlan/rvlanovs/suite.gen.go | 6 +- suites/remotevlan/rvlanvpp/suite.gen.go | 6 +- suites/spire/suite.gen.go | 2 +- suites/sriov/suite.gen.go | 6 +- 24 files changed, 157 insertions(+), 157 deletions(-) diff --git a/extensions/base/suite.go b/extensions/base/suite.go index 79d036e4ec..ece082bb81 100644 --- a/extensions/base/suite.go +++ b/extensions/base/suite.go @@ -52,7 +52,7 @@ func (s *Suite) TearDownSuite() { } const ( - sha = "a0fe127a7e3fcaa8ed988db80f2e9fa0294c9325" + sha = "fb072db8204b5a7b7a1736619d9b1e7b22c9c51f" ) // SetupSuite runs all extensions diff --git a/suites/basic/suite.gen.go b/suites/basic/suite.gen.go index 366498fcf4..636f452402 100755 --- a/suites/basic/suite.gen.go +++ b/suites/basic/suite.gen.go @@ -28,7 +28,7 @@ func (s *Suite) SetupSuite() { r.Run(`WH=$(kubectl get pods -l app=admission-webhook-k8s -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')` + "\n" + `kubectl delete mutatingwebhookconfiguration ${WH}` + "\n" + `kubectl delete ns nsm-system`) }) r.Run(`kubectl create ns nsm-system`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/basic?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/basic?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`WH=$(kubectl get pods -l app=admission-webhook-k8s -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')` + "\n" + `kubectl wait --for=condition=ready --timeout=1m pod ${WH} -n nsm-system`) } func (s *Suite) TestKernel2Kernel() { @@ -37,7 +37,7 @@ func (s *Suite) TestKernel2Kernel() { r.Run(`kubectl delete ns ns-kernel2kernel`) }) r.Run(`kubectl create ns ns-kernel2kernel`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Kernel?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Kernel?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2kernel`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2kernel`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-kernel2kernel --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -51,7 +51,7 @@ func (s *Suite) TestKernel2Memif() { r.Run(`kubectl delete ns ns-kernel2memif`) }) r.Run(`kubectl create ns ns-kernel2memif`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Memif?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Memif?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2memif`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-kernel2memif`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-kernel2memif --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -65,7 +65,7 @@ func (s *Suite) TestKernel2Vxlan2Kernel() { r.Run(`kubectl delete ns ns-kernel2vxlan2kernel`) }) r.Run(`kubectl create ns ns-kernel2vxlan2kernel`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Vxlan2Kernel?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Vxlan2Kernel?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2vxlan2kernel`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2vxlan2kernel`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-kernel2vxlan2kernel --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -79,7 +79,7 @@ func (s *Suite) TestKernel2Vxlan2Memif() { r.Run(`kubectl delete ns ns-kernel2vxlan2memif`) }) r.Run(`kubectl create ns ns-kernel2vxlan2memif`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Vxlan2Memif?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Vxlan2Memif?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2vxlan2memif`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-kernel2vxlan2memif`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-kernel2vxlan2memif --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -93,7 +93,7 @@ func (s *Suite) TestKernel2Wireguard2Kernel() { r.Run(`kubectl delete ns ns-kernel2wireguard2kernel`) }) r.Run(`kubectl create ns ns-kernel2wireguard2kernel`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Wireguard2Kernel?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Wireguard2Kernel?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2wireguard2kernel`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2wireguard2kernel`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-kernel2wireguard2kernel --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -107,7 +107,7 @@ func (s *Suite) TestKernel2Wireguard2Memif() { r.Run(`kubectl delete ns ns-kernel2wireguard2memif`) }) r.Run(`kubectl create ns ns-kernel2wireguard2memif`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Wireguard2Memif?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Wireguard2Memif?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2wireguard2memif`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-kernel2wireguard2memif`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-kernel2wireguard2memif --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -121,7 +121,7 @@ func (s *Suite) TestMemif2Kernel() { r.Run(`kubectl delete ns ns-memif2kernel`) }) r.Run(`kubectl create ns ns-memif2kernel`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Kernel?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Kernel?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2kernel`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-memif2kernel`) r.Run(`NSC=$(kubectl get pods -l app=nsc-memif -n ns-memif2kernel --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -135,7 +135,7 @@ func (s *Suite) TestMemif2Memif() { r.Run(`kubectl delete ns ns-memif2memif`) }) r.Run(`kubectl create ns ns-memif2memif`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Memif?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Memif?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2memif`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-memif2memif`) r.Run(`NSC=$(kubectl get pods -l app=nsc-memif -n ns-memif2memif --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -149,7 +149,7 @@ func (s *Suite) TestMemif2Vxlan2Kernel() { r.Run(`kubectl delete ns ns-memif2vxlan2kernel`) }) r.Run(`kubectl create ns ns-memif2vxlan2kernel`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Vxlan2Kernel?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Vxlan2Kernel?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2vxlan2kernel`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-memif2vxlan2kernel`) r.Run(`NSC=$(kubectl get pods -l app=nsc-memif -n ns-memif2vxlan2kernel --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -163,7 +163,7 @@ func (s *Suite) TestMemif2Vxlan2Memif() { r.Run(`kubectl delete ns ns-memif2vxlan2memif`) }) r.Run(`kubectl create ns ns-memif2vxlan2memif`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Vxlan2Memif?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Vxlan2Memif?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2vxlan2memif`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-memif2vxlan2memif`) r.Run(`NSC=$(kubectl get pods -l app=nsc-memif -n ns-memif2vxlan2memif --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -177,7 +177,7 @@ func (s *Suite) TestMemif2Wireguard2Kernel() { r.Run(`kubectl delete ns ns-memif2wireguard2kernel`) }) r.Run(`kubectl create ns ns-memif2wireguard2kernel`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Wireguard2Kernel?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Wireguard2Kernel?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2wireguard2kernel`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-memif2wireguard2kernel`) r.Run(`NSC=$(kubectl get pods -l app=nsc-memif -n ns-memif2wireguard2kernel --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -191,7 +191,7 @@ func (s *Suite) TestMemif2Wireguard2Memif() { r.Run(`kubectl delete ns ns-memif2wireguard2memif`) }) r.Run(`kubectl create ns ns-memif2wireguard2memif`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Wireguard2Memif?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Wireguard2Memif?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2wireguard2memif`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-memif2wireguard2memif`) r.Run(`NSC=$(kubectl get pods -l app=nsc-memif -n ns-memif2wireguard2memif --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) diff --git a/suites/features/suite.gen.go b/suites/features/suite.gen.go index a30d2ab5c1..0119e7f00a 100755 --- a/suites/features/suite.gen.go +++ b/suites/features/suite.gen.go @@ -29,10 +29,10 @@ func (s *Suite) TestAnnotated_namespace() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-annotated-namespace`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/annotated-namespace?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/annotated-namespace?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-annotated-namespace`) r.Run(`kubectl annotate ns ns-annotated-namespace networkservicemesh.io=kernel://annotated-namespace/nsm-1`) - r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d9060b4316aa35d40706902502d587414253ef78/examples/features/annotated-namespace/client.yaml`) + r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/22d40053b50a18f56888a49c2b620c2efdae2ed0/examples/features/annotated-namespace/client.yaml`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-annotated-namespace`) r.Run(`NSE=$(kubectl get pods -l app=nse-kernel -n ns-annotated-namespace --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-annotated-namespace --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -45,7 +45,7 @@ func (s *Suite) TestDns() { r.Run(`kubectl delete ns ns-dns`) }) r.Run(`kubectl create ns ns-dns`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/dns?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/dns?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=5m pod dnsutils -n ns-dns`) r.Run(`kubectl wait --for=condition=ready --timeout=5m pod -l app=nse-kernel -n ns-dns`) r.Run(`NSC=$(kubectl get pods -l app=dnsutils -n ns-dns --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -60,7 +60,7 @@ func (s *Suite) TestKernel2Kernel_dual_stack() { r.Run(`kubectl delete ns ns-kernel2kernel-dual-stack`) }) r.Run(`kubectl create ns ns-kernel2kernel-dual-stack`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/dual-stack/Kernel2Kernel_dual_stack?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/dual-stack/Kernel2Kernel_dual_stack?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2kernel-dual-stack`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2kernel-dual-stack`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-kernel2kernel-dual-stack --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -76,7 +76,7 @@ func (s *Suite) TestKernel2Wireguard2Kernel_dual_stack() { r.Run(`kubectl delete ns ns-kernel2wireguard2kernel-dual-stack`) }) r.Run(`kubectl create ns ns-kernel2wireguard2kernel-dual-stack`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/dual-stack/Kernel2Wireguard2Kernel_dual_stack?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/dual-stack/Kernel2Wireguard2Kernel_dual_stack?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2wireguard2kernel-dual-stack`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2wireguard2kernel-dual-stack`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-kernel2wireguard2kernel-dual-stack --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -93,7 +93,7 @@ func (s *Suite) TestExclude_prefixes() { }) r.Run(`kubectl create ns ns-exclude-prefixes`) r.Run(`kubectl apply -f exclude-prefixes-config-map.yaml`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/exclude-prefixes?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/exclude-prefixes?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-exclude-prefixes`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-exclude-prefixes`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-exclude-prefixes --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -107,7 +107,7 @@ func (s *Suite) TestExclude_prefixes_client() { r.Run(`kubectl delete ns ns-exclude-prefixes-client`) }) r.Run(`kubectl create ns ns-exclude-prefixes-client`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/exclude-prefixes-client?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/exclude-prefixes-client?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-exclude-prefixes-client`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel-1 -n ns-exclude-prefixes-client`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel-2 -n ns-exclude-prefixes-client`) @@ -125,7 +125,7 @@ func (s *Suite) TestKernel2Kernel_ipv6() { r.Run(`kubectl delete ns ns-kernel2kernel-ipv6`) }) r.Run(`kubectl create ns ns-kernel2kernel-ipv6`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Kernel2Kernel_ipv6?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Kernel2Kernel_ipv6?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2kernel-ipv6`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2kernel-ipv6`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-kernel2kernel-ipv6 --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -139,7 +139,7 @@ func (s *Suite) TestKernel2Wireguard2Kernel_ipv6() { r.Run(`kubectl delete ns ns-kernel2wireguard2kernel-ipv6`) }) r.Run(`kubectl create ns ns-kernel2wireguard2kernel-ipv6`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Kernel2Wireguard2Kernel_ipv6?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Kernel2Wireguard2Kernel_ipv6?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2wireguard2kernel-ipv6`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2wireguard2kernel-ipv6`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-kernel2wireguard2kernel-ipv6 --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -153,7 +153,7 @@ func (s *Suite) TestKernel2Wireguard2Memif_ipv6() { r.Run(`kubectl delete ns ns-kernel2wireguard2memif-ipv6`) }) r.Run(`kubectl create ns ns-kernel2wireguard2memif-ipv6`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Kernel2Wireguard2Memif_ipv6?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Kernel2Wireguard2Memif_ipv6?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2wireguard2memif-ipv6`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-kernel2wireguard2memif-ipv6`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-kernel2wireguard2memif-ipv6 --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -181,7 +181,7 @@ func (s *Suite) TestMemif2Wireguard2Kernel_ipv6() { r.Run(`kubectl delete ns ns-memif2wireguard2kernel-ipv6`) }) r.Run(`kubectl create ns ns-memif2wireguard2kernel-ipv6`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Memif2Wireguard2Kernel_ipv6?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Memif2Wireguard2Kernel_ipv6?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2wireguard2kernel-ipv6`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-memif2wireguard2kernel-ipv6`) r.Run(`NSC=$(kubectl get pods -l app=nsc-memif -n ns-memif2wireguard2kernel-ipv6 --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -195,7 +195,7 @@ func (s *Suite) TestMemif2Wireguard2Memif_ipv6() { r.Run(`kubectl delete ns ns-memif2wireguard2memif-ipv6`) }) r.Run(`kubectl create ns ns-memif2wireguard2memif-ipv6`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Memif2Wireguard2Memif_ipv6?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Memif2Wireguard2Memif_ipv6?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2wireguard2memif-ipv6`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-memif2wireguard2memif-ipv6`) r.Run(`NSC=$(kubectl get pods -l app=nsc-memif -n ns-memif2wireguard2memif-ipv6 --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -209,7 +209,7 @@ func (s *Suite) TestMutually_aware_nses() { r.Run(`kubectl delete ns ns-mutually-aware-nses`) }) r.Run(`kubectl create ns ns-mutually-aware-nses`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/mutually-aware-nses?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/mutually-aware-nses?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-kernel -n ns-mutually-aware-nses`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel-1 -n ns-mutually-aware-nses`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel-2 -n ns-mutually-aware-nses`) @@ -224,7 +224,7 @@ func (s *Suite) TestNse_composition() { r.Run(`kubectl delete ns ns-nse-composition`) }) r.Run(`kubectl create ns ns-nse-composition`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/nse-composition?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/nse-composition?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-nse-composition`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-nse-composition`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-nse-composition --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -240,7 +240,7 @@ func (s *Suite) TestOpa() { r.Run(`kubectl delete ns ns-opa`) }) r.Run(`kubectl create ns ns-opa`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/opa?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/opa?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-kernel -n ns-opa`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-opa`) r.Run(`NSC=$(kubectl get pods -l app=nsc-kernel -n ns-opa --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -253,7 +253,7 @@ func (s *Suite) TestPolicy_based_routing() { r.Run(`kubectl delete ns ns-policy-based-routing`) }) r.Run(`kubectl create ns ns-policy-based-routing`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/policy-based-routing?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/policy-based-routing?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nettools -n ns-policy-based-routing`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-policy-based-routing`) r.Run(`NSC=$(kubectl get pods -l app=nettools -n ns-policy-based-routing --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -273,7 +273,7 @@ func (s *Suite) TestScale_from_zero() { r.Run(`kubectl delete -n nsm-system networkservices.networkservicemesh.io scale-from-zero`) }) r.Run(`kubectl create ns ns-scale-from-zero`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/scale-from-zero?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/scale-from-zero?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait -n ns-scale-from-zero --for=condition=ready --timeout=1m pod -l app=nse-supplier-k8s`) r.Run(`kubectl wait -n ns-scale-from-zero --for=condition=ready --timeout=1m pod -l app=alpine`) r.Run(`kubectl wait -n ns-scale-from-zero --for=condition=ready --timeout=1m pod -l app=nse-icmp-responder`) @@ -291,7 +291,7 @@ func (s *Suite) TestSelect_forwarder() { r.Run(`kubectl delete ns ns-select-forwarder`) }) r.Run(`kubectl create ns ns-select-forwarder`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/select-forwarder?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/select-forwarder?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-select-forwarder`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-select-forwarder`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-select-forwarder --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -306,7 +306,7 @@ func (s *Suite) TestVl3_basic() { r.Run(`kubectl delete ns ns-vl3`) }) r.Run(`kubectl create ns ns-vl3`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/vl3-basic?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/vl3-basic?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=2m pod -l app=alpine -n ns-vl3`) r.Run(`nscs=$(kubectl get pods -l app=alpine -o go-template --template="{{range .items}}{{.metadata.name}} {{end}}" -n ns-vl3)` + "\n" + `[[ ! -z $nscs ]]`) r.Run(`for nsc in $nscs ` + "\n" + `do` + "\n" + ` ipAddr=$(kubectl exec -n ns-vl3 $nsc -- ifconfig nsm-1)` + "\n" + ` ipAddr=$(echo $ipAddr | grep -Eo 'inet addr:[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'| cut -c 11-)` + "\n" + ` for pinger in $nscs` + "\n" + ` do` + "\n" + ` echo $pinger pings $ipAddr` + "\n" + ` kubectl exec $pinger -n ns-vl3 -- ping -c4 $ipAddr` + "\n" + ` done` + "\n" + `done`) @@ -317,7 +317,7 @@ func (s *Suite) TestVl3_dns() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-vl3-dns`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/vl3-dns?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/vl3-dns?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=2m pod -l app=alpine -n ns-vl3-dns`) r.Run(`nscs=$(kubectl get pods -l app=alpine -o go-template --template="{{range .items}}{{.metadata.name}} {{end}}" -n ns-vl3-dns)` + "\n" + `[[ ! -z $nscs ]]`) r.Run(`for nsc in $nscs ` + "\n" + `do` + "\n" + ` for pinger in $nscs` + "\n" + ` do` + "\n" + ` kubectl exec $pinger -n ns-vl3-dns -- ping -c4 $nsc.vl3-dns -4` + "\n" + ` done` + "\n" + `done`) @@ -328,7 +328,7 @@ func (s *Suite) TestVl3_scale_from_zero() { r.Run(`kubectl delete ns ns-vl3-scale-from-zero`) }) r.Run(`kubectl create ns ns-vl3-scale-from-zero`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/vl3-scale-from-zero?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/vl3-scale-from-zero?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait -n ns-vl3-scale-from-zero --for=condition=ready --timeout=1m pod -l app=nse-supplier-k8s`) r.Run(`kubectl wait -n ns-vl3-scale-from-zero --for=condition=ready --timeout=1m pod -l app=alpine`) r.Run(`kubectl wait -n ns-vl3-scale-from-zero --for=condition=ready --timeout=1m pod -l app=nse-vl3-vpp`) @@ -342,7 +342,7 @@ func (s *Suite) TestWebhook() { r.Run(`kubectl delete ns ns-webhook`) }) r.Run(`kubectl create ns ns-webhook`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/webhook?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/webhook?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=5m pod -l app=nse-kernel -n ns-webhook`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nettools -n ns-webhook`) r.Run(`NSC=$(kubectl get pods -l app=nettools -n ns-webhook --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) diff --git a/suites/heal/suite.gen.go b/suites/heal/suite.gen.go index 12dd8b34b0..d612344c80 100755 --- a/suites/heal/suite.gen.go +++ b/suites/heal/suite.gen.go @@ -30,7 +30,7 @@ func (s *Suite) TestDataplane_interrupt() { r.Run(`kubectl delete ns ns-dataplane-interrupt`) }) r.Run(`kubectl create ns ns-dataplane-interrupt`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/dataplane-interrupt?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/dataplane-interrupt?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-dataplane-interrupt`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-dataplane-interrupt`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-dataplane-interrupt --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -49,7 +49,7 @@ func (s *Suite) TestLocal_forwarder_death() { r.Run(`kubectl delete ns ns-local-forwarder-death`) }) r.Run(`kubectl create ns ns-local-forwarder-death`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-forwarder-death?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-forwarder-death?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-local-forwarder-death`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-local-forwarder-death`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-local-forwarder-death --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -69,7 +69,7 @@ func (s *Suite) TestLocal_forwarder_remote_forwarder() { r.Run(`kubectl delete ns ns-local-forwarder-remote-forwarder`) }) r.Run(`kubectl create ns ns-local-forwarder-remote-forwarder`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-forwarder-remote-forwarder?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-forwarder-remote-forwarder?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-local-forwarder-remote-forwarder`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-local-forwarder-remote-forwarder`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-local-forwarder-remote-forwarder --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -114,7 +114,7 @@ func (s *Suite) TestLocal_nsm_system_restart() { r.Run(`kubectl delete ns ns-local-nsm-system-restart`) }) r.Run(`kubectl create ns ns-local-nsm-system-restart`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsm-system-restart?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsm-system-restart?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-local-nsm-system-restart`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-local-nsm-system-restart`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-local-nsm-system-restart --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -123,7 +123,7 @@ func (s *Suite) TestLocal_nsm_system_restart() { r.Run(`kubectl exec ${NSE} -n ns-local-nsm-system-restart -- ping -c 4 172.16.1.101`) r.Run(`WH=$(kubectl get pods -l app=admission-webhook-k8s -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')` + "\n" + `kubectl delete mutatingwebhookconfiguration ${WH}` + "\n" + `kubectl delete ns nsm-system`) r.Run(`kubectl create ns nsm-system`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/basic?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/basic?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl exec ${NSC} -n ns-local-nsm-system-restart -- ping -c 4 172.16.1.100`) r.Run(`kubectl exec ${NSE} -n ns-local-nsm-system-restart -- ping -c 4 172.16.1.101`) } @@ -133,7 +133,7 @@ func (s *Suite) TestLocal_nsmgr_local_forwarder_memif() { r.Run(`kubectl delete ns ns-local-nsmgr-local-forwarder-memif`) }) r.Run(`kubectl create ns ns-local-nsmgr-local-forwarder-memif`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsmgr-local-forwarder-memif?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsmgr-local-forwarder-memif?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-local-nsmgr-local-forwarder-memif`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-local-nsmgr-local-forwarder-memif`) r.Run(`NSC=$(kubectl get pods -l app=nsc-memif -n ns-local-nsmgr-local-forwarder-memif --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -156,7 +156,7 @@ func (s *Suite) TestLocal_nsmgr_local_nse_memif() { r.Run(`kubectl delete ns ns-local-nsmgr-local-nse-memif`) }) r.Run(`kubectl create ns ns-local-nsmgr-local-nse-memif`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsmgr-local-nse-memif/nse-before-death?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsmgr-local-nse-memif/nse-before-death?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-local-nsmgr-local-nse-memif`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-local-nsmgr-local-nse-memif`) r.Run(`NSC=$(kubectl get pods -l app=nsc-memif -n ns-local-nsmgr-local-nse-memif --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -167,7 +167,7 @@ func (s *Suite) TestLocal_nsmgr_local_nse_memif() { r.Run(`NSC_NODE=$(kubectl get pods -l app=nsc-memif -n ns-local-nsmgr-local-nse-memif --template '{{range .items}}{{.spec.nodeName}}{{"\n"}}{{end}}')`) r.Run(`NSMGR=$(kubectl get pods -l app=nsmgr --field-selector spec.nodeName==${NSC_NODE} -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`kubectl delete pod ${NSMGR} -n nsm-system`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsmgr-local-nse-memif/nse-after-death?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsmgr-local-nse-memif/nse-after-death?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsmgr --field-selector spec.nodeName==${NSC_NODE} -n nsm-system`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -l version=new -n ns-local-nsmgr-local-nse-memif`) r.Run(`NEW_NSE=$(kubectl get pods -l app=nse-memif -l version=new -n ns-local-nsmgr-local-nse-memif --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -180,7 +180,7 @@ func (s *Suite) TestLocal_nsmgr_remote_nsmgr() { r.Run(`kubectl delete ns ns-local-nsmgr-remote-nsmgr`) }) r.Run(`kubectl create ns ns-local-nsmgr-remote-nsmgr`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsmgr-remote-nsmgr?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsmgr-remote-nsmgr?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-local-nsmgr-remote-nsmgr`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-local-nsmgr-remote-nsmgr`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-local-nsmgr-remote-nsmgr --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -203,7 +203,7 @@ func (s *Suite) TestLocal_nsmgr_restart() { r.Run(`kubectl delete ns ns-local-nsmgr-restart`) }) r.Run(`kubectl create ns ns-local-nsmgr-restart`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsmgr-restart?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsmgr-restart?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-local-nsmgr-restart`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-local-nsmgr-restart`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-local-nsmgr-restart --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -223,7 +223,7 @@ func (s *Suite) TestRegistry_local_endpoint() { r.Run(`kubectl delete ns ns-registry-local-endpoint`) }) r.Run(`kubectl create ns ns-registry-local-endpoint`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-local-endpoint/nse-first?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-local-endpoint/nse-first?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-registry-local-endpoint`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-registry-local-endpoint`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-registry-local-endpoint --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -232,7 +232,7 @@ func (s *Suite) TestRegistry_local_endpoint() { r.Run(`kubectl exec ${NSE} -n ns-registry-local-endpoint -- ping -c 4 172.16.1.101`) r.Run(`REGISTRY=$(kubectl get pods -l app=registry -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`kubectl delete pod ${REGISTRY} -n nsm-system`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-local-endpoint/nse-second?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-local-endpoint/nse-second?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=registry -n nsm-system`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -l version=new -n ns-registry-local-endpoint`) r.Run(`NEW_NSE=$(kubectl get pods -l app=nse-kernel -l version=new -n ns-registry-local-endpoint --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -245,7 +245,7 @@ func (s *Suite) TestRegistry_remote_forwarder() { r.Run(`kubectl delete ns ns-registry-remote-forwarder`) }) r.Run(`kubectl create ns ns-registry-remote-forwarder`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-remote-forwarder?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-remote-forwarder?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-registry-remote-forwarder`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-registry-remote-forwarder`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-registry-remote-forwarder --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -268,7 +268,7 @@ func (s *Suite) TestRegistry_remote_nsmgr() { r.Run(`kubectl delete ns ns-registry-remote-nsmgr`) }) r.Run(`kubectl create ns ns-registry-remote-nsmgr`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-remote-nsmgr?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-remote-nsmgr?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-registry-remote-nsmgr`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-registry-remote-nsmgr`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-registry-remote-nsmgr --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -291,7 +291,7 @@ func (s *Suite) TestRegistry_restart() { r.Run(`kubectl delete ns ns-registry-restart`) }) r.Run(`kubectl create ns ns-registry-restart`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-restart/registry-before-death?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-restart/registry-before-death?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-registry-restart`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-registry-restart`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-registry-restart --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -301,7 +301,7 @@ func (s *Suite) TestRegistry_restart() { r.Run(`REGISTRY=$(kubectl get pods -l app=registry -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`kubectl delete pod ${REGISTRY} -n nsm-system`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=registry -n nsm-system`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-restart/registry-after-death?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-restart/registry-after-death?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine-new -n ns-registry-restart`) r.Run(`NEW_NSC=$(kubectl get pods -l app=alpine-new -n ns-registry-restart --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`kubectl exec ${NEW_NSC} -n ns-registry-restart -- ping -c 4 172.16.1.102`) @@ -313,7 +313,7 @@ func (s *Suite) TestRemote_forwarder_death() { r.Run(`kubectl delete ns ns-remote-forwarder-death`) }) r.Run(`kubectl create ns ns-remote-forwarder-death`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-forwarder-death?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-forwarder-death?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-remote-forwarder-death`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-remote-forwarder-death`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-remote-forwarder-death --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -333,7 +333,7 @@ func (s *Suite) TestRemote_forwarder_death_ip() { r.Run(`kubectl delete ns ns-remote-forwarder-death-ip`) }) r.Run(`kubectl create ns ns-remote-forwarder-death-ip`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-forwarder-death-ip?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-forwarder-death-ip?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-remote-forwarder-death-ip`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-remote-forwarder-death-ip`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-remote-forwarder-death-ip --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -353,14 +353,14 @@ func (s *Suite) TestRemote_nse_death() { r.Run(`kubectl delete ns ns-remote-nse-death`) }) r.Run(`kubectl create ns ns-remote-nse-death`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nse-death/nse-before-death?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nse-death/nse-before-death?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-remote-nse-death`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-remote-nse-death`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-remote-nse-death --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`NSE=$(kubectl get pods -l app=nse-kernel -n ns-remote-nse-death --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`kubectl exec ${NSC} -n ns-remote-nse-death -- ping -c 4 172.16.1.100`) r.Run(`kubectl exec ${NSE} -n ns-remote-nse-death -- ping -c 4 172.16.1.101`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nse-death/nse-after-death?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nse-death/nse-after-death?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -l version=new -n ns-remote-nse-death`) r.Run(`NEW_NSE=$(kubectl get pods -l app=nse-kernel -l version=new -n ns-remote-nse-death --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`kubectl exec ${NSC} -n ns-remote-nse-death -- ping -c 4 172.16.1.102`) @@ -372,14 +372,14 @@ func (s *Suite) TestRemote_nse_death_ip() { r.Run(`kubectl delete ns ns-remote-nse-death-ip`) }) r.Run(`kubectl create ns ns-remote-nse-death-ip`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nse-death-ip/nse-before-death?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nse-death-ip/nse-before-death?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-remote-nse-death-ip`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-remote-nse-death-ip`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-remote-nse-death-ip --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`NSE=$(kubectl get pods -l app=nse-kernel -n ns-remote-nse-death-ip --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`kubectl exec ${NSC} -n ns-remote-nse-death-ip -- ping -c 4 172.16.1.100`) r.Run(`kubectl exec ${NSE} -n ns-remote-nse-death-ip -- ping -c 4 172.16.1.101`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nse-death-ip/nse-after-death?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nse-death-ip/nse-after-death?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -l version=new -n ns-remote-nse-death-ip`) r.Run(`NEW_NSE=$(kubectl get pods -l app=nse-kernel -l version=new -n ns-remote-nse-death-ip --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`kubectl exec ${NSC} -n ns-remote-nse-death-ip -- ping -c 4 172.16.1.102`) @@ -391,7 +391,7 @@ func (s *Suite) TestRemote_nsm_system_restart_memif_ip() { r.Run(`kubectl delete ns ns-remote-nsm-system-restart-memif-ip`) }) r.Run(`kubectl create ns ns-remote-nsm-system-restart-memif-ip`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsm-system-restart-memif-ip?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsm-system-restart-memif-ip?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-remote-nsm-system-restart-memif-ip`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-remote-nsm-system-restart-memif-ip`) r.Run(`NSC=$(kubectl get pods -l app=nsc-memif -n ns-remote-nsm-system-restart-memif-ip --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -400,26 +400,26 @@ func (s *Suite) TestRemote_nsm_system_restart_memif_ip() { r.Run(`result=$(kubectl exec "${NSE}" -n "ns-remote-nsm-system-restart-memif-ip" -- vppctl ping 172.16.1.101 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) r.Run(`WH=$(kubectl get pods -l app=admission-webhook-k8s -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')` + "\n" + `kubectl delete mutatingwebhookconfiguration ${WH}` + "\n" + `kubectl delete ns nsm-system`) r.Run(`kubectl create ns nsm-system`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/basic?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/basic?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`result=$(kubectl exec "${NSC}" -n "ns-remote-nsm-system-restart-memif-ip" -- vppctl ping 172.16.1.100 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) r.Run(`result=$(kubectl exec "${NSE}" -n "ns-remote-nsm-system-restart-memif-ip" -- vppctl ping 172.16.1.101 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) } func (s *Suite) TestRemote_nsmgr_death() { r := s.Runner("../deployments-k8s/examples/heal/remote-nsmgr-death") s.T().Cleanup(func() { - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/apps/nsmgr?ref=d9060b4316aa35d40706902502d587414253ef78 -n nsm-system`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/apps/nsmgr?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0 -n nsm-system`) r.Run(`kubectl delete ns ns-remote-nsmgr-death`) }) r.Run(`kubectl create ns ns-remote-nsmgr-death`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-death/remote-nse?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-death/remote-nse?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-remote-nsmgr-death`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-remote-nsmgr-death`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-remote-nsmgr-death --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`NSE=$(kubectl get pods -l app=nse-kernel -n ns-remote-nsmgr-death --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`kubectl exec ${NSC} -n ns-remote-nsmgr-death -- ping -c 4 172.16.1.100`) r.Run(`kubectl exec ${NSE} -n ns-remote-nsmgr-death -- ping -c 4 172.16.1.101`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-death/nsmgr-death?ref=d9060b4316aa35d40706902502d587414253ef78`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-death/local-nse?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-death/nsmgr-death?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-death/local-nse?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l nse-version=local -n ns-remote-nsmgr-death`) r.Run(`NEW_NSE=$(kubectl get pods -l nse-version=local -n ns-remote-nsmgr-death --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`kubectl exec ${NSC} -n ns-remote-nsmgr-death -- ping -c 4 172.16.1.102`) @@ -431,7 +431,7 @@ func (s *Suite) TestRemote_nsmgr_remote_endpoint() { r.Run(`kubectl delete ns ns-remote-nsmgr-remote-endpoint`) }) r.Run(`kubectl create ns ns-remote-nsmgr-remote-endpoint`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-remote-endpoint/nsmgr-before-death?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-remote-endpoint/nsmgr-before-death?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-remote-nsmgr-remote-endpoint`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-remote-nsmgr-remote-endpoint`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-remote-nsmgr-remote-endpoint --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -441,7 +441,7 @@ func (s *Suite) TestRemote_nsmgr_remote_endpoint() { r.Run(`NSE_NODE=$(kubectl get pods -l app=nse-kernel -n ns-remote-nsmgr-remote-endpoint --template '{{range .items}}{{.spec.nodeName}}{{"\n"}}{{end}}')`) r.Run(`NSMGR=$(kubectl get pods -l app=nsmgr --field-selector spec.nodeName==${NSE_NODE} -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`kubectl delete pod ${NSMGR} -n nsm-system`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-remote-endpoint/nsmgr-after-death?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-remote-endpoint/nsmgr-after-death?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsmgr --field-selector spec.nodeName==${NSE_NODE} -n nsm-system`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -l version=new -n ns-remote-nsmgr-remote-endpoint`) r.Run(`NEW_NSE=$(kubectl get pods -l app=nse-kernel -l version=new -n ns-remote-nsmgr-remote-endpoint --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -454,7 +454,7 @@ func (s *Suite) TestRemote_nsmgr_restart() { r.Run(`kubectl delete ns ns-remote-nsmgr-restart`) }) r.Run(`kubectl create ns ns-remote-nsmgr-restart`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-restart?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-restart?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-remote-nsmgr-restart`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-remote-nsmgr-restart`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-remote-nsmgr-restart --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -474,7 +474,7 @@ func (s *Suite) TestRemote_nsmgr_restart_ip() { r.Run(`kubectl delete ns ns-remote-nsmgr-restart-ip`) }) r.Run(`kubectl create ns ns-remote-nsmgr-restart-ip`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-restart-ip?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-restart-ip?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-remote-nsmgr-restart-ip`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-remote-nsmgr-restart-ip`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-remote-nsmgr-restart-ip --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -494,7 +494,7 @@ func (s *Suite) TestVl3_nscs_death() { r.Run(`kubectl delete ns ns-vl3-nscs-death`) }) r.Run(`kubectl create ns ns-vl3-nscs-death`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/vl3-nscs-death?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/vl3-nscs-death?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait -n ns-vl3-nscs-death --for=condition=ready --timeout=1m pod -l app=alpine`) r.Run(`nscs=$(kubectl get pods -l app=alpine -o go-template --template="{{range .items}}{{.metadata.name}} {{end}}" -n ns-vl3-nscs-death)` + "\n" + `[[ ! -z $nscs ]]`) r.Run(`for nsc in $nscs` + "\n" + `do` + "\n" + ` ipAddr=$(kubectl exec -n ns-vl3-nscs-death $nsc -- ifconfig nsm-1)` + "\n" + ` ipAddr=$(echo $ipAddr | grep -Eo 'inet addr:[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'| cut -c 11-)` + "\n" + ` for pinger in $nscs` + "\n" + ` do` + "\n" + ` echo $pinger pings $ipAddr` + "\n" + ` kubectl exec $pinger -n ns-vl3-nscs-death -- ping -c4 $ipAddr` + "\n" + ` done` + "\n" + `done`) @@ -511,7 +511,7 @@ func (s *Suite) TestVl3_nse_death() { r.Run(`kubectl delete ns ns-vl3-nse-death`) }) r.Run(`kubectl create ns ns-vl3-nse-death`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/vl3-nse-death?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/vl3-nse-death?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl wait -n ns-vl3-nse-death --for=condition=ready --timeout=1m pod -l app=alpine`) r.Run(`nscs=$(kubectl get pods -l app=alpine -o go-template --template="{{range .items}}{{.metadata.name}} {{end}}" -n ns-vl3-nse-death) ` + "\n" + `[[ ! -z $nscs ]]`) r.Run(`for nsc in $nscs ` + "\n" + `do` + "\n" + ` ipAddr=$(kubectl exec -n ns-vl3-nse-death $nsc -- ifconfig nsm-1)` + "\n" + ` ipAddr=$(echo $ipAddr | grep -Eo 'inet addr:[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'| cut -c 11-)` + "\n" + ` for pinger in $nscs` + "\n" + ` do` + "\n" + ` echo $pinger pings $ipAddr` + "\n" + ` kubectl exec $pinger -n ns-vl3-nse-death -- ping -c4 $ipAddr` + "\n" + ` done` + "\n" + `done`) diff --git a/suites/interdomain/nsm/suite.gen.go b/suites/interdomain/nsm/suite.gen.go index f924e80e22..3bde67f225 100755 --- a/suites/interdomain/nsm/suite.gen.go +++ b/suites/interdomain/nsm/suite.gen.go @@ -23,9 +23,9 @@ func (s *Suite) SetupSuite() { } r := s.Runner("../deployments-k8s/examples/interdomain/nsm") s.T().Cleanup(func() { - r.Run(`WH=$(kubectl --kubeconfig=$KUBECONFIG1 get pods -l app=admission-webhook-k8s -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 delete mutatingwebhookconfiguration ${WH}` + "\n" + `` + "\n" + `WH=$(kubectl --kubeconfig=$KUBECONFIG2 get pods -l app=admission-webhook-k8s -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete mutatingwebhookconfiguration ${WH}` + "\n" + `` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/nsm/cluster1?ref=d9060b4316aa35d40706902502d587414253ef78` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/nsm/cluster2?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`WH=$(kubectl --kubeconfig=$KUBECONFIG1 get pods -l app=admission-webhook-k8s -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 delete mutatingwebhookconfiguration ${WH}` + "\n" + `` + "\n" + `WH=$(kubectl --kubeconfig=$KUBECONFIG2 get pods -l app=admission-webhook-k8s -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete mutatingwebhookconfiguration ${WH}` + "\n" + `` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/nsm/cluster1?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/nsm/cluster2?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/nsm/cluster1?ref=d9060b4316aa35d40706902502d587414253ef78` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/nsm/cluster2?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/nsm/cluster1?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/nsm/cluster2?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`WH=$(kubectl --kubeconfig=$KUBECONFIG1 get pods -l app=admission-webhook-k8s -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=1m pod ${WH} -n nsm-system` + "\n" + `` + "\n" + `WH=$(kubectl --kubeconfig=$KUBECONFIG2 get pods -l app=admission-webhook-k8s -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=1m pod ${WH} -n nsm-system`) } func (s *Suite) Test() {} diff --git a/suites/interdomain/nsm_istio_booking/suite.gen.go b/suites/interdomain/nsm_istio_booking/suite.gen.go index 8d589de719..aedf68d8f8 100755 --- a/suites/interdomain/nsm_istio_booking/suite.gen.go +++ b/suites/interdomain/nsm_istio_booking/suite.gen.go @@ -31,12 +31,12 @@ func (s *Suite) SetupSuite() { } r := s.Runner("../deployments-k8s/examples/interdomain/nsm_istio_booking") s.T().Cleanup(func() { - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete -f https://raw.githubusercontent.com/istio/istio/release-1.13/samples/bookinfo/platform/kube/bookinfo.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/nsm_istio_booking/nse-auto-scale?ref=d9060b4316aa35d40706902502d587414253ef78 ` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d9060b4316aa35d40706902502d587414253ef78/examples/interdomain/nsm_istio_booking/productpage/productpage.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d9060b4316aa35d40706902502d587414253ef78/examples/interdomain/nsm_istio_booking/networkservice.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete ns istio-system` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 label namespace default istio-injection-` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete pods --all`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete -f https://raw.githubusercontent.com/istio/istio/release-1.13/samples/bookinfo/platform/kube/bookinfo.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/nsm_istio_booking/nse-auto-scale?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0 ` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/22d40053b50a18f56888a49c2b620c2efdae2ed0/examples/interdomain/nsm_istio_booking/productpage/productpage.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/22d40053b50a18f56888a49c2b620c2efdae2ed0/examples/interdomain/nsm_istio_booking/networkservice.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete ns istio-system` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 label namespace default istio-injection-` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete pods --all`) }) r.Run(`curl -sL https://istio.io/downloadIstioctl | sh -` + "\n" + `export PATH=$PATH:$HOME/.istioctl/bin` + "\n" + `istioctl install --set profile=minimal -y --kubeconfig=$KUBECONFIG2` + "\n" + `istioctl --kubeconfig=$KUBECONFIG2 proxy-status`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d9060b4316aa35d40706902502d587414253ef78/examples/interdomain/nsm_istio_booking/networkservice.yaml`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d9060b4316aa35d40706902502d587414253ef78/examples/interdomain/nsm_istio_booking/productpage/productpage.yaml`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/nsm_istio_booking/nse-auto-scale?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/22d40053b50a18f56888a49c2b620c2efdae2ed0/examples/interdomain/nsm_istio_booking/networkservice.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/22d40053b50a18f56888a49c2b620c2efdae2ed0/examples/interdomain/nsm_istio_booking/productpage/productpage.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/nsm_istio_booking/nse-auto-scale?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 label namespace default istio-injection=enabled` + "\n" + `` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/istio/istio/release-1.13/samples/bookinfo/platform/kube/bookinfo.yaml`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --timeout=2m --for=condition=ready pod -l app=productpage`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec deploy/productpage-v1 -c cmd-nsc -- apk add curl`) diff --git a/suites/interdomain/spire/suite.gen.go b/suites/interdomain/spire/suite.gen.go index 939f932a03..db59bb9951 100755 --- a/suites/interdomain/spire/suite.gen.go +++ b/suites/interdomain/spire/suite.gen.go @@ -27,7 +27,7 @@ func (s *Suite) SetupSuite() { }) r.Run(`[[ ! -z $KUBECONFIG1 ]]`) r.Run(`[[ ! -z $KUBECONFIG2 ]]`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/spire/cluster1?ref=d9060b4316aa35d40706902502d587414253ef78` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/spire/cluster2?ref=d9060b4316aa35d40706902502d587414253ef78`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/spire/cluster1?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/spire/cluster2?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait -n spire --timeout=1m --for=condition=ready pod -l app=spire-agent` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 wait -n spire --timeout=1m --for=condition=ready pod -l app=spire-server` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 wait -n spire --timeout=1m --for=condition=ready pod -l app=spire-agent` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 wait -n spire --timeout=1m --for=condition=ready pod -l app=spire-server`) r.Run(`bundle1=$(kubectl --kubeconfig=$KUBECONFIG1 exec spire-server-0 -n spire -- bin/spire-server bundle show -format spiffe)` + "\n" + `bundle2=$(kubectl --kubeconfig=$KUBECONFIG2 exec spire-server-0 -n spire -- bin/spire-server bundle show -format spiffe)`) r.Run(`echo $bundle2 | kubectl --kubeconfig=$KUBECONFIG1 exec -i spire-server-0 -n spire -- bin/spire-server bundle set -format spiffe -id "spiffe://nsm.cluster2"` + "\n" + `echo $bundle1 | kubectl --kubeconfig=$KUBECONFIG2 exec -i spire-server-0 -n spire -- bin/spire-server bundle set -format spiffe -id "spiffe://nsm.cluster1"`) diff --git a/suites/interdomain/suite.gen.go b/suites/interdomain/suite.gen.go index 2fe867f1fe..a8ca36ace6 100755 --- a/suites/interdomain/suite.gen.go +++ b/suites/interdomain/suite.gen.go @@ -35,25 +35,25 @@ func (s *Suite) TestNsm_consul() { s.T().Cleanup(func() { r.Run(`pkill -f "port-forward"`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 delete deployment counting`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/nsm_consul/nse-auto-scale?ref=d9060b4316aa35d40706902502d587414253ef78`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d9060b4316aa35d40706902502d587414253ef78/examples/interdomain/nsm_consul/client/dashboard.yaml`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d9060b4316aa35d40706902502d587414253ef78/examples/interdomain/nsm_consul/networkservice.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/nsm_consul/nse-auto-scale?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/22d40053b50a18f56888a49c2b620c2efdae2ed0/examples/interdomain/nsm_consul/client/dashboard.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/22d40053b50a18f56888a49c2b620c2efdae2ed0/examples/interdomain/nsm_consul/networkservice.yaml`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete pods --all`) r.Run(`consul-k8s uninstall --kubeconfig=$KUBECONFIG2 -auto-approve=true -wipe-data=true`) }) r.Run(`curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -` + "\n" + `sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"` + "\n" + `sudo apt-get update && sudo apt-get install consul-k8s` + "\n" + `consul-k8s version`) r.Run(`consul-k8s install -config-file=helm-consul-values.yaml -set global.image=hashicorp/consul:1.12.0 -auto-approve --kubeconfig=$KUBECONFIG2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d9060b4316aa35d40706902502d587414253ef78/examples/interdomain/nsm_consul/networkservice.yaml`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d9060b4316aa35d40706902502d587414253ef78/examples/interdomain/nsm_consul/client/dashboard.yaml`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d9060b4316aa35d40706902502d587414253ef78/examples/interdomain/nsm_consul/service.yaml`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/nsm_consul/nse-auto-scale?ref=d9060b4316aa35d40706902502d587414253ef78`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d9060b4316aa35d40706902502d587414253ef78/examples/interdomain/nsm_consul/server/counting.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/22d40053b50a18f56888a49c2b620c2efdae2ed0/examples/interdomain/nsm_consul/networkservice.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/22d40053b50a18f56888a49c2b620c2efdae2ed0/examples/interdomain/nsm_consul/client/dashboard.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/22d40053b50a18f56888a49c2b620c2efdae2ed0/examples/interdomain/nsm_consul/service.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/nsm_consul/nse-auto-scale?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/22d40053b50a18f56888a49c2b620c2efdae2ed0/examples/interdomain/nsm_consul/server/counting.yaml`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --timeout=5m --for=condition=ready pod -l app=dashboard-nsc`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pod/dashboard-nsc -c cmd-nsc -- apk add curl`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pod/dashboard-nsc -c cmd-nsc -- curl counting:9001`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 port-forward pod/dashboard-nsc 9002:9002 &`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete deploy counting`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d9060b4316aa35d40706902502d587414253ef78/examples/interdomain/nsm_consul/server/counting_nsm.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/22d40053b50a18f56888a49c2b620c2efdae2ed0/examples/interdomain/nsm_consul/server/counting_nsm.yaml`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --timeout=5m --for=condition=ready pod -l app=counting`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pod/dashboard-nsc -c cmd-nsc -- curl counting:9001`) } @@ -128,13 +128,13 @@ func (s *Suite) TestNsm_consul_vl3() { func (s *Suite) TestNsm_istio() { r := s.Runner("../deployments-k8s/examples/interdomain/nsm_istio") s.T().Cleanup(func() { - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d9060b4316aa35d40706902502d587414253ef78/examples/interdomain/nsm_istio/greeting/server.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/nsm_istio/nse-auto-scale?ref=d9060b4316aa35d40706902502d587414253ef78` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d9060b4316aa35d40706902502d587414253ef78/examples/interdomain/nsm_istio/greeting/client.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d9060b4316aa35d40706902502d587414253ef78/examples/interdomain/nsm_istio/networkservice.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete ns istio-system` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 label namespace default istio-injection-` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete pods --all`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/22d40053b50a18f56888a49c2b620c2efdae2ed0/examples/interdomain/nsm_istio/greeting/server.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/nsm_istio/nse-auto-scale?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/22d40053b50a18f56888a49c2b620c2efdae2ed0/examples/interdomain/nsm_istio/greeting/client.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/22d40053b50a18f56888a49c2b620c2efdae2ed0/examples/interdomain/nsm_istio/networkservice.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete ns istio-system` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 label namespace default istio-injection-` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete pods --all`) }) r.Run(`curl -sL https://istio.io/downloadIstioctl | sh -` + "\n" + `export PATH=$PATH:$HOME/.istioctl/bin` + "\n" + `istioctl install --set profile=minimal -y --kubeconfig=$KUBECONFIG2` + "\n" + `istioctl --kubeconfig=$KUBECONFIG2 proxy-status`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d9060b4316aa35d40706902502d587414253ef78/examples/interdomain/nsm_istio/networkservice.yaml`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d9060b4316aa35d40706902502d587414253ef78/examples/interdomain/nsm_istio/greeting/client.yaml`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/nsm_istio/nse-auto-scale?ref=d9060b4316aa35d40706902502d587414253ef78`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 label namespace default istio-injection=enabled` + "\n" + `` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d9060b4316aa35d40706902502d587414253ef78/examples/interdomain/nsm_istio/greeting/server.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/22d40053b50a18f56888a49c2b620c2efdae2ed0/examples/interdomain/nsm_istio/networkservice.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/22d40053b50a18f56888a49c2b620c2efdae2ed0/examples/interdomain/nsm_istio/greeting/client.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/nsm_istio/nse-auto-scale?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 label namespace default istio-injection=enabled` + "\n" + `` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/22d40053b50a18f56888a49c2b620c2efdae2ed0/examples/interdomain/nsm_istio/greeting/server.yaml`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --timeout=2m --for=condition=ready pod -l app=alpine`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec deploy/alpine -c cmd-nsc -- apk add curl`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec deploy/alpine -c cmd-nsc -- curl -s greeting.default:9080 | grep -o "hello world from istio"`) @@ -144,16 +144,16 @@ func (s *Suite) TestNsm_kuma_universal_vl3() { s.T().Cleanup(func() { r.Run(`pkill -f "port-forward"` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 delete ns kuma-system kuma-demo ns-dns-vl3` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete ns kuma-demo` + "\n" + `rm tls.crt tls.key ca.crt kustomization.yaml control-plane.yaml` + "\n" + `rm -rf kuma-1.7.0`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/nsm_kuma_universal_vl3/vl3-dns?ref=d9060b4316aa35d40706902502d587414253ef78` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 -n ns-dns-vl3 wait --for=condition=ready --timeout=5m pod -l app=vl3-ipam`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/nsm_kuma_universal_vl3/vl3-dns?ref=22d40053b50a18f56888a49c2b620c2efdae2ed0` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 -n ns-dns-vl3 wait --for=condition=ready --timeout=5m pod -l app=vl3-ipam`) r.Run(`curl -L https://kuma.io/installer.sh | VERSION=1.7.0 ARCH=amd64 bash -` + "\n" + `export PATH=$PWD/kuma-1.7.0/bin:$PATH`) r.Run(`kumactl generate tls-certificate --hostname=control-plane-kuma.my-vl3-network --hostname=kuma-control-plane.kuma-system.svc --type=server --key-file=./tls.key --cert-file=./tls.crt`) r.Run(`cp ./tls.crt ./ca.crt`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d9060b4316aa35d40706902502d587414253ef78/examples/interdomain/nsm_kuma_universal_vl3/namespace.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 create secret generic general-tls-certs --namespace=kuma-system --from-file=./tls.key --from-file=./tls.crt --from-file=./ca.crt`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/22d40053b50a18f56888a49c2b620c2efdae2ed0/examples/interdomain/nsm_kuma_universal_vl3/namespace.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 create secret generic general-tls-certs --namespace=kuma-system --from-file=./tls.key --from-file=./tls.crt --from-file=./ca.crt`) r.Run(`kumactl install control-plane --tls-general-secret=general-tls-certs --tls-general-ca-bundle=$(cat ./ca.crt | base64) > control-plane.yaml`) - r.Run(`cat > kustomization.yaml < kustomization.yaml < docker-compose.override.yaml < docker-compose.override.yaml < ns-2/second-client.yaml < ns-2/third-client.yaml < ns-2/patch-nse.yaml < ns-2/kustomization.yaml < ns-2/kustomization.yaml < client.yaml < ns-2/second-client.yaml < ns-2/third-client.yaml < ns-2/patch-nse.yaml < ns-2/kustomization.yaml < ns-2/kustomization.yaml < client.yaml <