我正在开发helm版本,它采用了另一个GitHub存储库中的图表和模板,例如代码片段中提到的类似内容。
在这种情况下,我如何使用标准的helm命令(如helm template、helm install等)测试值渲染?
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: "HelmRelease"
metadata:
name: "services"
namespace: "manual"
annotations:
fluxcd.io/automated: "true"
spec:
interval: 2m
releaseName: "book-info"
chart:
spec:
**chart: ./backend**
version: 1.0.1
sourceRef:
name: charts
**kind: GitRepository**
namespace: flux2
我想要实现的是将单独的值传递到文件中的舵图。下面是整个舵释放。
我尝试过使用helm命令来渲染值
helm install mychart-0.1.0.tgz --debug --dry-run services-info.yaml
Error: INSTALLATION FAILED: seems to be a YAML file, but expected a gzipped archive
helm.go:84: [debug] file 'C:\Users\KambliAm\Desktop\Amey\flux-pdtk-dev\pdtk-dev\services-info.yaml' seems to be a YAML file, but expected a gzipped archive