From 93d1b9750801ae46af426398960f1575ca320e23 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 20 Feb 2025 15:04:26 +0000 Subject: [PATCH 1/2] chore(deps): bump github.com/docker/docker Bumps [github.com/docker/docker](https://github.com/docker/docker) from 27.5.1+incompatible to 28.0.0+incompatible. - [Release notes](https://github.com/docker/docker/releases) - [Commits](https://github.com/docker/docker/compare/v27.5.1...v28.0.0) --- updated-dependencies: - dependency-name: github.com/docker/docker dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index ef0467ce..42f630f1 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/avast/retry-go/v4 v4.6.0 github.com/blang/semver/v4 v4.0.0 github.com/cert-manager/cert-manager v1.17.1 - github.com/docker/docker v27.5.1+incompatible + github.com/docker/docker v28.0.0+incompatible github.com/google/go-github/v48 v48.2.0 github.com/google/uuid v1.6.0 github.com/kong/go-database-reconciler v1.20.3 diff --git a/go.sum b/go.sum index e1b9d3b4..1f5532c1 100644 --- a/go.sum +++ b/go.sum @@ -39,8 +39,8 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1 github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk= github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E= -github.com/docker/docker v27.5.1+incompatible h1:4PYU5dnBYqRQi0294d1FBECqT9ECWeQAIfE8q4YnPY8= -github.com/docker/docker v27.5.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/docker v28.0.0+incompatible h1:Olh0KS820sJ7nPsBKChVhk5pzqcwDR15fumfAd/p9hM= +github.com/docker/docker v28.0.0+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/go-connections v0.5.0 h1:USnMq7hx7gwdVZq1L49hLXaFtUdTADjXGp+uj1Br63c= github.com/docker/go-connections v0.5.0/go.mod h1:ov60Kzw0kKElRwhNs9UlUHAE/F9Fe6GLaXnqyDdmEXc= github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= From 7a9bd0963e8414f23b6c2efca97648ed25558216 Mon Sep 17 00:00:00 2001 From: Jakub Warczarek Date: Thu, 20 Feb 2025 17:59:38 +0100 Subject: [PATCH 2/2] chore: do not use deprecated API --- pkg/utils/docker/docker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/utils/docker/docker.go b/pkg/utils/docker/docker.go index 5156b889..744d85b8 100644 --- a/pkg/utils/docker/docker.go +++ b/pkg/utils/docker/docker.go @@ -5,7 +5,7 @@ import ( "fmt" "net" - "github.com/docker/docker/api/types" + "github.com/docker/docker/api/types/container" "github.com/docker/docker/client" ) @@ -15,7 +15,7 @@ import ( // InspectDockerContainer is a helper function that uses the local docker environment // provides the full container spec for a container present in that environment by name. -func InspectDockerContainer(containerID string) (*types.ContainerJSON, error) { +func InspectDockerContainer(containerID string) (*container.InspectResponse, error) { ctx := context.Background() dockerc, err := NewNegotiatedClientWithOpts(ctx, client.FromEnv) if err != nil {