Kubernetes 如何从没有helm init的图表在我的CI上创建helm包?或访问群集

Kubernetes 如何从没有helm init的图表在我的CI上创建helm包?或访问群集,kubernetes,continuous-integration,devops,continuous-deployment,kubernetes-helm,Kubernetes,Continuous Integration,Devops,Continuous Deployment,Kubernetes Helm,我正在尝试在我的CI服务器上打包一个helm图表,而无需helm init docker run --rm -v "$PWD":/tmp/src/ -w /tmp/src/ alpine/helm helm package ./charts docker run --rm -v "$PWD":/tmp/src/ -w /tmp/src/ alpine/helm helm init --client-only && helm package ./charts 以上不起作

我正在尝试在我的CI服务器上打包一个helm图表,而无需helm init

  docker run --rm -v "$PWD":/tmp/src/ -w /tmp/src/ alpine/helm helm package ./charts
  docker run --rm -v "$PWD":/tmp/src/ -w /tmp/src/ alpine/helm  helm init --client-only && helm package ./charts

以上不起作用,任何人都可以帮忙!我认为这将是一个常见的请求—能够创建一个helm包,而不需要.kube文件夹或访问集群

您可能需要查看

基本上,您可以使用Maven获得相同的结果,并且应该能够在大多数CI软件中实现这一点