Skip to content

Commit f998b0a

Browse files
Merge pull request #934 from pablintino/optional-skip-nmstate-install
Allow skipping install NMstate
2 parents 857049b + 837c7b9 commit f998b0a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ CEPH_CLIENT ?= ${OPERATOR_BASE_DIR}/rook/deploy/examples/toolbox.yaml
436436
NMSTATE_NAMESPACE ?= openshift-nmstate
437437
NMSTATE_OPERATOR_GROUP ?= openshift-nmstate-tn6k8
438438
NMSTATE_SUBSCRIPTION ?= kubernetes-nmstate-operator
439+
INSTALL_NMSTATE ?= true
439440

440441
# NNCP
441442
NNCP_NODES ?=
@@ -693,9 +694,10 @@ endif
693694
##@ OPENSTACK
694695

695696
OPENSTACK_PREP_DEPS := validate_marketplace
697+
OPENSTACK_PREP_NMSTATE_DEPS := $(if $(findstring true,$(INSTALL_NMSTATE)), nmstate nncp_with_retries, nncp_with_retries)
696698
OPENSTACK_PREP_DEPS += $(if $(findstring true,$(INSTALL_CERT_MANAGER)), certmanager)
697-
OPENSTACK_PREP_DEPS += $(if $(findstring true,$(NETWORK_ISOLATION)), nmstate nncp_with_retries netattach metallb metallb_config)
698-
OPENSTACK_PREP_DEPS += $(if $(findstring true,$(NETWORK_BGP)), nmstate nncp_with_retries netattach metallb metallb_config)
699+
OPENSTACK_PREP_DEPS += $(if $(findstring true,$(NETWORK_ISOLATION)), ${OPENSTACK_PREP_NMSTATE_DEPS} netattach metallb metallb_config)
700+
OPENSTACK_PREP_DEPS += $(if $(findstring true,$(NETWORK_BGP)), ${OPENSTACK_PREP_NMSTATE_DEPS} netattach metallb metallb_config)
699701
OPENSTACK_PREP_DEPS += $(if $(findstring true,$(BMO_SETUP)), crc_bmo_setup)
700702

701703
.PHONY: openstack_prep

0 commit comments

Comments
 (0)