Skip to content

Commit

Permalink
Update the sed match to replace image (#1422)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashwin Venkatesh authored Aug 15, 2022
1 parent b3bc698 commit e5d1770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control-plane/build-support/functions/10-util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ function update_version_helm {
fi
local image_k8s="hashicorp\/consul-k8s-control-plane:$full_version"

sed_i ${SED_EXT} -e "s/(imageK8S:[[:space:]]*)\"[^\"]*\"/\1${image_k8s}/g" "${vfile}"
sed_i ${SED_EXT} -e "s/(imageK8S:[[:space:]]*hashicorp\/consul-k8s-control-plane:)[^\"]*/\1${full_version}/g" "${vfile}"
sed_i ${SED_EXT} -e "s/(version:[[:space:]]*)[^\"]*/\1${full_version}/g" "${cfile}"
sed_i ${SED_EXT} -e "s/(image:[[:space:]]*hashicorp\/consul-k8s-control-plane:)[^\"]*/\1${full_version}/g" "${cfile}"

Expand Down

0 comments on commit e5d1770

Please sign in to comment.