Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

templates 中 apiVersion 遇到非标准情况下识别有误,导致ks-core安装失败以及成员集群加入失败的情况。 #427

Open
CoderConan opened this issue Oct 16, 2024 · 0 comments

Comments

@CoderConan
Copy link

在阿里云ACK中 kubernetes version是:
Server Version: v1.26.3-aliyun.1
在腾讯云TKE中 kubernetes version是:
Server Version: v1.26.1-tke.2
类似这样带有后缀的,kubernetes version大于1.20但是表达式判断走到了else,结果是在 >=1.20.0版本的集群找不到过期的 batch/v1beta1 版本的API,导致安装失败和成员集群加入失败。
image

apiVersion: {{ if semverCompare ">=1.20.0" .Capabilities.KubeVersion.Version }}batch/v1{{ else }}batch/v1beta1{{end}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant