Skip to content

Commit

Permalink
Merge pull request #34 from whylabs/dev/aberg/fix-mounts
Browse files Browse the repository at this point in the history
Fix extraVolumeMounts and bump default image
  • Loading branch information
AnchorArray authored Sep 4, 2024
2 parents 1b36e4a + 240f931 commit 81370ef
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
10 changes: 10 additions & 0 deletions charts/guardrails/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ 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.2.2] - 2024-09-04

### Updated

- Default image tag from `1.0.23` to `2.0.1`

### Fixed

- `extraVolumeMounts` was not adding volume mounts as expected.

## [0.2.1] - 2024-07-25

### Updated
Expand Down
4 changes: 2 additions & 2 deletions charts/guardrails/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: guardrails
description: A Helm chart for WhyLabs Guardrails
type: application
version: 0.2.1
appVersion: "1.0.23"
version: 0.2.2
appVersion: "2.0.1"
8 changes: 4 additions & 4 deletions charts/guardrails/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# guardrails

![Version: 0.2.1](https://img.shields.io/badge/Version-0.2.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.23](https://img.shields.io/badge/AppVersion-1.0.23-informational?style=flat-square)
![Version: 0.2.2](https://img.shields.io/badge/Version-0.2.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.1](https://img.shields.io/badge/AppVersion-2.0.1-informational?style=flat-square)

A Helm chart for WhyLabs Guardrails

Expand Down Expand Up @@ -75,14 +75,14 @@ release_name=""
# the working directory or --destination path
helm pull \
oci://ghcr.io/whylabs/guardrails \
--version 0.2.1
--version 0.2.2

# Requires the helm-diff plugin to be installed:
# helm plugin install https://github.com/databus23/helm-diff
helm diff upgrade \
--allow-unreleased \
--namespace "${target_namespace}" \
"${release_name}" guardrails-0.2.1.tgz
"${release_name}" guardrails-0.2.2.tgz
```

After you've installed the repo you can install the chart.
Expand All @@ -91,7 +91,7 @@ After you've installed the repo you can install the chart.
helm upgrade --install \
--create-namespace \
--namespace "${target_namespace}" \
"${release_name}" guardrails-0.2.1.tgz
"${release_name}" guardrails-0.2.2.tgz
```

## Exposing Guardrails Outside Kubernetes
Expand Down
4 changes: 1 addition & 3 deletions charts/guardrails/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,8 @@ spec:
volumeMounts:
- name: temp-dir
mountPath: /tmp
{{- if .Values.extraVolumeMounts }}
{{- with .extraVolumeMounts }}
{{- with .Values.extraVolumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
volumes:
- name: temp-dir
Expand Down

0 comments on commit 81370ef

Please sign in to comment.