Skip to content

Commit

Permalink
Remove the old release-0.16 pre- and post- install jobs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Harwayne committed Aug 19, 2020
1 parent 9f3fb3f commit 1aa3077
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions hack/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ 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_V_0_16="eventing-pre-install-jobs.yaml"
readonly POST_INSTALL_V_0_16="eventing-post-install-jobs.yaml"
readonly POST_INSTALL_V_0_17="eventing-post-install-jobs.yaml"

declare -A RELEASES
Expand Down Expand Up @@ -61,16 +59,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}"

# Create v0.16.0 pre-install job yaml. Upgrades Broker storage version from v1alpha1 to v1beta1.
ko resolve ${KO_FLAGS} -f config/pre-install/v0.16.0/ | "${LABEL_YAML_CMD[@]}" > "${PRE_INSTALL_V_0_16}"

# Create v0.16.0 post-install job yaml. Cleans up old broker resources from deleted namespaced brokers.
ko resolve ${KO_FLAGS} -f config/post-install/v0.16.0/ | "${LABEL_YAML_CMD[@]}" > "${POST_INSTALL_V_0_16}"

# Create v0.17.0 post-install job yaml. Cleans up pingsources with finalizers
ko resolve ${KO_FLAGS} -f config/post-install/v0.17.0/ | "${LABEL_YAML_CMD[@]}" > "${POST_INSTALL_V_0_17}"

local all_yamls=(${EVENTING_CORE_YAML} ${EVENTING_CRDS_YAML} ${SUGAR_CONTROLLER_YAML} ${MT_CHANNEL_BROKER_YAML} ${IN_MEMORY_CHANNEL} ${PRE_INSTALL_V_0_16} ${POST_INSTALL_V_0_16} ${POST_INSTALL_V_0_17})
local all_yamls=(${EVENTING_CORE_YAML} ${EVENTING_CRDS_YAML} ${SUGAR_CONTROLLER_YAML} ${MT_CHANNEL_BROKER_YAML} ${IN_MEMORY_CHANNEL} ${POST_INSTALL_V_0_17})

# Assemble the release
for yaml in "${!RELEASES[@]}"; do
Expand Down

0 comments on commit 1aa3077

Please sign in to comment.