Skip to content

change predicates - #168

Open
Patrick Derks (TrayserCassa) wants to merge 1 commit into
mainfrom
change-predicates
Open

Patrick Derks (TrayserCassa) wants to merge 1 commit into
mainfrom
change-predicates

Conversation

@TrayserCassa

Copy link
Copy Markdown
Contributor
  • chore: change the predicate handeling and skip to many updates with deployment
  • chore: remove store status for deployments

@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Preview helm chart

helm upgrade --install shopware-operator \
  oci://ghcr.io/shopware/shopware-operator-preview/operator \
  --version 0.0.0-change-predicates.gbf99130
Chart version 0.0.0-change-predicates.gbf99130
Image tag change-predicates
Commit bf99130

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The global generation predicate blocks Secret rotations and delays detection of Deployment availability changes.

Review effort: Balanced
Findings: 1 High severity

Open (1)
What changed in this PR

Replaces custom status filtering with generation-based predicates and simplifies Store status output.

Changes:

  • Uses GenerationChangedPredicate across Store and snapshot controllers.
  • Removes the custom status-update predicate implementation.
  • Removes deployment readiness columns from Store output.
File Description
internal/​controller/​storesnapshot_restore_controller.go Changes restore event filtering.
internal/​controller/​storesnapshot_create_controller.go Changes create event filtering.
internal/​controller/​store_controller.go Changes Store watch filtering.
internal/​controller/​predicate.go Removes the custom predicate.
api/​v1/​store.go Removes deployment status columns.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread internal/controller/store_controller.go Outdated
…eployment

This will reduce the logs and remove reconciles if the deployment
updates the status. This will also lead to not accurate deployment
status.
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.

2 participants