wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq && chmod +x /usr/bin/yq && yq --version
yum install moreutils -y
#文件合并
yq eval-all 'select(fileIndex == 0) * select(fileIndex == 1)' a.yaml b.yaml | sponge a.yaml
#单个值合并
yq e '.service-core.image.tag = "2.156-a4e6c5f"' ./helm/envs/prod.yaml -i