Skip to content

Commit

Permalink
document: [issue-1401]: Added documenation for helm values in helm co…
Browse files Browse the repository at this point in the history
…llector (#534)

* document: [issue-1401]: Added documenation for helm values in helm collector

Signed-off-by: Akash Shrivastava <[email protected]>

* added values example for helm

Signed-off-by: Akash Shrivastava <[email protected]>

---------

Signed-off-by: Akash Shrivastava <[email protected]>
  • Loading branch information
avaakash authored Jan 23, 2024
1 parent de327eb commit 280ba5d
Showing 1 changed file with 39 additions and 15 deletions.
54 changes: 39 additions & 15 deletions docs/source/collect/helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ The name of the helm release. If not specified, all releases will be searched or

**Note:** if both `namespace` and `releaseName` are not specified, all releases in all namespaces will be collected.

#### `collectValues`(Optional)
If set to `true`, the values of the helm release will be collected. Defaults to `false`.

## Example Collector Definitions

Collect All Helm Releases in All Namespaces:
Expand Down Expand Up @@ -70,27 +73,49 @@ spec:
releaseName: mysql-1692919203
```
Collect All Helm Releases in All Namespaces with Helm Values:
```yaml
apiVersion: troubleshoot.sh/v1beta2
kind: SupportBundle
metadata:
name: sample
spec:
collectors:
- helm:
collectValues: true
```
## Included resources
When this collector is executed, it will include the following files in a support bundle:
`/helm/[namespace].json`

```json
[
{
"releaseName": "mysql-1692919203",
"chart": "mysql",
"chartVersion": "9.10.9",
"appVersion": "8.0.34",
"namespace": "default",
"releaseHistory": [
{
"revision": "1",
"date": "2023-08-25 11:20:05.153483 +1200 NZST",
"status": "deployed"
}
]
}
{
"releaseName": "mysql-1692919203",
"chart": "mysql",
"chartVersion": "9.10.9",
"appVersion": "8.0.34",
"namespace": "default",
"releaseHistory": [
{
"revision": "1",
"date": "2023-08-25 11:20:05.153483 +1200 NZST",
"status": "deployed",
"values": {
"affinity": {},
"image": {
"digest": "",
"pullPolicy": "IfNotPresent",
"pullSecrets": [],
"registry": "docker.io",
"repository": "bitnami/git",
"tag": "2.41.0-debian-11-r76"
},
},
}
}
]
```

Expand All @@ -113,4 +138,3 @@ The namespace of the helm release

#### `releaseHistory`
The history of the helm release

0 comments on commit 280ba5d

Please sign in to comment.