Skip to content

Commit 56601ab

Browse files
committed
fix CRD
1 parent cd0e2e2 commit 56601ab

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

api/clusters/v1alpha1/preemptiveclusterrequest_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ type PreemptiveClusterRequestSpec struct {
1616
Workload int `json:"workload"`
1717
}
1818

19-
// +kubebuilder:validation:XValidation:rule="!has(oldSelf.cluster) || has(self.cluster)", message="cluster may not be removed once set"
2019
type PreemptiveClusterRequestStatus struct {
2120
CommonStatus `json:",inline"`
2221

api/crds/manifests/clusters.openmcp.cloud_preemptiveclusterrequests.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.17.3
6+
controller-gen.kubebuilder.io/version: v0.18.0
77
labels:
88
openmcp.cloud/cluster: platform
99
name: preemptiveclusterrequests.clusters.openmcp.cloud
@@ -136,9 +136,6 @@ spec:
136136
- observedGeneration
137137
- phase
138138
type: object
139-
x-kubernetes-validations:
140-
- message: cluster may not be removed once set
141-
rule: '!has(oldSelf.cluster) || has(self.cluster)'
142139
type: object
143140
selectableFields:
144141
- jsonPath: .spec.purpose

0 commit comments

Comments
 (0)