Repository navigation
Conversation
Detect OKP Deployments controlled by each Backstage custom resource and collect their Kubernetes resources, logs, processes, and rollout history without Backstage application data. Co-authored-by: Codex <noreply@openai.com>
Contributor
|
PR images are available (for 1 week):
|
maysunfaisal
marked this pull request as ready for review
September 24, 2026 21:15
Member
Author
|
@rm3l @gazarenkov can you pls take a look? i tested it with redhat-developer/rhdh-operator#3370 |
Contributor
|
PR images are available (for 1 week):
|
rm3l
approved these changes
Sep 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Collect diagnostics for the standalone Offline Knowledge Portal (OKP) Deployment created by the RHDH Operator when the
intelligent-assistant-okpflavor is enabled.For each Backstage custom resource, the operator collector now finds a Deployment that:
rhdh.redhat.comAPI group;okpcontainer; andThe matched workload is collected under
operator/backstage-crs/ns=<namespace>/<cr-name>/okp-deployment/. The output includes the Deployment manifest and description, pods, current and previous logs, process information, and rollout history. Backstage-specific application data and heap dumps are intentionally skipped because OKP is not a Backstage application container.When Intelligent Assistant is enabled without the OKP flavor, no matching OKP Deployment exists, so the collector continues normally without creating an
okp-deployment/directory. Existing RHDH and Lightspeed Core collection remains unchanged.The documentation is updated to describe the dedicated
okp-deployment/output used for both Helm- and Operator-managed installations.Which issue(s) does this PR fix or relate to
https://redhat.atlassian.net/browse/RHIDP-16868
PR acceptance criteria
How to test changes / Special notes to the reviewer
Local validation:
make test golangci-lint run ./... go vet ./...The configured pre-commit hook also passes against the changed files.
To test against an Operator-managed RHDH installation with the
intelligent-assistant-okpflavor enabled:Verify that the following directory is present:
It should contain:
Also verify that:
current.txtcontains logs when activity occurred within the requested log window;previous.txtcan report that no previous terminated container exists when the OKP container has not restarted;data/orheap-dumps/directory is created for OKP; andokp-deployment/.