File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ $(CATALOG_FILE): $(OPM) $(YQ)
16
16
@echo Build limitador operator catalog
17
17
@echo
18
18
@echo BUNDLE_IMG = $(BUNDLE_IMG )
19
- @echo REPLACES = $(REPLACES )
19
+ @echo REPLACES_VERSION = $(REPLACES_VERSION )
20
20
@echo CHANNELS = $(CHANNELS )
21
21
@echo " ************************************************************"
22
22
@echo
23
23
@echo Please check this matches your expectations and override variables if needed.
24
24
@echo
25
- $(PROJECT_PATH ) /utils/generate-catalog.sh $(OPM ) $(YQ ) $(BUNDLE_IMG ) $( REPLACES ) $(CHANNELS ) $@
25
+ $(PROJECT_PATH ) /utils/generate-catalog.sh $(OPM ) $(YQ ) $(BUNDLE_IMG ) $@ $( REPLACES_VERSION ) $(CHANNELS )
26
26
27
27
.PHONY : catalog
28
28
catalog : $(OPM ) # # Generate catalog content and validate.
Original file line number Diff line number Diff line change @@ -7,14 +7,15 @@ set -euo pipefail
7
7
# ## CONSTANTS
8
8
# Used as well in the subscription object
9
9
DEFAULT_CHANNEL=preview
10
+ DEFAULT_REPLACES_VERSION=0.0.0-alpha
10
11
# ##
11
12
12
13
OPM=" ${1?: Error \$ OPM not set. Bye} "
13
14
YQ=" ${2?: Error \$ YQ not set. Bye} "
14
15
BUNDLE_IMG=" ${3?: Error \$ BUNDLE_IMG not set. Bye} "
15
- REPLACES =" ${3 ?: Error \$ REPLACES not set. Bye} "
16
- CHANNELS =" ${4 :- $DEFAULT_CHANNEL } "
17
- CATALOG_FILE =" ${5? : Error \$ CATALOG_FILE not set. Bye } "
16
+ CATALOG_FILE =" ${4 ?: Error \$ CATALOG_FILE not set. Bye} "
17
+ REPLACES_VERSION =" ${5 :- $DEFAULT_REPLACES_VERSION } "
18
+ CHANNELS =" ${6 :- $DEFAULT_CHANNEL } "
18
19
19
20
CATALOG_FILE_BASEDIR=" $( cd " $( dirname " $( realpath ${CATALOG_FILE} ) " ) " && pwd ) "
20
21
CATALOG_BASEDIR=" $( cd " $( dirname " $( realpath ${CATALOG_FILE_BASEDIR} ) " ) " && pwd ) "
You can’t perform that action at this time.
0 commit comments