fix(two-node): support proxy env file in bare metal diagnostic mode#242
fix(two-node): support proxy env file in bare metal diagnostic mode#242dhensel-rh wants to merge 1 commit into
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dhensel-rh The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (4)
WalkthroughThe two-node diagnosis script adds optional ChangesTwo-node diagnostics
Estimated code review effort: 2 (Simple) | ~5 minutes 🚥 Pre-merge checks | ✅ 10 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (10 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 markdownlint-cli2 (0.23.0)plugins/two-node/skills/cluster-diagnostic/README.mdmarkdownlint-cli2 v0.23.0 (markdownlint v0.41.0) ... [truncated 1101 characters] ... node:internal/modules/esm/resolve:271:11) Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@plugins/two-node/scripts/diagnose-cluster.sh`:
- Around line 87-88: Add a ShellCheck directive immediately before the dynamic
source in the PROXY_ENV execution branch, marking the intentionally arbitrary
sourced file as /dev/null so SC1090 is suppressed while preserving the existing
source-and-oc behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 6350d3dd-33f1-4469-9c31-34c65410c9c3
📒 Files selected for processing (1)
plugins/two-node/scripts/diagnose-cluster.sh
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@plugins/two-node/skills/cluster-diagnostic/README.md`:
- Around line 64-65: Remove the hardcoded BMC_PASS=changeme assignment from the
README example and instruct users to provide BMC_PASS securely through their
external environment or secret management instead. Keep the BMC_USER example and
surrounding setup guidance intact.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 3c57b91e-4cfd-457a-a569-8d5daec7e227
📒 Files selected for processing (1)
plugins/two-node/skills/cluster-diagnostic/README.md
…ostic README Add PROXY_ENV support to diagnose-cluster.sh so bare metal deployments can source a proxy env file for oc commands instead of routing through a bastion host. Add getting started guide for the cluster-diagnostic skill covering setup, BMC debugging, and usage examples. Also bumps two-node plugin version to 1.1.1. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
8471075 to
9faff2a
Compare
Summary
PROXY_ENVvariable todiagnose-cluster.shfor bare metal deploymentsoccommands source the proxy env file before running, instead of routing through a bastion host as in the hypervisor/VM pathTest plan
PROXY_ENV=/path/to/proxy.env ./diagnose-cluster.shon a bare metal two-node cluster🤖 Generated with Claude Code
Summary by CodeRabbit
occommands load proxy settings in direct SSH mode.