Skip to content

Commit 7ea3941

Browse files
Merge pull request #1078 from abays/bash_img_env_var
Make bash container image configurable for storage operations
2 parents 688d4f3 + 636bd0c commit 7ea3941

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ MICROSHIFT ?= 0
8080
# operators gets cloned here
8181
OPERATOR_BASE_DIR ?= ${OUT}/operator
8282

83+
# bash container image (needed for certain targets)
84+
BASH_IMG ?= quay.io/openstack-k8s-operators/bash:latest
85+
8386
# storage (used by some operators)
8487
STORAGE_CLASS ?= "local-storage"
8588
CRC_STORAGE_NAMESPACE ?= crc-storage
@@ -614,6 +617,7 @@ wait: ## wait for an operator's controller-manager pod to be ready (requires OPE
614617
##@ CRC
615618
.PHONY: crc_storage
616619
crc_storage: export NAMESPACE = ${CRC_STORAGE_NAMESPACE}
620+
crc_storage: export STORAGE_BASH_IMG = ${BASH_IMG}
617621
crc_storage: namespace ## initialize local storage PVs in CRC vm
618622
$(eval $(call vars,$@))
619623
bash scripts/create-pv.sh
@@ -622,6 +626,7 @@ crc_storage: namespace ## initialize local storage PVs in CRC vm
622626

623627
.PHONY: crc_storage_cleanup
624628
crc_storage_cleanup: export NAMESPACE = ${CRC_STORAGE_NAMESPACE}
629+
crc_storage_cleanup: export STORAGE_BASH_IMG = ${BASH_IMG}
625630
crc_storage_cleanup: namespace ## cleanup local storage PVs in CRC vm
626631
$(eval $(call vars,$@))
627632
bash scripts/cleanup-crc-pv.sh

scripts/storage_apply.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec:
3333
spec:
3434
containers:
3535
- name: storage
36-
image: quay.io/openstack-k8s-operators/bash:latest
36+
image: ${STORAGE_BASH_IMG}
3737
env:
3838
- name: PV_NUM
3939
value: "${PV_NUM}"

0 commit comments

Comments
 (0)