Skip to content

Commit

Permalink
Merge pull request nephio-project#176 from Nordix/bump_go_versions
Browse files Browse the repository at this point in the history
Bump go versions to 1.23.5
  • Loading branch information
nephio-prow[bot] authored Feb 4, 2025
2 parents ee28f0b + a825921 commit f9ed20a
Show file tree
Hide file tree
Showing 15 changed files with 39 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .prow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ presubmits:
run_if_changed: "(\\.go|Makefile|\\.mk)$"
spec:
containers:
- image: nephio/gotests:1782782171367346176
- image: nephio/gotests:1885274380137664512
command:
- make
args:
Expand Down
4 changes: 2 additions & 2 deletions build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 The kpt and Nephio Authors
# Copyright 2022-2025 The kpt and Nephio Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -13,7 +13,7 @@
# limitations under the License.


FROM golang:1.22.2-bookworm AS builder
FROM golang:1.23.5-bookworm AS builder

WORKDIR /go/src

Expand Down
4 changes: 2 additions & 2 deletions build/Dockerfile.apiserver
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 The kpt and Nephio Authors
# Copyright 2022-2025 The kpt and Nephio Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.22.2-bookworm AS builder
FROM golang:1.23.5-bookworm AS builder

WORKDIR /workspace/src
RUN git clone https://github.com/kubernetes/kubernetes --branch v1.30.1 --depth=1
Expand Down
4 changes: 2 additions & 2 deletions build/Dockerfile.etcd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 The kpt and Nephio Authors
# Copyright 2022-2025 The kpt and Nephio Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.22.2-bookworm AS builder
FROM golang:1.23.5-bookworm AS builder

WORKDIR /workspace
ARG ETCD_VER=v3.5.1
Expand Down
4 changes: 2 additions & 2 deletions controllers/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 The kpt and Nephio Authors
# Copyright 2022-2025 The kpt and Nephio Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.22.2-bookworm AS builder
FROM golang:1.23.5-bookworm AS builder

WORKDIR /go/src

Expand Down
2 changes: 1 addition & 1 deletion default-go-lint.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


GOLANG_CI_VER ?= v1.62.2
GO_VERSION ?= 1.22.0
GO_VERSION ?= 1.23.5
GIT_ROOT_DIR ?= $(dir $(lastword $(MAKEFILE_LIST)))
include $(GIT_ROOT_DIR)/detect-container-runtime.mk

Expand Down
4 changes: 2 additions & 2 deletions default-go-test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

GO_VERSION ?= 1.22.2
GO_VERSION ?= 1.23.5
TEST_COVERAGE_FILE=lcov.info
TEST_COVERAGE_HTML_FILE=coverage_unit.html
TEST_COVERAGE_FUNC_FILE=func_coverage.out
Expand All @@ -25,7 +25,7 @@ unit: test
.PHONY: test
test: ## Run unit tests (go test)
ifeq ($(CONTAINER_RUNNABLE), 0)
$(RUN_CONTAINER_COMMAND) docker.io/nephio/gotests:1782782171367346176 \
$(RUN_CONTAINER_COMMAND) docker.io/nephio/gotests:1885274380137664512 \
sh -e -c "git config --global --add user.name test; \
git config --global --add user.email [email protected]; \
go test ./... -v -coverprofile ${TEST_COVERAGE_FILE}; \
Expand Down
4 changes: 2 additions & 2 deletions examples/apps/hello-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 The kpt and Nephio Authors
# Copyright 2022-2025 The kpt and Nephio Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.22.2-bookworm AS builder
FROM golang:1.23.5-bookworm AS builder

WORKDIR /src
COPY go.mod go.sum ./
Expand Down
6 changes: 3 additions & 3 deletions func/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 The kpt and Nephio Authors
# Copyright 2022-2025 The kpt and Nephio Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -25,7 +25,7 @@ FROM gcr.io/kpt-fn/set-project-id:v0.2.0 AS set-project-id
FROM gcr.io/kpt-fn/starlark:v0.3.0 AS starlark
FROM gcr.io/kpt-fn/upsert-resource:v0.2.0 AS upsert-resource

FROM golang:1.22.1-alpine3.18 AS builder
FROM golang:1.23.5-alpine3.21 AS builder
WORKDIR /go/src

RUN go install github.com/grpc-ecosystem/[email protected]
Expand All @@ -35,7 +35,7 @@ COPY . .
RUN cd func ; go build -v -o /server ./server
COPY func/config.yaml /config.yaml

FROM alpine:3.18
FROM alpine:3.21

COPY --from=apply-setters /usr/local/bin/function /functions/apply-setters
COPY --from=apply-setters-v1 /usr/local/bin/function /functions/apply-setters-v1
Expand Down
18 changes: 16 additions & 2 deletions func/Dockerfile-wrapperserver
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
FROM golang:1.22.1-alpine3.18 AS builder
# Copyright 2022-2025 The kpt and Nephio Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.23.5-alpine3.21 AS builder

WORKDIR /go/src

Expand All @@ -12,6 +26,6 @@ COPY func/ func/
RUN cd func ; go build -v -o /wrapper-server/wrapper-server ./wrapper-server
RUN cp $GOPATH/bin/grpc-health-probe /wrapper-server/

FROM alpine:3.18
FROM alpine:3.21

COPY --from=builder /wrapper-server/* /wrapper-server/
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/nephio-project/porch

go 1.22.0
go 1.23.5

retract v1.3.0

Expand Down
2 changes: 1 addition & 1 deletion scripts/boilerplate.go.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2024 The kpt and Nephio Authors
// Copyright 2022-2025 The kpt and Nephio Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion scripts/boilerplate.yaml.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024 The kpt and Nephio Authors
# Copyright 2022-2025 The kpt and Nephio Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup-dev-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ kind export kubeconfig --name="$porch_cluster_name"

##############################################
h1 Instal MetalLB
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.13.12/config/manifests/metallb-native.yaml
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.14.9/config/manifests/metallb-native.yaml
sleep 1
echo "Waiting for controller to become ready..."
kubectl wait --namespace metallb-system deploy controller \
Expand Down
4 changes: 2 additions & 2 deletions test/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 The kpt and Nephio Authors
# Copyright 2022-2025 The kpt and Nephio Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -13,7 +13,7 @@
# limitations under the License.


FROM golang:1.22.2-bookworm AS builder
FROM golang:1.23.5-bookworm AS builder

WORKDIR /go/src

Expand Down

0 comments on commit f9ed20a

Please sign in to comment.