Skip to content

Commit b3196e5

Browse files
authored
chore: remove cancel validation for ops (#10122)
1 parent d60dbe2 commit b3196e5

3 files changed

Lines changed: 0 additions & 10 deletions

File tree

apis/operations/v1alpha1/opsrequest_types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ import (
2727
)
2828

2929
// OpsRequestSpec defines the desired state of OpsRequest
30-
//
31-
// +kubebuilder:validation:XValidation:rule="has(self.cancel) && self.cancel ? (self.type in ['VerticalScaling', 'HorizontalScaling']) : true",message="forbidden to cancel the opsRequest which type not in ['VerticalScaling','HorizontalScaling']"
3230
type OpsRequestSpec struct {
3331
// Specifies the name of the Cluster resource that this operation is targeting.
3432
//

config/crd/bases/operations.kubeblocks.io_opsrequests.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3354,10 +3354,6 @@ spec:
33543354
required:
33553355
- type
33563356
type: object
3357-
x-kubernetes-validations:
3358-
- message: forbidden to cancel the opsRequest which type not in ['VerticalScaling','HorizontalScaling']
3359-
rule: 'has(self.cancel) && self.cancel ? (self.type in [''VerticalScaling'',
3360-
''HorizontalScaling'']) : true'
33613357
status:
33623358
description: OpsRequestStatus represents the observed state of an OpsRequest.
33633359
properties:

deploy/helm/crds/operations.kubeblocks.io_opsrequests.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3354,10 +3354,6 @@ spec:
33543354
required:
33553355
- type
33563356
type: object
3357-
x-kubernetes-validations:
3358-
- message: forbidden to cancel the opsRequest which type not in ['VerticalScaling','HorizontalScaling']
3359-
rule: 'has(self.cancel) && self.cancel ? (self.type in [''VerticalScaling'',
3360-
''HorizontalScaling'']) : true'
33613357
status:
33623358
description: OpsRequestStatus represents the observed state of an OpsRequest.
33633359
properties:

0 commit comments

Comments
 (0)