Skip to content
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

🌱 Enable the conditions rule from KAL #11847

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

JoelSpeed
Copy link
Contributor

What this PR does / why we need it:

This PR enables checks for Conditions fields in KAL.

It will enforce:

  • Conditions is the first item in the status object (this could be disabled if we want)
  • The appropriate +listType=map and +listMapKey=type markers are added
  • The conditions are optional
  • The conditions are []metav1.Condition

Our existing conditions types fail because they are not []metav1.Condition, but are otherwise compliant. An exception has been added for v1beta1 and v1alpha1 APIs to allow the custom CAPI condition type.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Part of #11834

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/needs-area PR is missing an area label labels Feb 14, 2025
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 14, 2025
@JoelSpeed JoelSpeed mentioned this pull request Feb 14, 2025
16 tasks
@sbueringer
Copy link
Member

/area ci
/lgtm
/approve

Nice

Thank you!

@k8s-ci-robot k8s-ci-robot added the area/ci Issues or PRs related to ci label Feb 14, 2025
@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed do-not-merge/needs-area PR is missing an area label labels Feb 14, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: a37afff181db10536f639272cd25815803a35214

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbueringer

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 14, 2025
@k8s-ci-robot k8s-ci-robot merged commit 065f159 into kubernetes-sigs:main Feb 14, 2025
18 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.10 milestone Feb 14, 2025
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. area/ci Issues or PRs related to ci 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/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants