Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ generate-dockerfiles:
# Generate an aggregated knative release yaml file, as well as a CI file with replaced image references
generate-release:
./openshift/release/generate-release.sh $(RELEASE)
./openshift/release/generate-release.sh $(RELEASE) ci
.PHONY: generate-release

# Update CI configuration in the $(OPENSHIFT) directory.
Expand Down
1 change: 1 addition & 0 deletions openshift/release/create-release-branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ git fetch openshift master
git checkout openshift/master -- openshift OWNERS_ALIASES OWNERS Makefile
make generate-dockerfiles
make RELEASE=$release generate-release
make RELEASE=ci generate-release
git add openshift OWNERS_ALIASES OWNERS Makefile
git commit -m "Add openshift specific files."
13 changes: 6 additions & 7 deletions openshift/release/generate-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
source $(dirname $0)/resolve.sh

release=$1
suffix=$2

if [ $suffix = "ci" ]; then
output_file="openshift/release/knative-eventing-${suffix}.yaml"
image_prefix="registry.svc.ci.openshift.org/openshift/knative-${release}:knative-eventing-"
if [ "$release" == "ci" ]; then
output_file="openshift/release/knative-eventing-ci.yaml"
image_prefix="registry.svc.ci.openshift.org/openshift/knative-nightly:knative-eventing-"
tag=""
else
suffix=${release}
output_file="openshift/release/knative-eventing-${suffix}.yaml"
output_file="openshift/release/knative-eventing-${release}.yaml"
image_prefix="quay.io/openshift-knative/knative-eventing-"
tag=$release
fi
Expand All @@ -25,13 +24,13 @@ cat crd-channel-resolved.yaml >> $output_file
rm crd-channel-resolved.yaml

# the Channel Broker:
output_file="openshift/release/knative-eventing-channelbroker-${suffix}.yaml"
output_file="openshift/release/knative-eventing-channelbroker-${release}.yaml"
resolve_resources config/brokers/channel-broker/ channelbroker-resolved.yaml $image_prefix $tag
cat channelbroker-resolved.yaml >> $output_file
rm channelbroker-resolved.yaml

# the MT Broker:
output_file="openshift/release/knative-eventing-mtbroker-${suffix}.yaml"
output_file="openshift/release/knative-eventing-mtbroker-${release}.yaml"
resolve_resources config/brokers/mt-channel-broker/ mtbroker-resolved.yaml $image_prefix $tag
cat mtbroker-resolved.yaml >> $output_file
rm mtbroker-resolved.yaml