Skip to content

WIP 🐛 Preserve user changes to deployment pod templates#2512

Open
camilamacedo86 wants to merge 1 commit intooperator-framework:mainfrom
camilamacedo86:test-asked
Open

WIP 🐛 Preserve user changes to deployment pod templates#2512
camilamacedo86 wants to merge 1 commit intooperator-framework:mainfrom
camilamacedo86:test-asked

Conversation

@camilamacedo86
Copy link
Contributor

@camilamacedo86 camilamacedo86 commented Feb 16, 2026

Fixes OLM reverting user changes like kubectl rollout restart.
OLM no longer stores pod template metadata, allowing user changes o annotations, labels, and other fields to persist.

Copilot AI review requested due to automatic review settings February 16, 2026 17:56
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 16, 2026
@netlify
Copy link

netlify bot commented Feb 16, 2026

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit a809315
🔍 Latest deploy log https://app.netlify.com/projects/olmv1/deploys/6995e1b25f22ee0008419956
😎 Deploy Preview https://deploy-preview-2512--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@openshift-ci
Copy link

openshift-ci bot commented Feb 16, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign grokspawn for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds an end-to-end test to verify that OLMv1, when using Server-Side Apply, does not revert user-initiated changes to deployed resources. The test specifically validates the scenario where a user runs kubectl rollout restart deployment, which was problematic in OLMv0. The PR is explicitly marked as Work In Progress (WIP).

Changes:

  • Added new feature file rollout-restart.feature with a scenario testing user-initiated deployment changes
  • Implemented three new step functions: UserAddsRestartAnnotation, ResourceHasRestartAnnotation, and ClusterExtensionAnnotationIsSet

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
test/e2e/features/rollout-restart.feature New feature file defining the test scenario for verifying OLMv1 doesn't revert user-initiated changes to deployments
test/e2e/steps/steps.go Added three new step functions to support the rollout restart test scenario and registered them in the step definitions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings February 18, 2026 09:13
@camilamacedo86 camilamacedo86 changed the title WIP: Add test verifies that OLMv1 does not revert user-initiated changes to deployed resources 🐛 fix: Preserve user changes to deployment pod templates Feb 18, 2026
@camilamacedo86 camilamacedo86 changed the title 🐛 fix: Preserve user changes to deployment pod templates 🐛 Preserve user changes to deployment pod templates Feb 18, 2026
@camilamacedo86 camilamacedo86 removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 18, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@camilamacedo86 camilamacedo86 changed the title 🐛 Preserve user changes to deployment pod templates WIP 🐛 Preserve user changes to deployment pod templates Feb 18, 2026
Copilot AI review requested due to automatic review settings February 18, 2026 15:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Fixes OLM reverting user changes like kubectl rollout restart.
OLM no longer stores pod template metadata, allowing user changes o annotations, labels, and other fields to persist.

Generate-by: Cursor/Claude
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments