Skip to content

fire-ant/provider-netbox

Repository files navigation

Provider Netbox

provider-netbox is a Crossplane provider that is built using Upjet code generation tools and exposes XRM-conformant managed resources for the Netbox API.

Getting Started

Install the provider by using the following command after changing the image tag to the latest release:

up ctp provider install fire-ant/provider-netbox:v0.1.0

Alternatively, you can use declarative installation:

cat <<EOF | kubectl apply -f -
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
  name: provider-netbox
spec:
  package: fire-ant/provider-netbox:v0.1.0
EOF

Notice that in this example Provider resource is referencing ControllerConfig with debug enabled.

You can see the API reference here.

Developing

Run code-generation pipeline:

go run cmd/generator/main.go "$PWD"

Run against a Kubernetes cluster:

make run

Build, push, and install:

make all

Build binary:

make build

Report a Bug

For filing bugs, suggesting improvements, or requesting new features, please open an issue.

Devcontainer Setup:

The repository includes a devcontainer setup which can act as the sandbox environment required for developing.

deploy a cluster:

kind create cluster --name local-dev

change kubeconfig to use internal alias

kind export kubeconfig --name local-dev --internal

Dev

use cty for crds:

./scripts/cty.sh

use for uptest e2e:

make uptest PROVIDER_NAME=provider-netbox UPTEST_EXAMPLE_LIST=examples/sites/site.yaml