From 69650332e851ab5da2edd425040c03b0127bdfe7 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Wed, 24 Jan 2024 18:29:03 +0100 Subject: [PATCH] just: wait for ready portforwarder on set Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- deployments/emojivoto/portforwarder.yml | 4 ++++ deployments/openssl/portforwarder.yml | 2 ++ deployments/simple/portforwarder.yml | 2 ++ justfile | 1 + 4 files changed, 9 insertions(+) diff --git a/deployments/emojivoto/portforwarder.yml b/deployments/emojivoto/portforwarder.yml index 46fa82a60..509af7d5b 100644 --- a/deployments/emojivoto/portforwarder.yml +++ b/deployments/emojivoto/portforwarder.yml @@ -3,6 +3,8 @@ kind: Pod metadata: name: port-forwarder-coordinator namespace: edg-default + labels: + app.kubernetes.io/name: port-forwarder-coordinator spec: containers: - name: port-forwarder @@ -31,6 +33,8 @@ kind: Pod metadata: name: port-forwarder-emojivoto-web namespace: edg-default + labels: + app.kubernetes.io/name: port-forwarder-emojivoto-web spec: containers: - name: port-forwarder diff --git a/deployments/openssl/portforwarder.yml b/deployments/openssl/portforwarder.yml index ed7b4ee44..34ccecab9 100644 --- a/deployments/openssl/portforwarder.yml +++ b/deployments/openssl/portforwarder.yml @@ -3,6 +3,8 @@ kind: Pod metadata: name: port-forwarder-coordinator namespace: edg-default + labels: + app.kubernetes.io/name: port-forwarder-coordinator spec: containers: - name: port-forwarder diff --git a/deployments/simple/portforwarder.yml b/deployments/simple/portforwarder.yml index ed7b4ee44..34ccecab9 100644 --- a/deployments/simple/portforwarder.yml +++ b/deployments/simple/portforwarder.yml @@ -3,6 +3,8 @@ kind: Pod metadata: name: port-forwarder-coordinator namespace: edg-default + labels: + app.kubernetes.io/name: port-forwarder-coordinator spec: containers: - name: port-forwarder diff --git a/justfile b/justfile index 8408eaa7d..316c6fdf3 100644 --- a/justfile +++ b/justfile @@ -70,6 +70,7 @@ set: set -euo pipefail ns=$(cat ./{{ workspace_dir }}/just.namespace) nix run .#kubectl-wait-ready -- $ns coordinator + nix run .#kubectl-wait-ready -- $ns port-forwarder-coordinator kubectl -n $ns port-forward pod/port-forwarder-coordinator 1313 & PID=$! trap "kill $PID" EXIT