diff --git a/README.md b/README.md index 7e2f76c..843d2ca 100644 --- a/README.md +++ b/README.md @@ -18,18 +18,18 @@ # Downloads a .tgz file to the working directory or --destination path helm pull \ oci://ghcr.io/whylabs/langkit \ - --version "0.7.0" + --version "0.9.0" helm diff upgrade \ --allow-unreleased \ --namespace langkit \ `# Specify the .tgz file as the chart` \ - langkit langkit-0.7.0.tgz + langkit langkit-0.9.0.tgz helm upgrade --install \ --create-namespace \ --namespace langkit \ - langkit langkit-0.7.0.tgz + langkit langkit-0.9.0.tgz ``` #### Extended Example @@ -37,7 +37,7 @@ helm upgrade --install \ # Configure local variables for clarity and simplicity helm_repo="ghcr.io/whylabs" chart_name="langkit" -chart_version="0.4.0" +chart_version="0.9.0" chart="${chart_name}-${chart_version}.tgz" # Release and namespace values mirror other variables for simplicity. diff --git a/charts/langkit/CHANGELOG.md b/charts/langkit/CHANGELOG.md index b615fdb..260f881 100644 --- a/charts/langkit/CHANGELOG.md +++ b/charts/langkit/CHANGELOG.md @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning] (https://semver.org/spec/v2.0.0.html). +## [0.9.0] - 2023-02-15 + +### Added + +- Added `TRANSFORMERS_OFFLINE` and `HF_DATASETS_OFFLINE` environment variables. + ## [0.8.0] - 2023-02-14 :heart: ### Added diff --git a/charts/langkit/Chart.yaml b/charts/langkit/Chart.yaml index e9aca40..d0dfe91 100644 --- a/charts/langkit/Chart.yaml +++ b/charts/langkit/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: langkit description: A Helm chart for LangKit container deployment type: application -version: 0.8.0 -appVersion: "1.0.2.dev4" +version: 0.9.0 +appVersion: "1.0.2.dev6" diff --git a/charts/langkit/README.md b/charts/langkit/README.md index ec4deb0..4e5e542 100644 --- a/charts/langkit/README.md +++ b/charts/langkit/README.md @@ -55,7 +55,7 @@ View the difference between the current state and desired state. # helm plugin install https://github.com/databus23/helm-diff helm diff upgrade \ --allow-unreleased \ - langkit langkit-0.8.0.tgz + langkit langkit-0.9.0.tgz ``` ### Install/Update @@ -63,14 +63,14 @@ helm diff upgrade \ helm upgrade --install \ --create-namespace \ --namespace langkit \ - langkit langkit-0.8.0.tgz + langkit langkit-0.9.0.tgz ``` ### Uninstall ```shell helm uninstall \ --namespace langkit \ - langkit langkit-0.8.0.tgz + langkit langkit-0.9.0.tgz ``` ## Development @@ -88,39 +88,22 @@ helm-docs --dry-run | Key | Type | Default | Description | |-----|------|---------|-------------| -| affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.labelSelector.matchExpressions[0].key | string | `"app.kubernetes.io/name"` | | -| affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.labelSelector.matchExpressions[0].operator | string | `"In"` | | -| affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.labelSelector.matchExpressions[0].values[0] | string | `"langkit"` | | -| affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.topologyKey | string | `"kubernetes.io/hostname"` | | -| affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].weight | int | `100` | | -| containers.env[0].name | string | `"HOME"` | | -| containers.env[0].value | string | `"/home"` | | -| containers.env[1].name | string | `"HF_HOME"` | | -| containers.env[1].value | string | `"/home/.cache/hf_home"` | | -| containers.securityContext.readOnlyRootFilesystem | bool | `true` | | -| containers.securityContext.runAsUser | int | `1000` | | -| containers.volumeMounts[0].mountPath | string | `"/tmp"` | | -| containers.volumeMounts[0].name | string | `"temp-dir"` | | -| containers.volumeMounts[1].mountPath | string | `"/home"` | | -| containers.volumeMounts[1].name | string | `"home"` | | +| containers.env | list | `[{"name":"TRANSFORMERS_OFFLINE","value":1},{"name":"HF_DATASETS_OFFLINE","value":1},{"name":"HOME","value":"/home"},{"name":"HF_HOME","value":"/home/.cache/hf_home"}]` | Environment variables for the containers | +| containers.securityContext | object | `{"readOnlyRootFilesystem":true,"runAsUser":1000}` | Container security context | +| containers.volumeMounts | list | `[{"mountPath":"/tmp","name":"temp-dir"},{"mountPath":"/home","name":"home"}]` | Volume mounts for containers | | fullnameOverride | string | `""` | | | image.containerPort | int | `8000` | | | image.pullPolicy | string | `"Always"` | | | image.repository | string | `"whylabs/whylogs"` | | -| image.tag | string | `"py-llm-1.0.2.dev4"` | | +| image.tag | string | `"py-llm-1.0.2.dev6"` | | | imagePullSecrets | list | `[]` | | | ingress.annotations | object | `{}` | | | ingress.className | string | `""` | | | ingress.enabled | bool | `false` | | -| ingress.hosts[0].host | string | `"chart-example.local"` | | -| ingress.hosts[0].paths[0].path | string | `"/"` | | -| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | | +| ingress.hosts | list | `[]` | | | ingress.tls | list | `[]` | | -| initContainers.command[0] | string | `"sh"` | | -| initContainers.command[1] | string | `"-c"` | | -| initContainers.command[2] | string | `"cp -R /opt/whylogs-container/.cache /home/"` | | -| initContainers.volumeMounts[0].mountPath | string | `"/home"` | | -| initContainers.volumeMounts[0].name | string | `"home"` | | +| initContainers.command | list | `["sh","-c","cp -R /opt/whylogs-container/.cache /home/"]` | Command for init container | +| initContainers.volumeMounts | list | `[{"mountPath":"/home","name":"home"}]` | Volume mounts for init container | | livenessProbe.initialDelaySeconds | int | `15` | | | livenessProbe.periodSeconds | int | `10` | | | livenessProbe.tcpSocket.port | int | `8000` | | @@ -137,8 +120,8 @@ helm-docs --dry-run | resources.limits.memory | string | `"16Gi"` | | | resources.requests.cpu | string | `"4"` | | | resources.requests.memory | string | `"8Gi"` | | -| secrets.langkitApiSecret | object | `{"name":"langkit-api-secret"}` | from-literal=CONTAINER_PASSWORD= | -| secrets.whylabsApiKey | object | `{"name":"whylabs-api-key"}` | from-literal=WHYLABS_API_KEY= | +| secrets.langkitApiSecret.name | string | `"langkit-api-secret"` | Name of the secret that stores the WhyLabs LangKit API Secret | +| secrets.whylabsApiKey.name | string | `"whylabs-api-key"` | Name of the secret that stores the WhyLabs API Key | | service.port | int | `80` | | | service.type | string | `"ClusterIP"` | | | serviceAccount.annotations | object | `{}` | | @@ -146,10 +129,7 @@ helm-docs --dry-run | serviceAccount.create | bool | `true` | | | serviceAccount.name | string | `""` | | | tolerations | list | `[]` | | -| volumes[0].emptyDir | object | `{}` | | -| volumes[0].name | string | `"temp-dir"` | | -| volumes[1].emptyDir | object | `{}` | | -| volumes[1].name | string | `"home"` | | +| volumes | list | `[{"emptyDir":{},"name":"temp-dir"},{"emptyDir":{},"name":"home"}]` | Volumes to create | ---------------------------------------------- Autogenerated from chart metadata using [helm-docs v1.12.0](https://github.com/norwoodj/helm-docs/releases/v1.12.0) diff --git a/charts/langkit/values.yaml b/charts/langkit/values.yaml index d9b5697..1f55e85 100644 --- a/charts/langkit/values.yaml +++ b/charts/langkit/values.yaml @@ -31,7 +31,7 @@ ingress: image: repository: whylabs/whylogs pullPolicy: Always - tag: py-llm-1.0.2.dev4 + tag: py-llm-1.0.2.dev6 containerPort: 8000 imagePullSecrets: [] @@ -56,6 +56,10 @@ containers: # runAsUser: 1000 # containers.env -- (list) Environment variables for the containers env: + - name: TRANSFORMERS_OFFLINE + value: "1" + - name: HF_DATASETS_OFFLINE + value: "1" - name: HOME value: "/home" - name: HF_HOME