Skip to content

Commit 071b02e

Browse files
committed
deps: Update go to 1.23.0
1 parent cbe1f5a commit 071b02e

File tree

7 files changed

+23
-12
lines changed

7 files changed

+23
-12
lines changed

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
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.

.github/workflows/tests-main.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
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
@@ -90,7 +90,7 @@ jobs:
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

.github/workflows/tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
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:
@@ -69,7 +69,7 @@ jobs:
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

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ e2e_test_clean: e2e_cleanup_test_namespaces e2e_undeploy ## Remove all operator
293293
e2e_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
299299
e2e_setup_job: e2e_project e2e_cluster_job e2e_cert_manager_deploy

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/GoogleCloudPlatform/cloud-sql-proxy-operator
22

3-
go 1.22
3+
go 1.23.0
44

55
require (
66
github.com/go-logr/logr v1.4.1

tools/delete-test-namespaces.sh

100644100755
Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
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+
216
set -euxo pipefail
317
KUBECTL=${KUBECTL:-bin/kubectl}
418
export USE_GKE_E2E_AUTH_PLUGIN=True
@@ -29,7 +43,8 @@ function remove_ns(){
2943
if [[ ${#@} -gt 0 ]] ; then
3044
remove_ns "$1"
3145
else
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"

tools/e2e_test_job.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ set -x
5858
echo "TIME: $(date) Run Tests"
5959
echo "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-
6561
echo "Starting the tests"
6662
# Run e2e test, filtering the stdout so that it only logs go test results.
6763
if make e2e_test_job > bin/e2e_test.log 2>&1 ; then

0 commit comments

Comments
 (0)