We are writing a dashboard for different versions of Kubernetes, and we have encountered a slight issue.
The version span of k8s can be quite large, including 1.18, 1.22, 1.26, etc, we hope the dashboard can manage all versions.
However, some resources have different group and version in different versions of k8s. For example, in version 1.18, ingress uses extensions/v1, while in version 1.22, it uses networking.k8s.io/v1.
We want to convert ingress of extensions/v1 to networking.k8s.io/v1, but it seems that we have to use internal version of resources, like k8s.io/kubernetes/pkg/apis/extensions/install/install.go
.
Thus we have to import Kubernetes Documentation | Kubernetes to the dashboard repo.
What I want to know is, is this the best practice? Any advices are welcomed.
I’m sorry it’s not the answer to your question, but may I know how you decided to resolve this?