From 1110fb4bf0083fbdd8c112843e9049cf09919e10 Mon Sep 17 00:00:00 2001 From: Marc Sune Date: Sun, 1 Dec 2024 12:12:55 +0100 Subject: [PATCH] Tc --- .github/workflows/ci.yaml | 3 +++ test/cni/example-client-patch.yaml | 12 ++++++++++++ .../{example-patch.yaml => example-svc-patch.yaml} | 0 test/cni/kustomization.yaml | 6 +++++- 4 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 test/cni/example-client-patch.yaml rename test/cni/{example-patch.yaml => example-svc-patch.yaml} (100%) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2a0a213..ab4011d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -131,6 +131,9 @@ jobs: while [[ "$(minikube kubectl -- get pods | grep client | grep -v Running)" != "" ]]; do echo "Not ready, waiting..." minikube kubectl -- get pods -o wide + for POD in $(minikube kubectl -- get pods | grep client | awk '{print $1}'); do + minikube kubectl -- logs ${POD} + done sleep 1; done diff --git a/test/cni/example-client-patch.yaml b/test/cni/example-client-patch.yaml new file mode 100644 index 0000000..f8a2799 --- /dev/null +++ b/test/cni/example-client-patch.yaml @@ -0,0 +1,12 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: my-web-client +spec: + template: + spec: + initContainers: + - name: sfunnel-init + image: sfunnel + - name: sfunnel-init-egress + image: sfunnel diff --git a/test/cni/example-patch.yaml b/test/cni/example-svc-patch.yaml similarity index 100% rename from test/cni/example-patch.yaml rename to test/cni/example-svc-patch.yaml diff --git a/test/cni/kustomization.yaml b/test/cni/kustomization.yaml index 7d41cb3..e3e5080 100644 --- a/test/cni/kustomization.yaml +++ b/test/cni/kustomization.yaml @@ -5,7 +5,11 @@ resources: - ../../example/k8s/ patches: - - path: example-patch.yaml + - path: example-svc-patch.yaml target: kind: Deployment name: my-nginx-deployment + - path: example-client-patch.yaml + target: + kind: Deployment + name: my-web-client