-
Notifications
You must be signed in to change notification settings - Fork 121
Freshen up dry run mode for the installer/controller #1288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #1288 +/- ##
==========================================
- Coverage 48.28% 48.14% -0.15%
==========================================
Files 20 20
Lines 4316 4333 +17
==========================================
+ Hits 2084 2086 +2
- Misses 2011 2022 +11
- Partials 221 225 +4
🚀 New features to boost your workflow:
|
|
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
WalkthroughThe changes add and refactor dry-run mode support across multiple components. They include field reordering in controller configuration, conditional logic gates for system operations in dry-run mode, function signature updates to pass control plane count information to dry-run mock preparations, and a short-circuit execution path for image writing in dry-run mode. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes ✨ Finishing touches
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro Cache: Disabled due to data retention organization setting Knowledge base: Disabled due to 📒 Files selected for processing (5)
🚧 Files skipped from review as they are similar to previous changes (1)
🧰 Additional context used📓 Path-based instructions (1)**⚙️ CodeRabbit configuration file
Files:
🧬 Code graph analysis (2)src/main/drymock/dry_mode_k8s_mock.go (2)
src/main/assisted-installer-controller/assisted_installer_main.go (2)
🔇 Additional comments (7)
✏️ Tip: You can disable this entire section by setting 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. 🔧 golangci-lint (2.5.0)Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions Comment |
|
/remove-lifecycle stale |
|
In general I'd prefer if we push dry-run flag (or options) within each command, so we wouldn't pollute with if statement the logic flow - a bit like it's done here: I know this is a PR just extending the existing dry-run, which is already done this way all-over the place - would you say it's feasible or should we just create a task to tidy up in the future? |
I don't have the capacity to test further changes, just want to fix the lint errors and merge for now |
The installer/controller dry run mode has not been kept up to date with recent changes. This commit updates the dry run mode to skip actions that would modify the system, such as writing to disk or starting services when in dry run mode. This will avoid damaging the host system when testing the installer in dry run mode (used by https://github.com/openshift-assisted/assisted-swarm)
|
/remove-label downstream-change-needed |
|
/lgtm |
|
Scheduling tests matching the |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: omertuc, rccrdpccl 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 |
|
@omertuc: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/retest |
The installer/controller dry run mode has not been kept up to date with
recent changes. This commit updates the dry run mode to skip actions
that would modify the system, such as writing to disk or starting
services when in dry run mode.
This will avoid damaging the host system when testing the installer in
dry run mode (used by https://github.com/openshift-assisted/assisted-swarm)