Skip to content

Commit

Permalink
Fix namespace for longevity cronjob (#1691)
Browse files Browse the repository at this point in the history
Problem: The longevity test cronjob was attempting to patch the wrong namespace, resulting in a failure.

Solution: Update the namespace.
  • Loading branch information
sjberman authored Mar 14, 2024
1 parent 770ff04 commit ef6fff3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/scripts/vars.env-example
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ GKE_CLUSTER_REGION=<region where GKE cluster is deployed>
GKE_PROJECT=<GCP project>
GKE_SVC_ACCOUNT=<service account with k8s admin permissions>
GKE_NODES_SERVICE_ACCOUNT=<service account for the GKE nodes to assume>
IMAGE=projects/debian-cloud/global/images/debian-11-bullseye-v20231212
IMAGE=projects/debian-cloud/global/images/debian-11-bullseye-v20240213
NETWORK_TAGS=<network tags>
NGF_REPO=nginxinc
NGF_BRANCH=main
Expand Down
4 changes: 2 additions & 2 deletions tests/suite/manifests/longevity/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit ef6fff3

Please sign in to comment.