You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If it is requested to show all the conditions for the object, add
@@ -119,13 +121,13 @@ func (od ObjectTree) Add(parent, obj client.Object, opts ...AddObjectOption) (ad
119
121
// If echo should be dropped from the ObjectTree, return if the object's ready condition is true, and it is the same it has of parent's object ready condition (it is an echo).
120
122
// Note: the Echo option applies only for infrastructure machine or bootstrap config objects, and for those objects only Ready condition makes sense.
121
123
ifaddOpts.NoEcho&&!od.options.Echo {
122
-
switchod.options.V1Beta2 {
124
+
switchod.options.V1Beta1 {
123
125
casetrue:
124
-
if (objReady!=nil&&objReady.Status==metav1.ConditionTrue) ||hasSameAvailableReadyUptoDateStatusAndReason(nil, nil, parentReady, objReady, nil, nil) {
126
+
if (objReadyV1Beta1!=nil&&objReadyV1Beta1.Status==corev1.ConditionTrue) ||hasSameReadyStatusSeverityAndReason(parentReadyV1Beta1, objReadyV1Beta1) {
125
127
returnfalse, false
126
128
}
127
129
default:
128
-
if (objReadyV1Beta1!=nil&&objReadyV1Beta1.Status==corev1.ConditionTrue) ||hasSameReadyStatusSeverityAndReason(parentReadyV1Beta1, objReadyV1Beta1) {
130
+
if (objReady!=nil&&objReady.Status==metav1.ConditionTrue) ||hasSameAvailableReadyUptoDateStatusAndReason(nil, nil, parentReady, objReady, nil, nil) {
129
131
returnfalse, false
130
132
}
131
133
}
@@ -156,8 +158,16 @@ func (od ObjectTree) Add(parent, obj client.Object, opts ...AddObjectOption) (ad
156
158
157
159
varsReadyV1Beta1*clusterv1.Condition
158
160
varsAvailable, sReady, sUpToDate*metav1.Condition
159
-
switchod.options.V1Beta2 {
161
+
switchod.options.V1Beta1 {
160
162
casetrue:
163
+
sReadyV1Beta1=GetV1Beta1ReadyCondition(s)
164
+
165
+
// If the object's ready condition has a different Status, Severity and Reason than the sibling object,
"this field will be removed when v1beta1 will be dropped.")
114
116
describeClusterClusterCmd.Flags().BoolVarP(&dc.color, "color", "c", false, "Enable or disable color output; if not set color is enabled by default only if using tty. The flag is overridden by the NO_COLOR env variable if set.")
Copy file name to clipboardExpand all lines: docs/book/src/developer/providers/migrations/v1.10-to-v1.11.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -474,12 +474,13 @@ TODO
474
474
475
475
### clusterctl
476
476
477
-
-**Stricter validation for provider metadata**: clusterctl now enforces validation rules when reading provider metadata files to ensure they are properly formatted and contain required information. The following validation rules are now enforced:
477
+
-**Stricter validation for provider metadata**: clusterctl now enforces validation rules when reading provider metadata files to ensure they are properly formatted and contain required information.
478
+
These changes help surface mis-shaped metadata early and make failures easier to troubleshoot. Providers with invalid metadata.yaml files will need to update them to comply with these validation rules.
479
+
The following validation rules are now enforced:
478
480
-`apiVersion` must be set to `clusterctl.cluster.x-k8s.io/v1alpha3`
479
481
-`kind` must be set to `Metadata`
480
482
-`releaseSeries` must contain at least one entry
481
-
482
-
These changes help surface mis-shaped metadata early and make failures easier to troubleshoot. Providers with invalid metadata.yaml files will need to update them to comply with these validation rules.
483
+
- The `--v1beta2` flag in clusterctl describe now defaults to `true`; the flag will be removed as soon as v1beta1 API is removed.
0 commit comments