Skip to content

Commit

Permalink
Fix vpa version file path (#273) (#274)
Browse files Browse the repository at this point in the history
* Switch VPA pipeline to vpa specific branch

* Fix path to VPA version file in CI scripts

Co-authored-by: Marco Voelz <[email protected]>
  • Loading branch information
rishabh-11 and voelzmo authored Dec 15, 2023
1 parent 5289808 commit 4887356
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .ci/pipeline_definitions
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ autoscaler:
vertical-pod-autoscaler:
base_definition:
repo:
branch: rel-vertical-pod-autoscaler
trigger_paths:
include:
- 'vertical-pod-autoscaler'
Expand Down
4 changes: 3 additions & 1 deletion .ci/read-vpa-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

cat ../vertical-pod-autoscaler/common/version.go | grep 'const VerticalPodAutoscalerVersion' | cut -d " " -f 4 | tr -d '"'
src_dir=$(readlink -f "$(dirname "${0}")/..")

cat ${src_dir}/vertical-pod-autoscaler/common/version.go | grep 'const VerticalPodAutoscalerVersion' | cut -d " " -f 4 | tr -d '"'
3 changes: 2 additions & 1 deletion .ci/write-vpa-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

src_dir="$(readlink -f "$(dirname "${0}")/..")"
new_version=$(cat -)
sed -i s/'^\(const VerticalPodAutoscalerVersion = "\).*"'/\\1${new_version}'"'/ vertical-pod-autoscaler/common/version.go
sed -i s/'^\(const VerticalPodAutoscalerVersion = "\).*"'/\\1${new_version}'"'/ ${src_dir}/vertical-pod-autoscaler/common/version.go

0 comments on commit 4887356

Please sign in to comment.