Skip to content

🐛 (deploy-image/v1alpha1): drop patchStrategy/protobuf tags from Conditions #4893

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

Merged
merged 1 commit into from
Jun 30, 2025

Conversation

camilamacedo86
Copy link
Member

@camilamacedo86 camilamacedo86 commented Jun 30, 2025

Simplify the Conditions field in status scaffolding by removing patchStrategy, patchMergeKey, and protobuf tags.

Applied to:

  • deploy-image/alpha-v1 plugin template
  • Getting Started Memcached example

These fields are unnecessary by default and can introduce unexpected
strategic merge behavior. Omitting them simplifies CRD scaffolding
and avoids compatibility risks for most use cases.

Follows Kubernetes API conventions:
https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties

Motivation

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 30, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: camilamacedo86

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

The pull request process is described here

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

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 30, 2025
@camilamacedo86 camilamacedo86 changed the title 🐛 plugin/deploy-image/v1alpha1: drop patchStrategy/protobuf tags from Conditions 🐛 plugin/deploy-image/v1alpha1 and samples: drop patchStrategy/protobuf tags from Conditions Jun 30, 2025
…onditions

Simplify the Conditions field in status scaffolding by removing
patchStrategy, patchMergeKey, and protobuf tags.

Applied to:
- deploy-image/alpha-v1 plugin template
- Getting Started Memcached example

These tags are unnecessary by default and can cause unintended
merge behavior. This aligns with best practices for CRD scaffolding.
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 30, 2025
@camilamacedo86 camilamacedo86 changed the title 🐛 plugin/deploy-image/v1alpha1 and samples: drop patchStrategy/protobuf tags from Conditions 🐛 (deploy-image/v1alpha1): drop patchStrategy/protobuf tags from Conditions Jun 30, 2025
@camilamacedo86
Copy link
Member Author

Moving forward, to not block others' follow-up PRs
Since it was requested as part of kube-api-linter review and already checked by others and it is very small

@camilamacedo86 camilamacedo86 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 30, 2025
@camilamacedo86 camilamacedo86 requested a review from JoelSpeed June 30, 2025 08:09
@JoelSpeed
Copy link

/lgtm

For completeness, these markers have no effect on CRDs and only affect core/built-in Kube API types and those built using aggregated API servers

@k8s-ci-robot k8s-ci-robot merged commit 6d79463 into kubernetes-sigs:master Jun 30, 2025
35 checks passed
@camilamacedo86 camilamacedo86 deleted the fix-confitions branch June 30, 2025 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants