Skip to content

Commit a80e004

Browse files
committed
Refine IpAddress
1 parent 463506e commit a80e004

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

api/v1/ipaddress_types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type IpAddressSpec struct {
2828
//+kubebuilder:validation:Required
2929
IpAddress string `json:"ipAddress"`
3030

31-
// The NetBox Tenant to be used for creating this resource in Netbox
31+
// The NetBox Tenant to be assigned to this resource in NetBox. Use the `name` value instead of the `slug` value
3232
//+kubebuilder:validation:XValidation:rule="self == oldSelf",message="Field 'tenant' is immutable"
3333
Tenant string `json:"tenant,omitempty"`
3434

api/v1/ipaddressclaim_types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type IpAddressClaimSpec struct {
2828
//+kubebuilder:validation:XValidation:rule="self == oldSelf",message="Field 'parentPrefix' is immutable"
2929
ParentPrefix string `json:"parentPrefix"`
3030

31-
// The NetBox Tenant to be used for creating this resource in Netbox
31+
// The NetBox Tenant to be assigned to this resource in NetBox. Use the `name` value instead of the `slug` value
3232
//+kubebuilder:validation:XValidation:rule="self == oldSelf",message="Field 'tenant' is immutable"
3333
Tenant string `json:"tenant,omitempty"`
3434

config/crd/bases/netbox.dev_ipaddressclaims.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ spec:
9595
recreated in Kubernetes)
9696
type: boolean
9797
tenant:
98-
description: The NetBox Tenant to be used for creating this resource
99-
in Netbox
98+
description: The NetBox Tenant to be assigned to this resource in
99+
NetBox. Use the `name` value instead of the `slug` value
100100
type: string
101101
x-kubernetes-validations:
102102
- message: Field 'tenant' is immutable

config/crd/bases/netbox.dev_ipaddresses.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ spec:
9494
recreated in Kubernetes)
9595
type: boolean
9696
tenant:
97-
description: The NetBox Tenant to be used for creating this resource
98-
in Netbox
97+
description: The NetBox Tenant to be assigned to this resource in
98+
NetBox. Use the `name` value instead of the `slug` value
9999
type: string
100100
x-kubernetes-validations:
101101
- message: Field 'tenant' is immutable

0 commit comments

Comments
 (0)