Skip to content

Commit bd49ed2

Browse files
committed
Clean up samples to avoid documentation drift (field documentation is part of the CRD)
1 parent edf0f8a commit bd49ed2

File tree

2 files changed

+13
-26
lines changed

2 files changed

+13
-26
lines changed

config/samples/netbox_v1_prefixclaim_parentprefixselector.yaml

+7-12
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,15 @@ metadata:
66
app.kubernetes.io/managed-by: kustomize
77
name: prefixclaim-parentprefixselector-sample
88
spec:
9-
tenant: "MY_TENANT" # Use the `name` value instead of the `slug` value
10-
site: "DM-Akron" # Use the `name` value instead of the `slug` value
9+
tenant: "MY_TENANT"
10+
site: "DM-Akron"
1111
description: "some description"
1212
comments: "your comments"
1313
preserveInNetbox: true
1414
prefixLength: "/31"
15-
parentPrefixSelector: # The keys and values are case-sensitive
16-
# if the entry for tenant or site is missing, it will *not* inherit from the tenant and site from the Spec
17-
tenant: "MY_TENANT" # Use the `name` value instead of the `slug` value
18-
site: "DM-Buffalo" # Use the `name` value instead of the `slug` value
19-
family: "IPv4" # Can only be either IPv4 or IPv6"
20-
21-
# custom fields of your interest
15+
parentPrefixSelector:
16+
tenant: "MY_TENANT"
17+
site: "DM-Buffalo"
18+
family: "IPv4"
2219
environment: "Production"
23-
poolName: "Pool 1"
24-
# environment: "production"
25-
# poolName: "pool 3"
20+
poolName: "Pool 1"

config/samples/netbox_v1_prefixclaim_parentprefixselector_bool_int.yaml

+6-14
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,15 @@ metadata:
66
app.kubernetes.io/managed-by: kustomize
77
name: prefixclaim-parentprefixselector-bool-int-sample
88
spec:
9-
tenant: "MY_TENANT" # Use the `name` value instead of the `slug` value
10-
site: "DM-Akron" # Use the `name` value instead of the `slug` value
9+
tenant: "MY_TENANT"
10+
site: "DM-Akron"
1111
description: "some description"
1212
comments: "your comments"
1313
preserveInNetbox: true
1414
prefixLength: "/31"
15-
parentPrefixSelector: # The keys and values are case-sensitive
16-
# should return a prefix in 3.0.0.0/24
15+
parentPrefixSelector:
16+
# should return a prefix in 3.0.0.0/24 with the sample data
1717
environment: "Production"
1818
poolName: "Pool 1"
19-
# same condition as above, should return a prefix in 3.0.0.0/24
20-
# cfDataTypeBool: "true"
21-
# cfDataTypeInteger: "1"
22-
23-
# should return a prefix in 3.0.2.0/24
24-
# environment: "Development"
25-
# poolName: "Pool 1"
26-
# same condition as above, should return a prefix in 3.0.0.0/24
27-
# cfDataTypeBool: "false"
28-
# cfDataTypeInteger: "2"
19+
cfDataTypeBool: "true"
20+
cfDataTypeInteger: "1"

0 commit comments

Comments
 (0)