我想将官方网站sw-api图表模板中的图表移到独立的图表中,并将文件从sw-api的模板中移出然后使用helmfile应用程序,给我这个错误。
这是我的错误代码
Error: Failed to render chart: exit status 1:
Error: rendered manifests contain a resource that already exists.
Unable to continue with install: ConfigMap "official-web-config" in namespace "develop" exists and cannot be imported into the current release: invalid ownership metadata;
annotation validation error: key "meta.helm.sh/release-name" must equal "official-web": current value is "sw-api"
这个我的helm文件夹现在是
── sw-api
│ ├── Chart.yaml
│ ├── templates
│ │ ├── micros-worker
│ │ │ ├── configMap.yaml
│ │ │ ├── deployment.yaml
│ │ │ └── hpa.yaml
│ │ └── official-web
│ │ ├── certificate.yaml
│ │ ├── configMap.yaml
│ │ ├── deployment.yaml
│ │ ├── hpa.yaml
│ │ ├── ingress.yaml
│ │ ├── ip.yaml
│ │ └── svc.yaml
│ ├── values-dev.yaml
├── sw-api-values.yaml.gotmpl
── swagger
│ ├── Chart.yaml
│ ├── templates
│ │ ├── _helpers.tpl
│ │ ├── deployment.yaml
│ │ └── svc.yaml
│ ├── values-dev.yaml
我变得像这个
── official-web
│ ├── Chart.yaml
│ ├── templates
│ │ ├── _helpers.tpl
│ │ ├── certificate.yaml
│ │ ├── configMap.yaml
│ │ ├── deployment.yaml
│ │ ├── hpa.yaml
│ │ ├── ingress.yaml
│ │ ├── ip.yaml
│ │ └── svc.yaml
│ ├── values-dev.yaml
├── official-web-values.yaml.gotmpl
├── sw-api
│ ├── Chart.yaml
│ │ └── micros-worker
│ │ ├── configMap.yaml
│ │ ├── deployment.yaml
│ │ └── hpa.yaml
│ ├── values-dev.yaml
│ └── values-test.yaml
├── sw-api-values.yaml.gotmpl
并且执行helmfile应用命令(在命名空间"develop"中(:
helmfile -f helmfile.yaml --log-level=debug --debug -e dev apply
此错误显示在hemlfile应用之前
Error: Failed to render chart: exit status 1:
Error: rendered manifests contain a resource that already exists.
Unable to continue with install: ConfigMap "official-web-config" in namespace "develop" exists and cannot be imported into the current release: invalid ownership metadata;
annotation validation error: key "meta.helm.sh/release-name" must equal "official-web": current value is "sw-api"