Skip to content

v1beta2 contract: promote v1beta2 conditions, deprecate old status fields #6108

Description

@damdo

Parent: #5448

In the new v1beta3 types:

  • Top-level Conditions []metav1.Condition (no V1Beta2 wrapper)
  • Old fields moved into Deprecated struct:
type AWSClusterDeprecatedStatus struct {
    V1Beta1 *AWSClusterV1Beta1DeprecatedStatus `json:"v1beta1,omitempty"`
}
type AWSClusterV1Beta1DeprecatedStatus struct {
    Ready      bool                      `json:"ready,omitempty"`
    Conditions clusterv1beta1.Conditions `json:"conditions,omitempty"`
}

For AWSMachine, also include FailureReason and FailureMessage in the deprecated struct.

Add GetV1Beta1Conditions()/SetV1Beta1Conditions() accessor methods.

Reference: CAPV's api/govmomi/v1beta2/vspherecluster_types.go:206-295

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/apiIssues or PRs related to the APIsneeds-priorityneeds-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions