-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
Currently, the selection of which devices to sync from netbox is driven from the ClusterImport custom resource.
This resource's most atomic unit is "clusters", whereby the list of devices to sync is extracted from queries and filters on the netbox /api/virtualization/clusters/ api.
In order to provide more flexibility for other use cases, I would purpose changing the atomic unit to "devices", whereby the list of devices to sync is extracted from queries and filters on the netbox /api/dcim/devices/ api.
A purposed CR is supplied for illustrative purposes.
kind: DeviceImport
metadata:
labels:
app.kubernetes.io/name: argora
app.kubernetes.io/managed-by: kustomize
name: deviceimport-sample
namespace: argora-system
spec:
devices:
- name: "xxx"
site: "xxx"
role: "xxx"
type: "xxx"
status: "xxx"
cluster:
name: "cc-b0-qa-de-1"
region: "qa-de-1"
type: "cc-kvm-compute"
tags:
- "tag1"
- "tag2"
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed