replicatedhq / troubleshoot

Preflight Checks and Support Bundles Framework for Kubernetes Applications
https://troubleshoot.sh
Apache License 2.0
544 stars 93 forks source link

feat(analyzer): allow templating for Node Resources Analyzer #1605

Closed DexterYan closed 2 weeks ago

DexterYan commented 2 weeks ago

Description, Motivation and Context

test support bundle yaml

<img width="1815" alt="Screenshot 2024-08-30 at 3 07 29 PM" src="https://github.com/user-attachments/assets/41fb1788-bf5d-459e-8967-2e762b1b5b15">

- simple filter

apiVersion: troubleshoot.sh/v1beta2 kind: SupportBundle metadata: name: sample spec: collectors:


<img width="1282" alt="Screenshot 2024-08-30 at 3 08 00 PM" src="https://github.com/user-attachments/assets/22a9354f-53ef-46f0-9ca8-bcdaa08e73a7">

<!--- If it relates to an open issue, please link to the issue here.
e.g.
Fixes: #414
-->
[sc-110574](https://app.shortcut.com/replicated/story/110574/allow-templating-of-outcome-messages-for-the-node-resources-analyzer)

## Checklist

- [x] New and existing tests pass locally with introduced changes.
- [x] Tests for the changes have been added (for bug fixes / features)
- [x] The commit message(s) are informative and highlight any breaking changes
- [ ] Any documentation required has been added/updated. For changes to https://troubleshoot.sh/ create a PR [here](https://github.com/replicatedhq/troubleshoot.sh/pulls)

## Does this PR introduce a breaking change?
- [ ] Yes
- [x] No

<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->