Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add clean-labels makefile rule to ease devel processes
Signed-off-by: Carlos Eduardo Arango Gutierrez <carangog@redhat.com>
  • Loading branch information
ArangoGutierrez committed Nov 23, 2021
1 parent c4af8a1 commit 5418363
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Expand Up @@ -86,6 +86,12 @@ image: yamls
$(foreach tag,$(IMAGE_EXTRA_TAGS),-t $(tag)-minimal) \
$(IMAGE_BUILD_EXTRA_OPTS) ./

# clean NFD labels on all nodes
# devel only
clean-labels:
kubectl get no -o yaml | sed -e '/^\s*nfd.node.kubernetes.io/d' -e '/^\s*feature.node.kubernetes.io/d' | kubectl replace -f -
kubectl apply -k deployment/overlays/prune/

yamls:
@./scripts/kustomize.sh $(K8S_NAMESPACE) $(IMAGE_REPO) $(IMAGE_TAG_NAME)

Expand Down

0 comments on commit 5418363

Please sign in to comment.