Developer guide

Table of contents

  1. Developer guide
    1. Building the operator
      1. Download the source code
      2. Build the operator image
    2. Manual deployment of the operator
    3. Undeploy the operator
    4. Clean up labels

Building the operator

Download the source code

git clone https://github.com/kubernetes-sigs/node-feature-discovery-operator

Build the operator image

IMAGE_REGISTRY=<my registry>
make image

Push the container image

IMAGE_REGISTRY=<my registry>
make push

Alternatively, instead of specifying variables on the command line, you can edit the Makefile to permanently change parameter defaults like name of the image or namespace where the operator is deployed.

Manual deployment of the operator

After building the image you can simply run

IMAGE_REGISTRY=<my registry>
make deploy

Undeploy the operator

The operator will use the operand node-feature-discovery image built from: https://github.com/kubernetes-sigs/node-feature-discovery

To uninstall the operator run

make undeploy

Clean up labels

In case you need to reomve the labels created by NFD, the source Makefile comes with a built in target

make clean-labels

This will clean all labels referencing to feature.node.kubernetes.io and nfd.node.kubernetes.io