Hauler Store Add Chart
Overview​
hauler store add chart adds a helm chart to the store.
An example with available flags...
hauler store add chart <chart-name> --repo <chart-repository> --version <chart version>
Command Overview​
Usage:
hauler store add chart [flags]
Examples:
# fetch local helm chart
hauler store add chart path/to/chart/directory --repo .
# fetch local compressed helm chart
hauler store add chart path/to/chart.tar.gz --repo .
# fetch remote oci helm chart
hauler store add chart hauler-helm --repo oci://ghcr.io/hauler-dev
# fetch remote oci helm chart with version
hauler store add chart hauler-helm --repo oci://ghcr.io/hauler-dev --version 1.2.0
# fetch remote helm chart
hauler store add chart rancher --repo https://releases.rancher.com/server-charts/stable
# fetch remote helm chart with specific version
hauler store add chart rancher --repo https://releases.rancher.com/server-charts/latest --version 2.10.1
# fetch remote helm chart and rewrite path
hauler store add chart hauler-helm --repo oci://ghcr.io/hauler-dev --rewrite custom-path/hauler-chart:latest
Flags:
--add-dependencies (EXPERIMENTAL & Optional) Fetch dependent helm charts
--add-images (EXPERIMENTAL & Optional) Fetch images referenced in helm charts
--ca-file string (Optional) Location of CA Bundle to enable certification verification
--cert-file string (Optional) Location of the TLS Certificate to use for client authentication
-h, --help help for chart
--insecure-skip-tls-verify (Optional) Skip TLS certificate verification
--key-file string (Optional) Location of the TLS Key to use for client authentication
--kube-version string (EXPERIMENTAL & Optional) Override the kubernetes version for helm template rendering (default "v1.34.1")
--password string (Optional) Password to use for authentication
-p, --platform string (Optional) Specify the platform of the image, e.g. linux/amd64
-g, --registry string (Optional) Specify the registry of the image for images that do not alredy define one
--repo string Location of the chart (https:// | http:// | oci://)
--rewrite string (EXPERIMENTAL & Optional) Rewrite artifact path to specified string
--username string (Optional) Username to use for authentication
--values string (EXPERIMENTAL & Optional) Specify helm chart values when fetching images
--verify (Optional) Verify the chart before fetching it
--version string (Optional) Specify the version of the chart (v1.0.0 | 2.0.0 | ^2.0.0)
Global Flags:
-d, --haulerdir string Set the location of the hauler directory (default $HOME/.hauler)
--ignore-errors Ignore/Bypass errors (i.e. warn on error) (defaults false)
-l, --log-level string Set the logging level (i.e. info, debug, warn) (default "info")
-r, --retries int Set the number of retries for operations (default 3)
-s, --store string Set the directory to use for the content store
-t, --tempdir string (Optional) Override the default temporary directory determined by the OS
Example Commands for Charts​
# fetch local helm chart
hauler store add chart path/to/chart/directory --repo .
# fetch local compressed helm chart
hauler store add chart path/to/chart.tar.gz --repo .
# fetch remote oci helm chart
hauler store add chart hauler-helm --repo oci://ghcr.io/hauler-dev
# fetch remote oci helm chart with version
hauler store add chart hauler-helm --repo oci://ghcr.io/hauler-dev --version 1.1.1
# fetch remote helm chart
hauler store add chart rancher --repo https://releases.rancher.com/server-charts/stable
# fetch remote helm chart with specific version
hauler store add chart rancher --repo https://releases.rancher.com/server-charts/latest --version 2.10.1
# fetch remote helm chart and rewrite path
hauler store add chart hauler-helm --repo oci://ghcr.io/hauler-dev --rewrite custom-path/hauler-chart:latest
# fetch remote helm chart and associated images
hauler store add chart gitea --repo https://dl.gitea.com/charts --add-images
# fetch remote helm chart and dependent chart(s)
hauler store add chart gitea --repo https://dl.gitea.com/charts --add-dependencies
Hauler Manifest for Charts​
hauler-chart-manifest.yaml
apiVersion: content.hauler.cattle.io/v1
kind: Charts
metadata:
name: hauler-content-charts-example
spec:
charts:
# fetch helm chart
- name: <chart-name>
# https:// or http:// or oci://
repoURL: <chart-repository>
# semver complaint
version: <chart-version>
Example Manifest for Charts​
hauler-chart-manifest.yaml
apiVersion: content.hauler.cattle.io/v1
kind: Charts
metadata:
name: hauler-content-charts-example
spec:
charts:
# fetch helm chart
- name: rancher
repoURL: https://releases.rancher.com/server-charts/stable
# fetch helm chart with specific version
- name: rancher-cluster-templates
repoURL: oci://ghcr.io/rancherfederal/charts
version: 0.6.1
Example Manifest with Rewrite​
hauler-chart-manifest.yaml
apiVersion: content.hauler.cattle.io/v1
kind: Charts
metadata:
name: hauler-content-charts-example
spec:
charts:
# fetch helm chart
- name: <chart-name>
# https:// or http:// or oci://
repoURL: <chart-repository>
# semver complaint
version: <chart-version>
# rewrite in store
rewrite: <desired-chart-reference>
Example Manifest with Add Images​
hauler-chart-manifest.yaml
apiVersion: content.hauler.cattle.io/v1
kind: Charts
metadata:
name: hauler-content-charts-example
spec:
charts:
# fetch helm chart
- name: <chart-name>
# https:// or http:// or oci://
repoURL: <chart-repository>
# semver complaint
version: <chart-version>
# add associated images
add-images: true
Example Manifest with Dependent Charts​
hauler-chart-manifest.yaml
apiVersion: content.hauler.cattle.io/v1
kind: Charts
metadata:
name: hauler-content-charts-example
spec:
charts:
# fetch helm chart
- name: <chart-name>
# https:// or http:// or oci://
repoURL: <chart-repository>
# semver complaint
version: <chart-version>
# add dependent charts
add-dependencies: true