Skip to content

Commit 6d3e441

Browse files
Merge pull request #1042 from abays/crc_storage_ns
Run crc_storage in its own namespace
2 parents 362d0de + 38d40a3 commit 6d3e441

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ OPERATOR_BASE_DIR ?= ${OUT}/operator
8282

8383
# storage (used by some operators)
8484
STORAGE_CLASS ?= "local-storage"
85+
CRC_STORAGE_NAMESPACE ?= crc-storage
8586
CRC_STORAGE_RETRIES ?= 3
8687
LVMS_CR ?= 1
8788

@@ -599,13 +600,15 @@ wait: ## wait for an operator's controller-manager pod to be ready (requires OPE
599600

600601
##@ CRC
601602
.PHONY: crc_storage
603+
crc_storage: export NAMESPACE = ${CRC_STORAGE_NAMESPACE}
602604
crc_storage: namespace ## initialize local storage PVs in CRC vm
603605
$(eval $(call vars,$@))
604606
bash scripts/create-pv.sh
605607
bash scripts/gen-crc-pv-kustomize.sh
606608
oc apply -f ${OUT}/crc/storage.yaml
607609

608610
.PHONY: crc_storage_cleanup
611+
crc_storage_cleanup: export NAMESPACE = ${CRC_STORAGE_NAMESPACE}
609612
crc_storage_cleanup: namespace ## cleanup local storage PVs in CRC vm
610613
$(eval $(call vars,$@))
611614
bash scripts/cleanup-crc-pv.sh

0 commit comments

Comments
 (0)