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
Copy file name to clipboardExpand all lines: pkg/apis/vpc/v1alpha1/subnetport_types.go
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ import (
7
7
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
8
8
)
9
9
10
+
// +kubebuilder:validation:XValidation:rule="!has(self.subnetSet) || !has(self.subnet)",message="Only one of subnet or subnetSet can be specified or both set to empty in which case default SubnetSet for VM will be used"
10
11
// SubnetPortSpec defines the desired state of SubnetPort.
11
12
typeSubnetPortSpecstruct {
12
13
// Subnet defines the parent Subnet name of the SubnetPort.
err:=errors.New("subnet and subnetset should not be configured at the same time")
94
-
r.StatusUpdater.UpdateFail(ctx, subnetPort, err, "Failed to get Subnet/SubnetSet of the SubnetPort", setSubnetPortReadyStatusFalse, r.SubnetPortService)
0 commit comments