go mod broken dependencies
on a fresh attempt at go mod tidy
(after deleting all my local modules cache):
gitlab.cern.ch/drupal/paas/drupalsite-operator imports
k8s.io/client-go/kubernetes/scheme imports
k8s.io/api/auditregistration/v1alpha1: module k8s.io/api@latest found (v0.19.4), but does not contain package k8s.io/api/auditregistration/v1alpha1
gitlab.cern.ch/drupal/paas/drupalsite-operator/controllers imports
sigs.k8s.io/controller-runtime/pkg/client imports
sigs.k8s.io/controller-runtime/pkg/client/apiutil imports
k8s.io/client-go/discovery imports
github.com/googleapis/gnostic/OpenAPIv2: module github.com/googleapis/gnostic@latest found (v0.5.3), but does not contain package github.com/googleapis/gnostic/OpenAPIv2
I replace k8s.io/api => k8s.io/api v0.18.12
and fix the auditregistration.
I haven't found a fix for gnostic
, because it looks like we need at the same time v0.4 and v0.5 of the same module.
Maybe until upstream resolves this, as a last resort, we could copy the code locally with a different name and replace?