From d5f7e4dcd19c5ab629876e30ea9a94e776f76fef Mon Sep 17 00:00:00 2001 From: Navid Shaikh Date: Wed, 30 Oct 2019 12:06:01 +0530 Subject: [PATCH] Remove unused scripts These scripts are not used for client. --- openshift/release/generate-release.sh | 28 ----------------- openshift/release/resolve.sh | 43 --------------------------- 2 files changed, 71 deletions(-) delete mode 100755 openshift/release/generate-release.sh delete mode 100755 openshift/release/resolve.sh diff --git a/openshift/release/generate-release.sh b/openshift/release/generate-release.sh deleted file mode 100755 index ab9f9b7155..0000000000 --- a/openshift/release/generate-release.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -# Copyright 2019 The OpenShift Knative Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#source $(dirname $0)/resolve.sh - -release=$1 -output_binary="kn" - -if [ $release = "ci" ]; then - output_binary="kn-ci" - tag="" -else - output_binary="kn" - tag=$release -fi diff --git a/openshift/release/resolve.sh b/openshift/release/resolve.sh deleted file mode 100755 index 834b68e307..0000000000 --- a/openshift/release/resolve.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env bash - -# Copyright 2019 The OpenShift Knative Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -function resolve_resources(){ - local dir=$1 - local resolved_file_name=$2 - local image_prefix=$3 - local image_tag=$4 - - [[ -n $image_tag ]] && image_tag=":$image_tag" - - echo "Writing resolved yaml to $resolved_file_name" - - > $resolved_file_name - - for yaml in "$dir"/*.yaml; do - echo "---" >> $resolved_file_name - # 1. Prefix test image references with test- - # 2. Rewrite image references - # 3. Update config map entry - # 4. Remove comment lines - # 5. Remove empty lines - sed -e "s+\(.* image: \)\(github.com\)\(.*/\)\(test/\)\(.*\)+\1\2 \3\4test-\5+g" \ - -e "s+\(.* image: \)\(github.com\)\(.*/\)\(.*\)+\1 ${image_prefix}\4${image_tag}+g" \ - -e "s+\(.* queueSidecarImage: \)\(github.com\)\(.*/\)\(.*\)+\1 ${image_prefix}\4${image_tag}+g" \ - -e '/^[ \t]*#/d' \ - -e '/^[ \t]*$/d' \ - "$yaml" >> $resolved_file_name - done -}