Skip to content

Commit ef6fff3

Browse files
authored
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.
1 parent 770ff04 commit ef6fff3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/scripts/vars.env-example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ GKE_CLUSTER_REGION=<region where GKE cluster is deployed>
1010
GKE_PROJECT=<GCP project>
1111
GKE_SVC_ACCOUNT=<service account with k8s admin permissions>
1212
GKE_NODES_SERVICE_ACCOUNT=<service account for the GKE nodes to assume>
13-
IMAGE=projects/debian-cloud/global/images/debian-11-bullseye-v20231212
13+
IMAGE=projects/debian-cloud/global/images/debian-11-bullseye-v20240213
1414
NETWORK_TAGS=<network tags>
1515
NGF_REPO=nginxinc
1616
NGF_BRANCH=main

tests/suite/manifests/longevity/cronjob.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ spec:
5353
-H "Authorization: Bearer $TOKEN" \
5454
-H "Content-type: application/merge-patch+json" \
5555
--data-raw "{\"spec\": {\"template\": {\"metadata\": {\"annotations\": {\"kubectl.kubernetes.io/restartedAt\": \"$RESTARTED_AT\"}}}}}" \
56-
"https://kubernetes.default/apis/apps/v1/namespaces/default/deployments/coffee?fieldManager=kubectl-rollout" 2>&1
56+
"https://kubernetes.default/apis/apps/v1/namespaces/longevity/deployments/coffee?fieldManager=kubectl-rollout" 2>&1
5757
restartPolicy: OnFailure
5858
---
5959
apiVersion: batch/v1
@@ -82,5 +82,5 @@ spec:
8282
-H "Authorization: Bearer $TOKEN" \
8383
-H "Content-type: application/merge-patch+json" \
8484
--data-raw "{\"spec\": {\"template\": {\"metadata\": {\"annotations\": {\"kubectl.kubernetes.io/restartedAt\": \"$RESTARTED_AT\"}}}}}" \
85-
"https://kubernetes.default/apis/apps/v1/namespaces/default/deployments/tea?fieldManager=kubectl-rollout" 2>&1
85+
"https://kubernetes.default/apis/apps/v1/namespaces/longevity/deployments/tea?fieldManager=kubectl-rollout" 2>&1
8686
restartPolicy: OnFailure

0 commit comments

Comments
 (0)