kubekey
kubekey copied to clipboard
Maintain version information of k8s and other components separately
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
- 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.
- 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