-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from whylabs/aberg/langkit-chart-updates
Updating LangKit Helm Chart
- Loading branch information
Showing
6 changed files
with
118 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,73 @@ | ||
# charts | ||
Helm charts for WhyLabs | ||
# Helm Charts for WhyLabs | ||
|
||
## How to use WhyLabs Helm repository | ||
|
||
### Example Using the [LangKit Helm Chart](./charts/langkit/) | ||
|
||
#### Quick Start | ||
```shell | ||
helm pull \ | ||
oci://ghcr.io/whylabs/langkit \ | ||
--version "0.2.0" | ||
|
||
helm diff upgrade \ | ||
--allow-unreleased \ | ||
`# set namespace.create to false if the target namespace already exists` \ | ||
--set namespace.create=false \ | ||
--namespace langkit \ | ||
langkit langkit-0.2.0.tgz | ||
|
||
helm upgrade --install \ | ||
`# set namespace.create to false if the target namespace already exists` \ | ||
--set namespace.create=false \ | ||
--namespace langkit \ | ||
langkit langkit-0.2.0.tgz | ||
``` | ||
|
||
#### Extended Example | ||
```shell | ||
# Configure local variables for clarity and simplicity | ||
helm_repo="ghcr.io/whylabs" | ||
chart_name="langkit" | ||
chart_version="0.2.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 \ | ||
`# set namespace.create to false if the target namespace already exists` \ | ||
--set namespace.create=false \ | ||
--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 (which is what this example uses) | ||
helm upgrade --install \ | ||
`# set namespace.create to false if the target namespace already exists` \ | ||
--set namespace.create=false \ | ||
--namespace "${namespace}" \ | ||
"${release}" "${chart}" | ||
|
||
# Uninstall | ||
helm uninstall \ | ||
--namespace "${namespace}" \ | ||
"${release}" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
apiVersion: v2 | ||
name: langkit | ||
description: A Helm chart for Kubernetes | ||
description: A Helm chart for LangKit container deployment | ||
type: application | ||
version: 0.1.0 | ||
appVersion: "1.16.0" | ||
version: 0.2.0 | ||
appVersion: "0.0.28" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters