| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
The new ProviderConfig restore code can unintentionally drop unrelated ProviderConfig fields by round-tripping through a partial JSON struct, risking configuration loss.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overviewEnsures that when a MachineImageUpdate is marked Paused: true, the reconciler preserves runtime-discovered provider machineImages mappings stored in the existing CloudProfile.Spec.ProviderConfig instead of wiping them when the MCP spec has an empty/omitted provider config machineImages list.
Changes:
| File | Description |
|---|---|
| controllers/managedcloudprofile_controller_test.go | Adds a regression test verifying paused reconciles preserve existing ProviderConfig image mappings. |
| controllers/cloud_profile.go | Restores stored ProviderConfig machineImages for paused updates via JSON manipulation helpers. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
There was a problem hiding this comment.
The change is narrowly scoped, adds coverage for the intended regression scenario, and the reconciliation logic preserves the previously stored ProviderConfig mappings as intended.
Review details
Sorry, something went wrong.
Signed-off-by: C5421281 <yahor.kurachkin@sap.com>
There was a problem hiding this comment.
Critical compatibility and paused-reconciliation issues remain unresolved.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
Sorry, something went wrong.
There was a problem hiding this comment.
Address the legacy pause-field compatibility break and correctly detect existing CloudProfiles with empty fields.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
Sorry, something went wrong.
…images update Signed-off-by: C5421281 <yahor.kurachkin@sap.com>
There was a problem hiding this comment.
Address the breaking API migration and paused reconciliation fallback issues before approval.
Review detailsapi/v1alpha1/managedcloudprofile.go:20
// MachineImagesPaused disables automatic machine image updates and keeps the // existing CloudProfile machine images and provider config unchanged. Other // updates (e.g. Kubernetes versions and base spec fields) still apply. // +optional MachineImagesPaused bool `json:"machineImagesPaused,omitempty"`
controllers/cloud_profile.go:67
if len(storedMachineImages) > 0 {
cloudProfile.Spec.MachineImages = storedMachineImages
}
if storedProviderConfig != nil {
cloudProfile.Spec.ProviderConfig = storedProviderConfig
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
No description provided.