Skip to main content
版本:预览版

vela addon push

uploads an addon package to ChartMuseum

Synopsis

Uploads an addon package to ChartMuseum.

Two arguments are needed <addon directory/package> and <name/URL of ChartMuseum>.

The first argument <addon directory/package> can be:

- your conventional addon directory (containing metadata.yaml). We will package it for you.
- packaged addon (.tgz) generated by 'vela addon package' command

The second argument <name/URL of ChartMuseum> can be:

- registry name (helm type). You can add your ChartMuseum registry using 'vela addon registry add'.
- ChartMuseum URL, e.g. http://localhost:8080
vela addon push [flags]

Examples

# Push the addon in directory <your-addon> to a ChartMuseum registry named <localcm>
$ vela addon push your-addon localcm

# Push packaged addon mongo-1.0.0.tgz to a ChartMuseum registry at http://localhost:8080
$ vela addon push mongo-1.0.0.tgz http://localhost:8080

# Force push, overwriting existing ones
$ vela addon push your-addon localcm -f

# If you already written your own Chart.yaml and don't want us to generate it for you:
$ vela addon push your-addon localcm --keep-chartmeta
# Note: when using .tgz packages, we will always keep the original Chart.yaml

# In addition to cli flags, you can also use environment variables
$ HELM_REPO_USERNAME=name HELM_REPO_PASSWORD=pswd vela addon push mongo-1.0.0.tgz http://localhost:8080

Options

      --access-token string   send token in Authorization header [$HELM_REPO_ACCESS_TOKEN]
-a, --app-version string override app version pre-push
--auth-header string alternative header to use for token auth [$HELM_REPO_AUTH_HEADER]
--ca-file string verify certificates of HTTPS-enabled servers using this CA bundle [$HELM_REPO_CA_FILE]
--cert-file string identify HTTPS client using this SSL certificate file [$HELM_REPO_CERT_FILE]
--context-path string ChartMuseum context path [$HELM_REPO_CONTEXT_PATH]
-f, --force force upload even if chart version exists
-h, --help help for push
--insecure connect to server with an insecure way by skipping certificate verification [$HELM_REPO_INSECURE]
--keep-chartmeta do not update Chart.yaml automatically according to addon metadata (only when addon dir provided)
--key-file string identify HTTPS client using this SSL key file [$HELM_REPO_KEY_FILE]
-p, --password string override HTTP basic auth password [$HELM_REPO_PASSWORD]
-t, --timeout int The duration (in seconds) vela cli will wait to get response from ChartMuseum (default 30)
--use-http use HTTP
-u, --username string override HTTP basic auth username [$HELM_REPO_USERNAME]
-v, --version string override chart version pre-push

Options inherited from parent commands

  -V, --verbosity Level   number for the log level verbosity
-y, --yes Assume yes for all user prompts

SEE ALSO

Go Back to CLI Commands Homepage.

Auto generated by spf13/cobra script in KubeVela.