From e08d184984f8c77c9293808513fd176bca173b1a Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Tue, 31 Aug 2021 09:28:02 +0200 Subject: [PATCH] ci: ignore k8s.io/kubernetes dependencies These dependencies are pulled in by k8s.io/kubernetes with version v0.0.0. It is therefore required to use 'replace' in go.mod to select a compatible version of the additional k8s.io packages. Dependabot does not seem to update packages listed in 'replace', only under 'require'. That means, the version updates done by Dependabot do not have any effect, as the contents is replaced with a different version anyway. Ignoring these packages prevents the creation of non-functional PRs. Signed-off-by: Niels de Vos --- .github/dependabot.yml | 27 +++++++++++++++++++++++++++ go.mod | 3 +++ 2 files changed, 30 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index d9a772676..577cc6182 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,3 +9,30 @@ updates: - rebase commit-message: prefix: "rebase" + ignore: + # k8s.io/kubernetes prevents auto-updating these + - dependency-name: "k8s.io/api" + - dependency-name: "k8s.io/apiextensions-apiserver" + - dependency-name: "k8s.io/apimachinery" + - dependency-name: "k8s.io/apiserver" + - dependency-name: "k8s.io/cli-runtime" + - dependency-name: "k8s.io/client-go" + - dependency-name: "k8s.io/cloud-provider" + - dependency-name: "k8s.io/cluster-bootstrap" + - dependency-name: "k8s.io/code-generator" + - dependency-name: "k8s.io/component-base" + - dependency-name: "k8s.io/component-helpers" + - dependency-name: "k8s.io/controller-manager" + - dependency-name: "k8s.io/cri-api" + - dependency-name: "k8s.io/csi-translation-lib" + - dependency-name: "k8s.io/kube-aggregator" + - dependency-name: "k8s.io/kube-controller-manager" + - dependency-name: "k8s.io/kube-proxy" + - dependency-name: "k8s.io/kube-scheduler" + - dependency-name: "k8s.io/kubectl" + - dependency-name: "k8s.io/kubelet" + - dependency-name: "k8s.io/legacy-cloud-providers" + - dependency-name: "k8s.io/metrics" + - dependency-name: "k8s.io/mount-utils" + - dependency-name: "k8s.io/pod-security-admission" + - dependency-name: "k8s.io/sample-apiserver" diff --git a/go.mod b/go.mod index 516081f77..0f873f295 100644 --- a/go.mod +++ b/go.mod @@ -42,6 +42,9 @@ replace ( github.com/portworx/sched-ops => github.com/portworx/sched-ops v0.20.4-openstorage-rc3 gomodules.xyz/jsonpatch/v2 => github.com/gomodules/jsonpatch/v2 v2.2.0 google.golang.org/grpc => google.golang.org/grpc v1.35.0 + // + // k8s.io/kubernetes depends on these k8s.io packages, but unversioned + // k8s.io/api => k8s.io/api v0.22.0 k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.22.0 k8s.io/apimachinery => k8s.io/apimachinery v0.22.0