Skip to content

Commit

Permalink
Remove unused property desc
Browse files Browse the repository at this point in the history
  • Loading branch information
jlandowner committed Dec 20, 2023
1 parent 45c68f3 commit 9244250
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@ Values files can have a `testSpec` property that can detail or control the test

```yaml
testSpec:
# desc is a description for the set of values
desc: only required values and the rest is default
# dynamicFields defines values that are dynamically generated by Helm function like 'randAlphaNum'
# https://helm.sh/docs/chart_template_guide/function_list/#randalphanum-randalpha-randnumeric-and-randascii
# Replace outputs with fixed values to prevent unmatched outputs at each snapshot.
Expand All @@ -199,6 +197,26 @@ testSpec:
# ...
```

Or if you have multiple test values file, you can place `.chartsnap.yaml` in your test values directory to configure common behavior of your chart snapshots.

```yaml:.chartsnap.yaml
testSpec:
dynamicFields:
- apiVersion: v1
kind: Secret
name: cosmo-auth-env
jsonPath:
- /data/COOKIE_HASHKEY
- /data/COOKIE_BLOCKKEY
- /data/COOKIE_HASHKEY
- /data/COOKIE_SESSION_NAME
```

```sh
$ ls -l test/

```

## Showcase & Users ✨

| Users / Projects | Description | URL |
Expand Down
2 changes: 0 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ In addition, Values files can have a ` + "`" + `testSpec` + "`" + ` property tha
` + "```" + `yaml
testSpec:
# desc is a description for the set of values
desc: only required values and the rest is default
# dynamicFields defines values that are dynamically generated by Helm function like 'randAlphaNum'
# https://helm.sh/docs/chart_template_guide/function_list/#randalphanum-randalpha-randnumeric-and-randascii
# Replace outputs with fixed values to prevent unmatched outputs at each snapshot.
Expand Down
1 change: 0 additions & 1 deletion pkg/charts/testspec.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ type SnapshotValues struct {
}

type TestSpec struct {
Description string `yaml:"desc,omitempty"`
DynamicFields []ManifestPath `yaml:"dynamicFields,omitempty"`
}

Expand Down

0 comments on commit 9244250

Please sign in to comment.