项目作者: AliyunContainerService

项目描述 :
Alibaba Cloud's Helm plugin to push chart package to ChartMuseum.
高级语言: Go
项目地址: git://github.com/AliyunContainerService/helm-acr.git
创建时间: 2019-05-28T07:27:56Z
项目社区:https://github.com/AliyunContainerService/helm-acr

开源协议:Apache License 2.0

下载


helm acr

CircleCI
Go Report Card

Helm plugin to push chart package to ChartMuseum.

This project is forked from chartmuseum/helm-push.

Some modifications has been made to meet the security requirements on Alibaba Cloud:

  • the plugin is able to talk to auth server to gain a Bearer Token.
  • the plugin is able to use the Bearer Token to download/upload charts to Chartmuseum.
  • the plugin registers acr(short for Alibaba Cloud Container Registry) as protocol name in plugin.yaml.

Installation

  1. # make sure you have git installed
  2. yum install -y git
  3. # install plugin
  4. helm plugin install https://github.com/AliyunContainerService/helm-acr

Usage

Before you use Alibaba Cloud Container Registry’s hosted Helm charts service, you should:

  • purchase an ACR Enterprise Edition instance and activate its Helm charts service
  • have a Kubernetes cluster and have helm init done
  • make sure you have Internet access to GitHub to download plugin
  • create a Helm chart namespace in your ACR Enterprise Edition
  1. # add namespace/repo to your local repository
  2. # please change username/password/namespace/repo/url below
  3. export HELM_REPO_USERNAME=username; export HELM_REPO_PASSWORD=password;
  4. helm repo add demo acr://hello-acr-helm.cn-hangzhou.cr.aliyuncs.com/foo/bar --username ${HELM_REPO_USERNAME} --password ${HELM_REPO_PASSWORD}
  5. # create an empty chart locally
  6. helm create hello-acr
  7. # push the chart
  8. helm cm-push hello-acr demo
  9. # delete local chart
  10. rm -r hello-acr
  11. # update charts index from remote
  12. helm repo update
  13. # show all remote charts
  14. helm search
  15. # fetch the chart we uploaded
  16. helm fetch demo/hello-acr
  17. # delete local repository
  18. helm repo remove demo