From ef6fff371251b4c5c265acba0ba48e62650e5203 Mon Sep 17 00:00:00 2001 From: Saylor Berman Date: Thu, 14 Mar 2024 10:29:56 -0600 Subject: [PATCH] Fix namespace for longevity cronjob (#1691) Problem: The longevity test cronjob was attempting to patch the wrong namespace, resulting in a failure. Solution: Update the namespace. --- tests/scripts/vars.env-example | 2 +- tests/suite/manifests/longevity/cronjob.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/scripts/vars.env-example b/tests/scripts/vars.env-example index 4de2c4955..c4163b012 100644 --- a/tests/scripts/vars.env-example +++ b/tests/scripts/vars.env-example @@ -10,7 +10,7 @@ GKE_CLUSTER_REGION= GKE_PROJECT= GKE_SVC_ACCOUNT= GKE_NODES_SERVICE_ACCOUNT= -IMAGE=projects/debian-cloud/global/images/debian-11-bullseye-v20231212 +IMAGE=projects/debian-cloud/global/images/debian-11-bullseye-v20240213 NETWORK_TAGS= NGF_REPO=nginxinc NGF_BRANCH=main diff --git a/tests/suite/manifests/longevity/cronjob.yaml b/tests/suite/manifests/longevity/cronjob.yaml index 1f7511cf3..492169711 100644 --- a/tests/suite/manifests/longevity/cronjob.yaml +++ b/tests/suite/manifests/longevity/cronjob.yaml @@ -53,7 +53,7 @@ spec: -H "Authorization: Bearer $TOKEN" \ -H "Content-type: application/merge-patch+json" \ --data-raw "{\"spec\": {\"template\": {\"metadata\": {\"annotations\": {\"kubectl.kubernetes.io/restartedAt\": \"$RESTARTED_AT\"}}}}}" \ - "https://kubernetes.default/apis/apps/v1/namespaces/default/deployments/coffee?fieldManager=kubectl-rollout" 2>&1 + "https://kubernetes.default/apis/apps/v1/namespaces/longevity/deployments/coffee?fieldManager=kubectl-rollout" 2>&1 restartPolicy: OnFailure --- apiVersion: batch/v1 @@ -82,5 +82,5 @@ spec: -H "Authorization: Bearer $TOKEN" \ -H "Content-type: application/merge-patch+json" \ --data-raw "{\"spec\": {\"template\": {\"metadata\": {\"annotations\": {\"kubectl.kubernetes.io/restartedAt\": \"$RESTARTED_AT\"}}}}}" \ - "https://kubernetes.default/apis/apps/v1/namespaces/default/deployments/tea?fieldManager=kubectl-rollout" 2>&1 + "https://kubernetes.default/apis/apps/v1/namespaces/longevity/deployments/tea?fieldManager=kubectl-rollout" 2>&1 restartPolicy: OnFailure