Skip to content

Commit e22419d

Browse files
authored
Merge pull request #1641 from rackerlabs/rackGroupsNautobotOP
feat: Add Rack Groups Nautobot Operator
2 parents 4aa561d + 47a868b commit e22419d

17 files changed

Lines changed: 938 additions & 50 deletions

File tree

docs/schema/locations.schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../schema/locations.schema.json
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../schema/rack-groups.schema.json

go/nautobotop/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
bin/*
99
dist/*
1010
Dockerfile.cross
11+
cmd/cmd
1112

1213
# Test binary, built with `go test -c`
1314
*.test
@@ -25,6 +26,7 @@ dist/
2526

2627
# editor and IDE paraphernalia
2728
.idea
29+
.kiro
2830
.vscode
2931
*.swp
3032
*.swo

go/nautobotop/api/v1alpha1/nautobot_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ type NautobotSpec struct {
3333
NautobotServiceRef ServiceSelector `json:"nautobotServiceRef,omitempty"`
3434
DeviceTypesRef []ConfigMapRef `json:"deviceTypeRef,omitempty"`
3535
LocationTypesRef []ConfigMapRef `json:"locationTypesRef,omitempty"`
36+
LocationRef []ConfigMapRef `json:"locationRef,omitempty"`
37+
RackGroupRef []ConfigMapRef `json:"rackGroupRef,omitempty"`
3638
}
3739

3840
// NautobotStatus defines the observed state of Nautobot.

go/nautobotop/api/v1alpha1/zz_generated.deepcopy.go

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

go/nautobotop/config/crd/bases/sync.rax.io_nautobots.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,35 @@ spec:
6868
- name
6969
type: object
7070
type: array
71+
locationRef:
72+
items:
73+
description: ConfigMapRef defines a reference to a specific ConfigMap
74+
properties:
75+
configMapSelector:
76+
description: The name of the ConfigMap resource being referred
77+
to
78+
properties:
79+
key:
80+
description: The key in the ConfigMap data
81+
type: string
82+
name:
83+
description: The name of the ConfigMap
84+
minLength: 1
85+
type: string
86+
namespace:
87+
description: The namespace where the ConfigMap resides
88+
type: string
89+
required:
90+
- name
91+
type: object
92+
name:
93+
description: Name of this config set (logical name)
94+
type: string
95+
required:
96+
- configMapSelector
97+
- name
98+
type: object
99+
type: array
71100
locationTypesRef:
72101
items:
73102
description: ConfigMapRef defines a reference to a specific ConfigMap
@@ -147,6 +176,35 @@ spec:
147176
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
148177
type: string
149178
type: object
179+
rackGroupRef:
180+
items:
181+
description: ConfigMapRef defines a reference to a specific ConfigMap
182+
properties:
183+
configMapSelector:
184+
description: The name of the ConfigMap resource being referred
185+
to
186+
properties:
187+
key:
188+
description: The key in the ConfigMap data
189+
type: string
190+
name:
191+
description: The name of the ConfigMap
192+
minLength: 1
193+
type: string
194+
namespace:
195+
description: The namespace where the ConfigMap resides
196+
type: string
197+
required:
198+
- name
199+
type: object
200+
name:
201+
description: Name of this config set (logical name)
202+
type: string
203+
required:
204+
- configMapSelector
205+
- name
206+
type: object
207+
type: array
150208
requeueAfter:
151209
default: 600
152210
type: integer

go/nautobotop/helm/crds/clients.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,35 @@ spec:
6868
- name
6969
type: object
7070
type: array
71+
locationRef:
72+
items:
73+
description: ConfigMapRef defines a reference to a specific ConfigMap
74+
properties:
75+
configMapSelector:
76+
description: The name of the ConfigMap resource being referred
77+
to
78+
properties:
79+
key:
80+
description: The key in the ConfigMap data
81+
type: string
82+
name:
83+
description: The name of the ConfigMap
84+
minLength: 1
85+
type: string
86+
namespace:
87+
description: The namespace where the ConfigMap resides
88+
type: string
89+
required:
90+
- name
91+
type: object
92+
name:
93+
description: Name of this config set (logical name)
94+
type: string
95+
required:
96+
- configMapSelector
97+
- name
98+
type: object
99+
type: array
71100
locationTypesRef:
72101
items:
73102
description: ConfigMapRef defines a reference to a specific ConfigMap
@@ -147,6 +176,35 @@ spec:
147176
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
148177
type: string
149178
type: object
179+
rackGroupRef:
180+
items:
181+
description: ConfigMapRef defines a reference to a specific ConfigMap
182+
properties:
183+
configMapSelector:
184+
description: The name of the ConfigMap resource being referred
185+
to
186+
properties:
187+
key:
188+
description: The key in the ConfigMap data
189+
type: string
190+
name:
191+
description: The name of the ConfigMap
192+
minLength: 1
193+
type: string
194+
namespace:
195+
description: The namespace where the ConfigMap resides
196+
type: string
197+
required:
198+
- name
199+
type: object
200+
name:
201+
description: Name of this config set (logical name)
202+
type: string
203+
required:
204+
- configMapSelector
205+
- name
206+
type: object
207+
type: array
150208
requeueAfter:
151209
default: 600
152210
type: integer

0 commit comments

Comments
 (0)