From 51a63414411f7c077e2e2abe04eeb5ea1334c8d7 Mon Sep 17 00:00:00 2001 From: bom Date: Wed, 15 Dec 2021 12:15:22 +0100 Subject: [PATCH] added label to cloud-deployment --- src/main/resources/nextcloud/deployment.yaml | 1 + .../resources/local-integration-test/setup-local-s3-on-k3d.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/resources/nextcloud/deployment.yaml b/src/main/resources/nextcloud/deployment.yaml index b825eef..32b4ad7 100644 --- a/src/main/resources/nextcloud/deployment.yaml +++ b/src/main/resources/nextcloud/deployment.yaml @@ -5,6 +5,7 @@ metadata: spec: selector: matchLabels: + app: cloud-app app.kubernetes.io/name: cloud-pod app.kubernetes.io/application: cloud strategy: diff --git a/src/test/resources/local-integration-test/setup-local-s3-on-k3d.sh b/src/test/resources/local-integration-test/setup-local-s3-on-k3d.sh index d8aca0e..1424b14 100755 --- a/src/test/resources/local-integration-test/setup-local-s3-on-k3d.sh +++ b/src/test/resources/local-integration-test/setup-local-s3-on-k3d.sh @@ -32,7 +32,7 @@ function main() cd ../../../../ # c4k-nextcloud project root lein uberjar java -jar target/uberjar/c4k-nextcloud-standalone.jar config-local.edn auth-local.edn | kubectl apply -f - - POD=$(kubectl get pod -l app=cloud-pod -o name) + POD=$(kubectl get pod -l app=cloud-app -o name) kubectl wait $POD --for=condition=Ready --timeout=240s kubectl scale deployment backup-restore --replicas 1