vela addon push
uploads an addon package to a Helm or OCI registry
Synopsis
Uploads an addon package to a Helm or OCI registry.
Two arguments are needed <addon directory/package> and <registry name/URL>.
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 <registry name/URL> can be:
- registry name (helm type). You can add your ChartMuseum registry using 'vela addon registry add'.
- registry name (oci type). OCI pushes also update the portable addon catalog.
- ChartMuseum URL, e.g. http://localhost:8080
- OCI URL, e.g. oci://registry.example.com/addons
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
# Push to an OCI registry using a password from stdin
$ printf '%s' "$REGISTRY_PASSWORD" | vela addon push your-addon oci://registry.example.com/addons --username myuser --password-stdin
# Push to an OCI registry using credentials previously saved by Helm or Docker
$ vela addon push your-addon oci://registry.example.com/addons
# 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 a ChartMuseum token in the 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 registry basic auth password [$HELM_REPO_PASSWORD]
--password-stdin read the registry basic auth password from stdin
-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 registry 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
- vela addon - Manage addons for extension.