Skip to content

whylabs/charts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helm Charts for WhyLabs

How to Use WhyLabs Helm Repository

⚠️ WhyLab's Helm charts are currently hosted on the GitHub Container Registry (GHCR), an OCI-compliant storage solution. While GHCR differs from traditional Helm repositories by not providing an index.yaml file for chart listings, it aligns with industry standards for container artifact storage. As we explore more comprehensive repository solutions, please use the helm pull command, followed by specifying the chart's .tgz file, to access and utilize our Helm charts.

Example Using the LangKit Helm Chart

Quick Start

# Downloads a .tgz file to the working directory or --destination path
helm pull \
  oci://ghcr.io/whylabs/langkit \
  --version "0.10.0"

helm diff upgrade \
  --allow-unreleased \
  --namespace langkit \
  `# Specify the .tgz file as the chart` \
  langkit langkit-0.10.0.tgz

helm upgrade --install \
  --create-namespace \
  --namespace langkit \
  langkit langkit-0.10.0.tgz

Extended Example

# Configure local variables for clarity and simplicity
helm_repo="ghcr.io/whylabs"
chart_name="langkit"
chart_version="0.10.0"
chart="${chart_name}-${chart_version}.tgz"

# Release and namespace values mirror other variables for simplicity.
# Set these to as desired
release="${chart_name}"
namespace="${release}"

# Downloads <chart_name>-<chart_version>.tgz to your current directory
helm pull \
  "oci://${helm_repo}/${chart_name}" \
  --version "${chart_version}"

# Performs a diff between current and proposed state
# --allow-unreleased flag will perform a diff even if there is no current state,
# i.e. a fresh installation will display all net new resource creation in the
# diff. --set namespace.create=false must be set if target namespace already
# exists; omit this line or set it to "true" if the target namespace should be
# created. Requires the helm-diff plugin to be installed:
# `helm plugin install https://github.com/databus23/helm-diff`
helm diff upgrade \
  --allow-unreleased \
  --namespace "${namespace}" \
  "${release}" "${chart}"

# helm upgrade --install supports installation and upgrades.
# In the `helm upgrade --install <release-name> <chart>` command, the chart may
# be a chart reference('example/postgres'), a path to a chart directory, a fully
# qualified URL, or a packaged chart (.tgz), which is what this example uses.
helm upgrade --install \
  --create-namespace \
  --namespace "${namespace}" \
  "${release}" "${chart}"

# Uninstall
helm uninstall \
  --namespace "${namespace}" \
  "${release}"

Development

Pre-Commit

Troubleshooting

Try executing pre-commit manually if it fails on commit:

git add .
pre-commit run --all-files