Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion config/crd/projectcalico.org_ipreservations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ spec:
spec:
properties:
reservedCIDRs:
format: cidr
items:
format: cidr
type: string
type: array
x-kubernetes-list-type: set
Expand Down
4 changes: 2 additions & 2 deletions pkg/apis/projectcalico/v3/ipreservation.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2017, 2021 Tigera, Inc. All rights reserved.
// Copyright (c) 2017-2026 Tigera, Inc. All rights reserved.

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -56,7 +56,7 @@ type IPReservation struct {
type IPReservationSpec struct {
// ReservedCIDRs is a list of CIDRs and/or IP addresses that Calico IPAM will exclude from new allocations.
// +listType=set
// +kubebuilder:validation:Format=cidr
// +kubebuilder:validation:items:Format=cidr
ReservedCIDRs []string `json:"reservedCIDRs,omitempty" validate:"cidrs,omitempty"`
}

Expand Down