Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
kata-webhook: update dependencies
Browse files Browse the repository at this point in the history
This commit aims at updating katawebhook dependency from v2.1.0 -> v2.5.0,
 to support newer versions of k8s, which in turn updates other dependencies.

The go version is updated from v1.16 -> v1.21, and there is a corresponding
 change in Dockerfile.

Fixes: kata-containers/kata-containers#7565

Signed-off-by: Archana Choudhary <[email protected]>
  • Loading branch information
arc9693 committed Jan 8, 2024
1 parent 46da907 commit ca1ada2
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 642 deletions.
4 changes: 2 additions & 2 deletions kata-webhook/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Copyright (c) 2019 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
FROM golang:1.16-alpine3.14 AS builder
FROM golang:1.21.5-alpine3.19 AS builder

WORKDIR /go/src/kata-pod-annotate

COPY . ./
RUN CGO_ENABLED=0 go build -o /go/bin/kata-pod-annotate

FROM alpine:3.14
FROM alpine:3.19
COPY --from=builder /go/bin/kata-pod-annotate /kata-pod-annotate
ENTRYPOINT ["/kata-pod-annotate"]

32 changes: 27 additions & 5 deletions kata-webhook/go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,32 @@
module module-path

go 1.16
go 1.21

require (
github.com/sirupsen/logrus v1.8.1
github.com/slok/kubewebhook/v2 v2.1.0
k8s.io/api v0.21.3
k8s.io/apimachinery v0.21.3
github.com/sirupsen/logrus v1.9.3
github.com/slok/kubewebhook/v2 v2.5.0
k8s.io/api v0.29.0
k8s.io/apimachinery v0.29.0
)

require (
github.com/go-logr/logr v1.4.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
golang.org/x/net v0.19.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/text v0.14.0 // indirect
gomodules.xyz/jsonpatch/v3 v3.0.1 // indirect
gomodules.xyz/orderedmap v0.1.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
k8s.io/client-go v0.29.0 // indirect
k8s.io/klog/v2 v2.110.1 // indirect
k8s.io/utils v0.0.0-20231127182322-b307cd553661 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
sigs.k8s.io/yaml v1.4.0 // indirect
)
Loading

0 comments on commit ca1ada2

Please sign in to comment.