File tree Expand file tree Collapse file tree 7 files changed +23
-12
lines changed
Expand file tree Collapse file tree 7 files changed +23
-12
lines changed Original file line number Diff line number Diff line change 4747 - name : Setup Go
4848 uses : actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
4949 with :
50- go-version : " 1.22 "
50+ go-version : " 1.23 "
5151 if : ${{ matrix.language == 'go' }}
5252
5353 # Initializes the CodeQL tools for scanning.
Original file line number Diff line number Diff line change 4040 - name : Setup Go
4141 uses : actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
4242 with :
43- go-version : " 1.22 "
43+ go-version : " 1.23 "
4444 - name : Set up build.env with phony secrets.
4545 run : cp build.sample.env build.env
4646 - name : make test
9090 - name : " Setup Go"
9191 uses : actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
9292 with :
93- go-version : " 1.22 "
93+ go-version : " 1.23 "
9494 - name : Set up QEMU
9595 uses : docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2.2.0
9696 - name : Set up Docker Buildx
Original file line number Diff line number Diff line change 2828 - name : Setup Go
2929 uses : actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
3030 with :
31- go-version : " 1.22 "
31+ go-version : " 1.23 "
3232 - name : Checkout code
3333 uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
3434 with :
6969 - name : Setup Go
7070 uses : actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
7171 with :
72- go-version : " 1.22 "
72+ go-version : " 1.23 "
7373 - name : Set up QEMU
7474 uses : docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2.2.0
7575 - name : Set up Docker Buildx
Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ e2e_test_clean: e2e_cleanup_test_namespaces e2e_undeploy ## Remove all operator
293293e2e_teardown : e2e_cluster_destroy # # Remove the test infrastructure for e2e tests from the Google Cloud Project
294294
295295.PHONY : e2e_test_job
296- e2e_test_job : e2e_setup_job e2e_build_deploy e2e_test_run
296+ e2e_test_job : e2e_setup_job e2e_test_clean e2e_build_deploy e2e_test_run
297297
298298.PHONY : e2e_setup_job
299299e2e_setup_job : e2e_project e2e_cluster_job e2e_cert_manager_deploy
Original file line number Diff line number Diff line change 11module github.com/GoogleCloudPlatform/cloud-sql-proxy-operator
22
3- go 1.22
3+ go 1.23.0
44
55require (
66 github.com/go-logr/logr v1.4.1
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2+ # Copyright 2025 Google LLC
3+ #
4+ # Licensed under the Apache License, Version 2.0 (the "License");
5+ # you may not use this file except in compliance with the License.
6+ # You may obtain a copy of the License at
7+ #
8+ # http://www.apache.org/licenses/LICENSE-2.0
9+ #
10+ # Unless required by applicable law or agreed to in writing, software
11+ # distributed under the License is distributed on an "AS IS" BASIS,
12+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ # See the License for the specific language governing permissions and
14+ # limitations under the License.
15+
216set -euxo pipefail
317KUBECTL=${KUBECTL:- bin/ kubectl}
418export USE_GKE_E2E_AUTH_PLUGIN=True
@@ -29,7 +43,8 @@ function remove_ns(){
2943if [[ ${#@ } -gt 0 ]] ; then
3044 remove_ns " $1 "
3145else
32- namespaces=( $( $KUBECTL get ns -o=name | grep namespace/test ) )
46+ ( $KUBECTL get ns -o=name | grep namespace/test > bin/ns/list.txt ) || true
47+ namespaces=( $( cat bin/ns/list.txt ) )
3348 for ns in ${namespaces[*]} ; do
3449 ns=" ${ns#*/ } " # remove "namespace/" from the beginning of the string
3550 echo " Deleting $ns "
Original file line number Diff line number Diff line change @@ -58,10 +58,6 @@ set -x
5858echo " TIME: $( date) Run Tests"
5959echo " Running tests on environment ${ENVIRONMENT_NAME:- undefined} "
6060
61- # Force cleanup of the existing resources before running tests.
62- echo " Cleaning up the test resources from past runs"
63- make e2e_test_clean >> bin/e2e_test.log || true
64-
6561echo " Starting the tests"
6662# Run e2e test, filtering the stdout so that it only logs go test results.
6763if make e2e_test_job > bin/e2e_test.log 2>&1 ; then
You can’t perform that action at this time.
0 commit comments