feat(ztp): add ZTP policy diagnosis prompt#180
feat(ztp): add ZTP policy diagnosis prompt#180edcdavid wants to merge 1 commit intoopenshift:mainfrom
Conversation
Add a new `ztp-policy-diagnose` server prompt that automates the diagnosis of NonCompliant ACM policies in ZTP GitOps environments. The prompt handler pre-fetches live cluster data (policy status, per-cluster compliance history, PlacementBinding/PlacementDecision details, and ArgoCD Application state) and assembles a multi-level investigation workflow with pattern-matching heuristics for common ZTP failure modes such as placement mismatches, oscillating compliance, immutable field rejections, hub template rendering failures, and deploy-wave ordering violations. Changes: - Create pkg/toolsets/openshift/ztp/policy_diagnose.go with the prompt definition, data-fetching helpers, and investigation guide builder - Register ZTP prompts in the OpenShift toolset - Bump vendored helm.sh/helm/v3 from v3.20.0 to v3.20.1
|
Skipping CI for Draft Pull Request. |
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Review skipped — only excluded labels are configured. (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: edcdavid The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Summary
ztp-policy-diagnoseserver prompt that automates diagnosis of NonCompliant ACM policies in ZTP GitOps environmentsChanges
pkg/toolsets/openshift/ztp/policy_diagnose.go— new file with prompt definition, data-fetching helpers, and investigation guide builderpkg/toolsets/openshift/toolset.go— register ZTP prompts in the OpenShift toolsetTest plan
ztp-policy-diagnosename