should we remove k8s.io/kubernetes
dependence?
#20806
BlackHole1
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Ref:
podman/go.mod
Line 78 in e4cdd4b
Currently, the official recommendation of k8s is not to use
k8s.io/kubernetes
directly as a go dependency. See: kubernetes/kubernetes#79384 (comment)After the investigation, it was found that this dependency was initially introduced by #19630 PR. Currently, the entire podman project only utilizes the MappingFuncFor method once
podman/pkg/domain/infra/abi/play.go
Lines 1659 to 1667 in e4cdd4b
I have also examined the implementation of this method, and it is very simple. My suggestion is to remove
k8s.io/kubernetes
and reimplement the MappingFuncFor method ourselves.Beta Was this translation helpful? Give feedback.
All reactions