From 6b5438bba0c0a876e9dc441b6e825fd38a4aa95c Mon Sep 17 00:00:00 2001 From: David Jumani Date: Fri, 15 Nov 2024 11:19:02 -0500 Subject: [PATCH] add zero downtime profile --- .../tests/manifests/profiles/kubernetes-gateway.yaml | 10 ---------- .../e2e/tests/manifests/zero-downtime-rollout.yaml | 11 +++++++++++ test/kubernetes/e2e/tests/zero_downtime_test.go | 2 +- 3 files changed, 12 insertions(+), 11 deletions(-) create mode 100644 test/kubernetes/e2e/tests/manifests/zero-downtime-rollout.yaml diff --git a/test/kubernetes/e2e/tests/manifests/profiles/kubernetes-gateway.yaml b/test/kubernetes/e2e/tests/manifests/profiles/kubernetes-gateway.yaml index eaeb8c1e1c9..4941924918d 100644 --- a/test/kubernetes/e2e/tests/manifests/profiles/kubernetes-gateway.yaml +++ b/test/kubernetes/e2e/tests/manifests/profiles/kubernetes-gateway.yaml @@ -13,16 +13,6 @@ global: # Configuration for the Kubernetes Gateway integration in Gloo Gateway kubeGateway: enabled: true - # Enable the probes to ensure zero downtime - gatewayParameters: - glooGateway: - podTemplate: - terminationGracePeriodSeconds: 5 - gracefulShutdown: - enabled: true - sleepTimeSeconds: 2 - probes: true - livenessProbeEnabled: true # Configuration for the statically deployed gateway-proxy that ships by default with Gloo Gateway gatewayProxies: diff --git a/test/kubernetes/e2e/tests/manifests/zero-downtime-rollout.yaml b/test/kubernetes/e2e/tests/manifests/zero-downtime-rollout.yaml new file mode 100644 index 00000000000..7a726cd0954 --- /dev/null +++ b/test/kubernetes/e2e/tests/manifests/zero-downtime-rollout.yaml @@ -0,0 +1,11 @@ +kubeGateway: + # Enable the probes to ensure zero downtime + gatewayParameters: + glooGateway: + podTemplate: + terminationGracePeriodSeconds: 5 + gracefulShutdown: + enabled: true + sleepTimeSeconds: 2 + probes: true + livenessProbeEnabled: true diff --git a/test/kubernetes/e2e/tests/zero_downtime_test.go b/test/kubernetes/e2e/tests/zero_downtime_test.go index b7eca8c41a7..541c458686e 100644 --- a/test/kubernetes/e2e/tests/zero_downtime_test.go +++ b/test/kubernetes/e2e/tests/zero_downtime_test.go @@ -21,7 +21,7 @@ func TestZeroDowntimeRollout(t *testing.T) { &gloogateway.Context{ InstallNamespace: installNs, ProfileValuesManifestFile: e2e.KubernetesGatewayProfilePath, - ValuesManifestFile: e2e.EmptyValuesManifestPath, + ValuesManifestFile: e2e.ManifestPath("zero-downtime-rollout.yaml"), }, )