Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ type MultitenantPodNetworkConfigList struct {
}

// MultitenantPodNetworkConfigSpec defines the desired state of PodNetworkConfig
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="spec is immutable after creation"
type MultitenantPodNetworkConfigSpec struct {
// name of PNI object from requesting cx pod
// +kubebuilder:validation:Optional
Expand Down
1 change: 1 addition & 0 deletions crd/multitenancy/api/v1alpha1/podnetwork.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const (
)

// PodNetworkSpec defines the desired state of PodNetwork
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="spec is immutable after creation"
type PodNetworkSpec struct {
// NetworkID is the identifier for the network, e.g. vnet guid or IB network ID
// +kubebuilder:validation:Optional
Expand Down
1 change: 1 addition & 0 deletions crd/multitenancy/api/v1alpha1/podnetworkinstance.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ type PodNetworkConfig struct {
}

// PodNetworkInstanceSpec defines the desired state of PodNetworkInstance
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="spec is immutable after creation"
type PodNetworkInstanceSpec struct {
// Deprecated - use PodNetworks
// +kubebuilder:validation:Optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ spec:
required:
- podNetwork
type: object
x-kubernetes-validations:
- message: spec is immutable after creation
rule: self == oldSelf
status:
description: MultitenantPodNetworkConfigStatus defines the observed state
of PodNetworkConfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ spec:
description: Deprecated - use PodNetworks
type: string
type: object
x-kubernetes-validations:
- message: spec is immutable after creation
rule: self == oldSelf
status:
description: PodNetworkInstanceStatus defines the observed state of PodNetworkInstance
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ spec:
description: Deprecated - Use NetworkID
type: string
type: object
x-kubernetes-validations:
- message: spec is immutable after creation
rule: self == oldSelf
status:
description: PodNetworkStatus defines the observed state of PodNetwork
properties:
Expand Down
Loading