Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add toYaml and fromYaml example #230

Merged
merged 4 commits into from
Jul 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add toYaml example
  • Loading branch information
ebuildy committed May 11, 2024
commit 3e13a19ded77d902156160eadf71cb1ed109c324
10 changes: 10 additions & 0 deletions example-charts/use-yaml-file/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ A very simple chart that doesn't even need any values for customization
| mask-data-incr | true | rg-mask-data |
| mask-data | false | rg-mask-data |

### Default resources

```yaml
requests:
cpu: 10m
memory: 100m
```

## Installing the Chart

To install the chart with the release name `my-release`:
Expand All @@ -30,6 +38,8 @@ $ helm install my-release foo-bar/no-values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| resources.requests.cpu | string | `"10m"` | |
| resources.requests.memory | string | `"100m"` | |
| volumeSnapshotClass.azure.parameters | object | `{}` | |
| volumeSnapshotClass.local.parameters | object | `{}` | |
| volumeSnapshotClass.mask-data.parameters.resourceGroup | string | `"rg-mask-data"` | |
Expand Down
6 changes: 6 additions & 0 deletions example-charts/use-yaml-file/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
{{- end }}
{{- end }}

### Default resources

```yaml
{{ $values.resources | toYaml }}
```

## Installing the Chart

To install the chart with the release name `my-release`:
Expand Down
5 changes: 5 additions & 0 deletions example-charts/use-yaml-file/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ volumeSnapshotClass:
mask-data:
parameters:
resourceGroup: rg-mask-data

resources:
requests:
cpu: 10m
memory: 100m