Skip to content

Commit 4af933e

Browse files
authored
revert: pn, pni validation rule
Signed-off-by: GitHub <[email protected]>
1 parent da24073 commit 4af933e

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed

crd/multitenancy/api/v1alpha1/podnetwork.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ const (
4646
)
4747

4848
// PodNetworkSpec defines the desired state of PodNetwork
49-
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="spec is immutable after creation"
5049
type PodNetworkSpec struct {
5150
// NetworkID is the identifier for the network, e.g. vnet guid or IB network ID
5251
// +kubebuilder:validation:Optional

crd/multitenancy/api/v1alpha1/podnetworkinstance.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ type PodNetworkConfig struct {
4545
}
4646

4747
// PodNetworkInstanceSpec defines the desired state of PodNetworkInstance
48-
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="spec is immutable after creation"
4948
type PodNetworkInstanceSpec struct {
5049
// Deprecated - use PodNetworks
5150
// +kubebuilder:validation:Optional

crd/multitenancy/manifests/multitenancy.acn.azure.com_podnetworkinstances.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,6 @@ spec:
8686
description: Deprecated - use PodNetworks
8787
type: string
8888
type: object
89-
x-kubernetes-validations:
90-
- message: spec is immutable after creation
91-
rule: self == oldSelf
9289
status:
9390
description: PodNetworkInstanceStatus defines the observed state of PodNetworkInstance
9491
properties:

crd/multitenancy/manifests/multitenancy.acn.azure.com_podnetworks.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,6 @@ spec:
8787
description: Deprecated - Use NetworkID
8888
type: string
8989
type: object
90-
x-kubernetes-validations:
91-
- message: spec is immutable after creation
92-
rule: self == oldSelf
9390
status:
9491
description: PodNetworkStatus defines the observed state of PodNetwork
9592
properties:

0 commit comments

Comments
 (0)