Skip to content

Commit 02a4ba3

Browse files
Require Fabric VNI pool
Signed-off-by: Felix Kästner <felix.kaestner@sap.com>
1 parent 0e707d2 commit 02a4ba3

4 files changed

Lines changed: 11 additions & 9 deletions

File tree

‎api/evpn/v1alpha1/fabric_types.go‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,8 @@ type FabricSpec struct {
4444

4545
// vniPool references an IndexPool from which VNIs are allocated for Networks
4646
// realized by this Fabric.
47-
// This field is introduced as optional until the NetworkAttachment
48-
// controller is implemented. The field currently has no effect.
49-
// TODO: Make this field required once the NetworkAttachment controller is implemented.
50-
// +optional
47+
// +required
48+
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="vniPool is immutable"
5149
VNIPool corev1alpha1.TypedLocalObjectReference `json:"vniPool"`
5250
}
5351

‎charts/network-operator/templates/crd/fabrics.evpn.networking.metal.ironcore.dev.yaml‎

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎config/crd/bases/evpn.networking.metal.ironcore.dev_fabrics.yaml‎

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/api-reference/index.md‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)