Repository navigation
feat(helm): collect dependency workloads from multi-Deployment releases [Intelligent Assistant OKP] - #361
Conversation
fd1359f to
5a6ba82
Compare
|
PR images are available (for 1 week):
|
|
@rm3l Could you please take a look at this PR? Thank you. |
Thanks @maysunfaisal. Note that we are currently rewriting the must-gather to Golang in #356 |
rm3l
left a comment
There was a problem hiding this comment.
@rm3l Could you please take a look at this PR? Thank you.
Thanks @maysunfaisal. Note that we are currently rewriting the must-gather to Golang in #356 The PR is still under review but should hopefully be merged soon. So it'll be better if your PR is recreated after that refactoring PR is merged. Thanks.
FYI, the rewrite PR has just been merged. Please recreate this PR in Golang. Thanks.
5a6ba82 to
6131a3f
Compare
|
@rm3l PTAL I have made teh changes in golang and verified with a rhdh-chart deployment while working on https://redhat.atlassian.net/browse/RHIDP-16949 |
|
PR images are available (for 1 week):
|
|
/agentic_review |
Code Review by Qodo
1. A dependency becomes primary
|
rm3l
left a comment
There was a problem hiding this comment.
Looks good, thanks. Worth addressing Qodo's comment: #361 (comment)
Native Helm releases can render multiple Deployments. Collecting only the first misses dependencies such as the Intelligent Assistant OKP workload. Collect every rendered Deployment, keep the one containing backstage-backend as the primary workload, and gather other Deployments under dependencies without Backstage-specific process or heap data. Document the layout and cover detection behavior in Go tests. Assisted-by: Claude Co-authored-by: Codex <noreply@openai.com>
6131a3f to
32d9deb
Compare
|
PR images are available (for 1 week):
|
|
@rm3l addressed qodo review, PTAL, thank you! |
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit 32d9deb |
Description
Native RHDH Helm releases can contain multiple Deployments, such as the main RHDH workload and Intelligent Assistant's standalone OKP workload.
Previously,
gather_helmtreated all Deployment names as a single value, resulting in an invalid Kubernetes resource name and incomplete diagnostic collection.This change:
backstage-backendas the primary RHDH workload.helm/releases/ns=<namespace>/<release>/dependencies/<deployment>/LCORE remains covered through the existing per-container collection because it runs as a sidecar in the main RHDH pod. OKP is collected as a separate dependency Deployment.
Which issue(s) does this PR fix or relate to
https://redhat.atlassian.net/browse/RHIDP-16868
(raised in redhat-developer/rhdh-chart#500 (comment))
PR acceptance criteria
How to test changes / Special notes to the reviewer
Automated validation
pre-commit run --all-files make testThe Linux BATS test suite passes all 164 tests. Pre-commit hooks pass without generated-file drift.
Test against an OpenShift deployment
Use a native Helm deployment of RHDH with Intelligent Assistant and OKP enabled:
make run-local \ BASE_COLLECTION_PATH=./out \ OPTS="--namespaces <namespace> --without-operator --without-orchestrator --without-platform --without-route --without-ingress --without-namespace-inspect"Inspect the collected files:
Expected results:
deployment/.container=lightspeed-core/directory.dependencies/<okp-deployment>/.This was validated on OpenShift using an RHDH Helm release containing:
backstage-backendandlightspeed-coreokpcontainer