Release preinstall job too
@@ -24,6 +24,7 @@ readonly EVENTING_CRDS_YAML="eventing-crds.yaml"
readonly SUGAR_CONTROLLER_YAML="eventing-sugar-controller.yaml"
readonly MT_CHANNEL_BROKER_YAML="mt-channel-broker.yaml"
readonly IN_MEMORY_CHANNEL="in-memory-channel.yaml"
+readonly PRE_INSTALL="eventing-pre-install-jobs.yaml"
readonly POST_INSTALL="eventing-post-install-jobs.yaml"
declare -A RELEASES
@@ -59,7 +60,10 @@ function build_release() {
# Create in memory channel yaml
ko resolve ${KO_FLAGS} -f config/channels/in-memory-channel/ | "${LABEL_YAML_CMD[@]}" > "${IN_MEMORY_CHANNEL}"
- local all_yamls=(${EVENTING_CORE_YAML} ${EVENTING_CRDS_YAML} ${SUGAR_CONTROLLER_YAML} ${MT_CHANNEL_BROKER_YAML} ${IN_MEMORY_CHANNEL})
+ # Create v0.18.0 pre-install job yaml. Upgrades some resources' storage versions.
+ ko resolve ${KO_FLAGS} -f config/pre-install/v0.18.0/ | "${LABEL_YAML_CMD[@]}" > "${PRE_INSTALL}"
+
+ local all_yamls=(${EVENTING_CORE_YAML} ${EVENTING_CRDS_YAML} ${SUGAR_CONTROLLER_YAML} ${MT_CHANNEL_BROKER_YAML} ${IN_MEMORY_CHANNEL} ${PRE_INSTALL})
# # Template for POST_INSTALL usage:
# # Create vX.Y.Z post-install job yaml.
