Skip to content

Commit 9e1d730

Browse files
Merge pull request #289532 from jonathany-ms/jonathany-ms/add-collect-helm-release-doc
[operator-nexus] [release 3.15] Documentation for run-data-extract command collect-helm-releases
2 parents 7798dd5 + f34ec10 commit 9e1d730

File tree

1 file changed

+117
-0
lines changed

1 file changed

+117
-0
lines changed

articles/operator-nexus/howto-baremetal-run-data-extract.md

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@ The current list of supported commands are
189189
Command Name: `cluster-cve-report`\
190190
Arguments: None
191191

192+
- [Collect Helm Releases](#collect-helm-releases)\
193+
Command Name: `collect-helm-releases`\
194+
Arguments: None
195+
192196
- [Collect `systemctl status` Output](#collect-systemctl-status-output)\
193197
Command Name: `platform-services-status`\
194198
Arguments: None
@@ -666,6 +670,119 @@ https://cmkfjft8twwpst.blob.core.windows.net/bmm-run-command-output/20b217b5-ea3
666670

667671
The CVE data is refreshed per container image every 24 hours or when there's a change to the Kubernetes resource referencing the image.
668672

673+
### Collect Helm Releases
674+
675+
Helm release data is collected with the `collect-helm-releases` command and formatted as json to `{year}-{month}-{day}-helm-releases.json`. The JSON file is found in the data extract zip file located in the storage account. The data collected includes all helm release information from the Cluster, which consists of the standard data returned when running the command `helm list`.
676+
677+
This example executes the `collect-helm-releases` command without arguments.
678+
679+
> [!NOTE]
680+
> The target machine must be a control-plane node or the action will not execute.
681+
682+
```azurecli
683+
az networkcloud baremetalmachine run-data-extract --name "bareMetalMachineName" \
684+
--resource-group "cluster_MRG" \
685+
--subscription "subscription" \
686+
--commands '[{"command":"collect-helm-releases"}]' \
687+
--limit-time-seconds 600
688+
```
689+
690+
**`collect-helm-releases` Output**
691+
692+
```azurecli
693+
====Action Command Output====
694+
Helm releases report saved.
695+
696+
697+
================================
698+
Script execution result can be found in storage account:
699+
https://cmcr5xp3mbn7st.blob.core.windows.net/bmm-run-command-output/a29dcbdb-5524-4172-8b55-88e0e5ec93ff-action-bmmdataextcmd.tar.gz?se=2024-10-30T02%3A09%3A54Z&sig=v6cjiIDBP9viEijs%2B%2BwJDrHIAbLEmuiVmCEEDHEi%2FEc%3D&sp=r&spr=https&sr=b&st=2024-10-29T22%3A09%3A54Z&sv=2023-11-03
700+
```
701+
702+
**Helm Release Schema**
703+
704+
```JSON
705+
{
706+
"$schema": "http://json-schema.org/schema#",
707+
"type": "object",
708+
"properties": {
709+
"metadata": {
710+
"type": "object",
711+
"properties": {
712+
"dateRetrieved": {
713+
"type": "string"
714+
},
715+
"platform": {
716+
"type": "string"
717+
},
718+
"resource": {
719+
"type": "string"
720+
},
721+
"clusterId": {
722+
"type": "string"
723+
},
724+
"runtimeVersion": {
725+
"type": "string"
726+
},
727+
"managementVersion": {
728+
"type": "string"
729+
}
730+
},
731+
"required": [
732+
"clusterId",
733+
"dateRetrieved",
734+
"managementVersion",
735+
"platform",
736+
"resource",
737+
"runtimeVersion"
738+
]
739+
},
740+
"helmReleases": {
741+
"type": "array",
742+
"items": {
743+
"type": "object",
744+
"properties": {
745+
"name": {
746+
"type": "string"
747+
},
748+
"namespace": {
749+
"type": "string"
750+
},
751+
"revision": {
752+
"type": "string"
753+
},
754+
"updated": {
755+
"type": "string"
756+
},
757+
"status": {
758+
"type": "string"
759+
},
760+
"chart": {
761+
"type": "string"
762+
},
763+
"app_version": {
764+
"type": "string"
765+
}
766+
},
767+
"required": [
768+
"app_version",
769+
"chart",
770+
"name",
771+
"namespace",
772+
"revision",
773+
"status",
774+
"updated"
775+
]
776+
}
777+
}
778+
},
779+
"required": [
780+
"helmReleases",
781+
"metadata"
782+
]
783+
}
784+
```
785+
669786
### Collect Systemctl Status Output
670787

671788
Service status is collected with the `platform-services-status` command. The output is in plain text format and

0 commit comments

Comments
 (0)