Skip to content

Commit be6f3fc

Browse files
committed
update: Temporarily remove top-level name match CELs, cant make them to work
1 parent f81d475 commit be6f3fc

4 files changed

+4
-4
lines changed

update/v1alpha1/types_clusteroperator_progress_insight.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1919
// +openshift:enable:FeatureGate=UpgradeStatus
2020
// +kubebuilder:metadata:annotations="description=Provides information about a Cluster Operator update"
2121
// +kubebuilder:metadata:annotations="displayName=ClusterOperatorProgressInsights"
22-
// +kubebuilder:validation:XValidation:rule="!has(self.status) || (has(self.status) && self.metadata.name == self.status.name)",message="Progress Insight .metadata.name must match .status.name, when status is present"
22+
// +TODO: +kubebuilder:validation:XValidation:rule="!has(self.status) || self.metadata.name == self.status.name",message="Progress Insight .metadata.name must match .status.name, when status is present"
2323
// ClusterOperatorProgressInsight reports the state of a Cluster Operator (an individual control plane component) during an update
2424
type ClusterOperatorProgressInsight struct {
2525
metav1.TypeMeta `json:",inline"`

update/v1alpha1/types_clusterversion_progress_insight.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1919
// +openshift:enable:FeatureGate=UpgradeStatus
2020
// +kubebuilder:metadata:annotations="description=Provides summary information about an ongoing cluster control plane update in Standalone clusters."
2121
// +kubebuilder:metadata:annotations="displayName=ClusterVersionProgressInsights"
22-
// +kubebuilder:validation:XValidation:rule="!has(self.status) || (has(self.status) && self.metadata.name == self.status.name)",message="Progress Insight .metadata.name must match .status.name, when status is present"
22+
// +TODO: +kubebuilder:validation:XValidation:rule="!has(self.status) || self.metadata.name == self.status.name",message="Progress Insight .metadata.name must match .status.name, when status is present"
2323
// ClusterVersionProgressInsight reports the state of a ClusterVersion resource (which represents a control plane
2424
// update in standalone clusters), during a cluster update.
2525
type ClusterVersionProgressInsight struct {

update/v1alpha1/types_machineconfigpool_progress_insight.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1919
// +openshift:enable:FeatureGate=UpgradeStatus
2020
// +kubebuilder:metadata:annotations="description=Provides summary information about an ongoing node pool update in Standalone clusters"
2121
// +kubebuilder:metadata:annotations="displayName=MachineConfigPoolProgressInsights"
22-
// +kubebuilder:validation:XValidation:rule="!has(self.status) || (has(self.status) && self.metadata.name == self.status.name)",message="Progress Insight .metadata.name must match .status.name, when status is present"
22+
// +TODO: +kubebuilder:validation:XValidation:rule="!has(self.status) || self.metadata.name == self.status.name",message="Progress Insight .metadata.name must match .status.name, when status is present"
2323
// MachineConfigPoolProgressInsight reports the state of a MachineConfigPool resource (which represents a pool of nodes
2424
// update in standalone clusters), during a cluster update.
2525
type MachineConfigPoolProgressInsight struct {

update/v1alpha1/types_node_progress_insight.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1919
// +openshift:enable:FeatureGate=UpgradeStatus
2020
// +kubebuilder:metadata:annotations="description=Reports the state of a Node during the update"
2121
// +kubebuilder:metadata:annotations="displayName=NodeProgressInsights"
22-
// +kubebuilder:validation:XValidation:rule="!has(self.status) || (has(self.status) && self.metadata.name == self.status.name)",message="Progress Insight .metadata.name must match .status.name, when status is present"
22+
// +TODO: +kubebuilder:validation:XValidation:rule="!has(self.status) || self.metadata.name == self.status.name",message="Progress Insight .metadata.name must match .status.name, when status is present"
2323
// NodeProgressInsight reports the state of a Node during the update
2424
type NodeProgressInsight struct {
2525
metav1.TypeMeta `json:",inline"`

0 commit comments

Comments
 (0)