Skip to content

Commit 27ef1d4

Browse files
committed
Make NNCP optional
In case the the NNCP was already applied the user may wan to skip applying the network configuration policy.
1 parent 5a4d9bc commit 27ef1d4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ NMSTATE_SUBSCRIPTION ?= kubernetes-nmstate-operator
451451
INSTALL_NMSTATE ?= true
452452

453453
# NNCP
454+
INSTALL_NNCP ?= true
454455
NNCP_NODES ?=
455456
NNCP_INTERFACE ?= enp6s0
456457
NNCP_BRIDGE ?= ospbr
@@ -714,10 +715,11 @@ endif
714715
##@ OPENSTACK
715716

716717
OPENSTACK_PREP_DEPS := validate_marketplace
717-
OPENSTACK_PREP_NMSTATE_DEPS := $(if $(findstring true,$(INSTALL_NMSTATE)), nmstate nncp_with_retries, nncp_with_retries)
718+
OPENSTACK_PREP_DEPS += $(if $(findstring true,$(INSTALL_NMSTATE)), nmstate)
719+
OPENSTACK_PREP_DEPS += $(if $(findstring true,$(INSTALL_NNCP)), nncp_with_retries)
718720
OPENSTACK_PREP_DEPS += $(if $(findstring true,$(INSTALL_CERT_MANAGER)), certmanager)
719-
OPENSTACK_PREP_DEPS += $(if $(findstring true,$(NETWORK_ISOLATION)), ${OPENSTACK_PREP_NMSTATE_DEPS} netattach metallb metallb_config)
720-
OPENSTACK_PREP_DEPS += $(if $(findstring true,$(NETWORK_BGP)), ${OPENSTACK_PREP_NMSTATE_DEPS} netattach metallb metallb_config)
721+
OPENSTACK_PREP_DEPS += $(if $(findstring true,$(NETWORK_ISOLATION)), netattach metallb metallb_config)
722+
OPENSTACK_PREP_DEPS += $(if $(findstring true,$(NETWORK_BGP)), netattach metallb metallb_config)
721723
OPENSTACK_PREP_DEPS += $(if $(findstring true,$(BMO_SETUP)), crc_bmo_setup)
722724

723725
.PHONY: openstack_prep

0 commit comments

Comments
 (0)