kubekey icon indicating copy to clipboard operation
kubekey copied to clipboard

Maintain version information of k8s and other components separately

Open pixiake opened this issue 2 years ago • 0 comments

Your current KubeKey version

No response

Describe this feature

At present, the version information of k8s and other components is hard coded. I think this will reduce the flexibility of KubeKey. https://github.com/kubesphere/kubekey/blob/691611a4c0e6522bf8a9c1a7bcd0780fd7d73fff/pkg/files/file.go#L304

So, I think it might be more flexible to maintain these information separately.

Describe the solution you'd like

  1. Use a separate json file to maintain the information of k8s and other components, so that it is convenient to use automated methods to maintain this json file.
  2. kk introduces this json file in the code using embed method, and reads the versions of related components information and sha256.

Additional information

No response

pixiake avatar Aug 04 '22 09:08 pixiake