Skip to content

Commit

Permalink
Merge pull request #6814 from nilo19/fix/cve
Browse files Browse the repository at this point in the history
[release-1.27] fix: Bump golang version to v1.22.5 to fix cves
  • Loading branch information
k8s-ci-robot authored Aug 13, 2024
2 parents 320d626 + 2c3c5ee commit 1662ffe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

# syntax=docker/dockerfile:1

FROM --platform=linux/amd64 golang:1.20.5-buster AS builder
FROM --platform=linux/amd64 golang:1.22.6-bookworm AS builder

ARG ENABLE_GIT_COMMAND=true
ARG ARCH=amd64
Expand All @@ -27,7 +27,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
go build ./cmd/cloud-controller-manager

RUN --mount=type=cache,target=/root/.cache/go-build \
make bin/azure-cloud-controller-manager ENABLE_GIT_COMMAND=${ENABLE_GIT_COMMAND} ARCH=${ARCH}
make bin/azure-cloud-controller-manager ENABLE_GIT_COMMAND=${ENABLE_GIT_COMMAND} ARCH=${ARCH}

FROM gcr.io/distroless/static
COPY --from=builder /go/src/sigs.k8s.io/cloud-provider-azure/bin/azure-cloud-controller-manager /usr/local/bin/cloud-controller-manager
Expand Down
2 changes: 1 addition & 1 deletion cloud-node-manager.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM --platform=linux/amd64 golang:1.20.5-buster AS builder
FROM --platform=linux/amd64 golang:1.22.6-bookworm AS builder

ARG ENABLE_GIT_COMMAND=true
ARG ARCH=amd64
Expand Down
6 changes: 3 additions & 3 deletions e2e.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.20.5-buster
FROM golang:1.22.6-bookworm

WORKDIR /go/src/sigs.k8s.io/cloud-provider-azure

COPY . .

RUN go get github.com/onsi/ginkgo/ginkgo \
&& go get github.com/onsi/gomega/... \
&& go mod tidy
&& go get github.com/onsi/gomega/... \
&& go mod tidy

0 comments on commit 1662ffe

Please sign in to comment.