Skip to content

Commit

Permalink
fix some bugs when local up openyurt (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
Congrool authored Oct 12, 2021
1 parent eb3eab7 commit 71fd79c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hack/lib/release-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ readonly region=${REGION:-us}
function get_image_name {
# If ${GIT_COMMIT} is not at a tag, add commit to the image tag.
if [[ -z $(git tag --points-at ${GIT_COMMIT}) ]]; then
yurt_component_image="${REPO}/$1:${TAG}-$2-$(expr substr ${GIT_COMMIT} 1 7)"
yurt_component_image="${REPO}/$1:${TAG}-$2-$(echo ${GIT_COMMIT} | cut -c 1-7)"
else
yurt_component_image="${REPO}/$1:${TAG}-$2"
fi
Expand Down
2 changes: 1 addition & 1 deletion hack/local_up_openyurt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function kind_load_images {
fi

echo "loading image ${imagename} to nodes"
local nodesarg=$(echo "${master} ${edgenodes[@]}" | sed "s/ /,/g")
local nodesarg=$(echo ${master} ${edgenodes[@]} | sed "s/ /,/g")
kind load image-archive ${IMAGES_DIR}/${imagename} \
--name ${CLUSTER_NAME} --nodes ${nodesarg}
done
Expand Down

0 comments on commit 71fd79c

Please sign in to comment.