Skip to content

⚠️ Revert local override breaking behavioural change#1310

Merged
k8s-ci-robot merged 2 commits intokubernetes-sigs:mainfrom
JoelSpeed:revert-1270
Dec 4, 2025
Merged

⚠️ Revert local override breaking behavioural change#1310
k8s-ci-robot merged 2 commits intokubernetes-sigs:mainfrom
JoelSpeed:revert-1270

Conversation

@JoelSpeed
Copy link
Contributor

@JoelSpeed JoelSpeed commented Dec 1, 2025

This reverts part of #1270.

We introduced a way to allow local overrides of existing types validations. However, upon further discussion with the API machinery folks upstream and in particular talking about how this would align with upstream the declarative validation project, we believe this isn't the correct path forward.

Instead, this PR reverts that behaviour but retains looking up type and format information from the underlying type. Meaning type definitions may also apply textual or type specific markers locally.

To allow the local overrides in the future, we plan to introduce a +k8s:opaque marker which will prevent merging the markers from the type definition with the local overrides

I believe this may fix #1289, @shashankram can you give this PR a try?

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 1, 2025
@JoelSpeed
Copy link
Contributor Author

CC @alvaroaleman

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Dec 1, 2025
@JoelSpeed JoelSpeed changed the title ⚠️ Revert local override behaviour introduced in #1270 ⚠️ Revert local override breaking behavioural change Dec 1, 2025
Copy link
Member

@alvaroaleman alvaroaleman left a comment

Choose a reason for hiding this comment

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

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 1, 2025
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 1, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

DetailsGit tree hash: bcf58df1cc5db811702aba2aec73a723d4d0dcd6

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 1, 2025
@JoelSpeed
Copy link
Contributor Author

@alvaroaleman You good to re-lgtm this one?

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 4, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

DetailsGit tree hash: 257af6ec7b2d111dde657ae43b88dafc10d67efb

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alvaroaleman, JoelSpeed

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

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [JoelSpeed,alvaroaleman]

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

@JoelSpeed
Copy link
Contributor Author

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 4, 2025
@k8s-ci-robot k8s-ci-robot merged commit cf302a3 into kubernetes-sigs:main Dec 4, 2025
7 checks passed
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/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

latest(main) controller-tools breaks markers on aliased types

3 participants