-
Notifications
You must be signed in to change notification settings - Fork 33
SDK 1.18.0 release notes and metadata endpoint docs #3882
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -210,6 +210,53 @@ Response: Status `201` Created | |
| } | ||
| ``` | ||
|
|
||
| ## supportbundle | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| ### POST /supportbundle/metadata | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| Set support bundle metadata (key-value pairs) by replacing any existing metadata. | ||
|
|
||
| The SDK stores metadata as top-level keys in a Kubernetes secret named `replicated-support-metadata` in the SDK namespace. You can use the `supportBundleMetadata` collector to include this metadata in support bundles. For more information about this collector, see [Support Bundle Metadata](https://troubleshoot.sh/docs/collect/support-bundle-metadata) in the Troubleshoot documentation. | ||
|
|
||
| ```bash | ||
| POST http://replicated:3000/api/v1/supportbundle/metadata | ||
| ``` | ||
|
|
||
| Request: | ||
|
|
||
| ```json | ||
| { | ||
| "data": { | ||
| "key1": "value1", | ||
| "key2": "value2" | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| Response: Status `200` OK | ||
|
|
||
| ### PATCH /supportbundle/metadata | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📝 [vale] reported by reviewdog 🐶
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| Merge support bundle metadata (key-value pairs) with any existing metadata. `PATCH /supportbundle/metadata` adds new keys and updates existing keys. It preserves any keys excluded from the request. | ||
|
|
||
| The SDK stores metadata as top-level keys in a Kubernetes secret named `replicated-support-metadata` in the SDK namespace. You can use the `supportBundleMetadata` collector to include this metadata in a support bundle. For more information about this collector, see [Support Bundle Metadata](https://troubleshoot.sh/docs/collect/support-bundle-metadata) in the Troubleshoot documentation. | ||
|
|
||
| ```bash | ||
| PATCH http://replicated:3000/api/v1/supportbundle/metadata | ||
| ``` | ||
|
|
||
| Request: | ||
|
|
||
| ```json | ||
| { | ||
| "data": { | ||
| "key3": "value3" | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| Response: Status `200` OK | ||
|
|
||
| ## license | ||
|
|
||
| ### GET /license/info | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [vale] reported by reviewdog 🐶
[Vale.Spelling] Did you really mean 'supportbundle'?