Skip to content

remove go.mod dependency on k8s.io/kubernetes  #11871

Open
@medyagh

Description

@medyagh

currently in our go.mod we are depending on

k8s.io/kubernetes v1.21.2

which is not a good idea to use the whole kubernetes project as a lib, we currently only use a few "Constants" and feature gate types (to validate if a feature gate is valid)

I would suggest we copy those constants from kubernetes source code to our own constants file in constants package maybe k8s_constants.go

we cna update once a while manually using make target, to copy/update those constants from k8s source code.

make update-constants

and then remove the dependency to k8s.io/kubernetes in our go mod

Metadata

Metadata

Assignees

Labels

kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.priority/backlogHigher priority than priority/awaiting-more-evidence.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions