console
console copied to clipboard
nodeSelector在模板里如果给了默认值,那么即使在部署时修改了,在负载的yaml中还是会存在
Describe the bug nodeSelector在模板里如果给了默认值,那么即使在部署时修改了,在负载的yaml中还是会存在
For UI issues please also add a screenshot that shows the issue.
Versions used(KubeSphere/Kubernetes) KubeSphere: v3.2.1 Kubernetes: 1.21
Environment How many nodes and their hardware configuration: 3 masters: 8cpu/16g
To Reproduce Steps to reproduce the behavior:
- 在模板里设置nodeSelector默认值 nodeSelector: label1: "true" label2: "true"
- 上传到应用模板,并部署应用
- 在填写values.yaml配置时,修改nodeSelector的值,删掉默认值,改为label3: "true"
- 查看部署的负载yaml,能够看到nodeSelector中有三个选择器:label1,label2,label3
Expected behavior nodeSelector应该以我更新的为最新值,替换掉默认值
Existed merge 这个merge看样是通过put而不是patch方法解决的,但在v3.2.1上还是存在,没合入? https://github.com/kubesphere/console/pull/661/files