Skip to content

Conversation

@fabriziopandini
Copy link
Member

What this PR does / why we need it:
This PR updates v1beta2 contract documentation + compatibility with v1beta1

Which issue(s):
Rif #11947

/area documentation

@k8s-ci-robot k8s-ci-robot added area/documentation Issues or PRs related to documentation cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 15, 2025
@k8s-ci-robot k8s-ci-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Apr 15, 2025
@fabriziopandini fabriziopandini force-pushed the document-v1beta2-contract branch from 4fd2f85 to f34d6d2 Compare April 15, 2025 06:50
@fabriziopandini fabriziopandini mentioned this pull request Apr 15, 2025
84 tasks
@fabriziopandini fabriziopandini added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Apr 15, 2025
When the v1beta2 contract will be released (tentative Apr 2025), `status.initialization.dataSecretCreated` will be used
instead of `status.ready`. However, `status.ready` will be supported until v1beta1 removal (~one year later).
In order to ease the transition for providers, the v1beta2 version of the Cluster API contract _temporarily_
preserve compatibility with the deprecated v1beta1 contract; compatibility will be removed tentatively in August 2026.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
preserve compatibility with the deprecated v1beta1 contract; compatibility will be removed tentatively in August 2026.
preserves compatibility with the deprecated v1beta1 contract; compatibility will be removed tentatively in August 2026.

- `message` (optional)
- `lastTransitionTime` (optional, if omitted, time.Now will be used)
In order to ease the transition for providers, the v1beta2 version of the Cluster API contract _temporarily_
preserve compatibility with the deprecated v1beta1 contract; compatibility will be removed tentatively in August 2026.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
preserve compatibility with the deprecated v1beta1 contract; compatibility will be removed tentatively in August 2026.
preserves compatibility with the deprecated v1beta1 contract; compatibility will be removed tentatively in August 2026.

<h1>Compatibility with the deprecated v1beta1 contract</h1>

In order to ease the transition for providers, the v1beta2 version of the Cluster API contract _temporarily_
preserve compatibility with the deprecated v1beta1 contract; compatibility will be removed tentatively in August 2026.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
preserve compatibility with the deprecated v1beta1 contract; compatibility will be removed tentatively in August 2026.
preserves compatibility with the deprecated v1beta1 contract; compatibility will be removed tentatively in August 2026.


In case a Bootstrap provider reports that a BootstrapConfig resource is in a state that cannot be recovered (terminal failure) by
setting `status.failureReason` and `status.failureMessage` as defined by the deprecated v1beta1 contract,
the "core" Machine controller will surface those info in the corresponding fields within in Machine's `status.deprecatd.v1beta1` struct.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
the "core" Machine controller will surface those info in the corresponding fields within in Machine's `status.deprecatd.v1beta1` struct.
the "core" Machine controller will surface those info in the corresponding fields within in Machine's `status.deprecated.v1beta1` struct.


See [Improving status in CAPI resources].
After compatibility with the deprecated v1beta1 contract will be removed, `status.failureReason` and `status.failureMessage`
fields in the BootstrapConfig resource will be ignored and Machine's `status.deprecatd.v1beta1` struct will be dropped.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
fields in the BootstrapConfig resource will be ignored and Machine's `status.deprecatd.v1beta1` struct will be dropped.
fields in the BootstrapConfig resource will be ignored and Machine's `status.deprecated.v1beta1` struct will be dropped.


See [Improving status in CAPI resources].
After compatibility with the deprecated v1beta1 contract will be removed, `status.failureReason` and `status.failureMessage`
fields in the InfraMachine resource will be ignored and Machine's `status.deprecatd.v1beta1` struct will be dropped.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
fields in the InfraMachine resource will be ignored and Machine's `status.deprecatd.v1beta1` struct will be dropped.
fields in the InfraMachine resource will be ignored and Machine's `status.deprecated.v1beta1` struct will be dropped.

- The transition to the new K8s aligned conditions using `metav1.Conditions` types and the new condition semantic
has been completed for all Kinds:
- `status.conditions` has been replaced with `status.v1beta2.conditions`
- the old `status.conditions` will continue to exist temporarily under `status.deprecatd.v1beta1` for the sake of
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- the old `status.conditions` will continue to exist temporarily under `status.deprecatd.v1beta1` for the sake of
- the old `status.conditions` will continue to exist temporarily under `status.deprecated.v1beta1` for the sake of

- the old `status.conditions` will continue to exist temporarily under `status.deprecatd.v1beta1` for the sake of
down conversions and to provide a temporary option for users willing to continue using old conditions.
- Support for terminal errors has been dropped from all Kinds
- `status.failureReason` and `status.failureMessage` will continue to exist temporarily under `status.deprecatd.v1beta1`
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- `status.failureReason` and `status.failureMessage` will continue to exist temporarily under `status.deprecatd.v1beta1`
- `status.failureReason` and `status.failureMessage` will continue to exist temporarily under `status.deprecated.v1beta1`

### Deprecation

- v1beta1 API version is deprecated and it will be removed tentatively in August 2026
- All the fields under `status.deprecatd.v1beta1` in the new v1beta2 API are deprecated and whey will be removed
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- All the fields under `status.deprecatd.v1beta1` in the new v1beta2 API are deprecated and whey will be removed
- All the fields under `status.deprecated.v1beta1` in the new v1beta2 API are deprecated and whey will be removed

- Conditions utils for deprecated v1beta1 conditions have been moved to `util/conditions/deprecated/v1beta1`

Also, please note that starting from the CAPI release when v1beta1 removal will happen (tentative Aug 2026), the Cluster API project
will remove the Cluster API condition type, the `util/conditions` package, the code handling conditions in `util/patch.Helper`
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
will remove the Cluster API condition type, the `util/conditions` package, the code handling conditions in `util/patch.Helper`
will remove the Cluster API condition type, the `util/conditions/deprecated/v1beta1` package, the code handling conditions in `util/patch.Helper`

@chrischdi
Copy link
Member

Two dead links, besides that lgtm!

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chrischdi

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 Apr 15, 2025
@chrischdi
Copy link
Member

  ERROR: 2 dead links found in docs/book/src/developer/providers/migrations/overview.md !
  [✖] v1.7-to-v1.8.md → Status: 400
  [✖] #clusterapi-documentation-versions → Status: 404

@chrischdi
Copy link
Member

/lgtm

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

LGTM label has been added.

Git tree hash: 648ff35e02cc051a72e4e09a88797124e336ad51

@k8s-ci-robot k8s-ci-robot merged commit 81517d6 into kubernetes-sigs:main Apr 15, 2025
15 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.11 milestone Apr 15, 2025
@sbueringer
Copy link
Member

lgtm

@fabriziopandini fabriziopandini deleted the document-v1beta2-contract branch November 11, 2025 10:10
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/documentation Issues or PRs related to documentation 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/XL Denotes a PR that changes 500-999 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants