Skip to content

Commit

Permalink
images/script: update the example hubble cli Deployment version
Browse files Browse the repository at this point in the history
[ upstream commit 850aaab ]

Signed-off-by: Alexandre Perrin <alex@kaworu.ch>
Signed-off-by: Nate Sweet <nathanjsweet@pm.me>
  • Loading branch information
kaworu authored and nathanjsweet committed Jun 16, 2021
1 parent dec9047 commit a191fb8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion images/scripts/update-hubble-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ set -o pipefail
set -o nounset

root_dir="$(git rev-parse --show-toplevel)"
hubble_version_script="${root_dir}/images/cilium/hubble-version.sh"
hubble_cli_example="${root_dir}/examples/hubble/hubble-cli.yaml"

cd "${root_dir}"

Expand All @@ -34,10 +36,13 @@ for arch in amd64 arm64 ; do
hubble_sha256+=("${sha256[0]}")
done

cat > "${root_dir}/images/cilium/hubble-version.sh" << EOF
cat > "$hubble_version_script" << EOF
# Code generated by images/scripts/update-hubble-version.sh; DO NOT EDIT.
hubble_version="${hubble_version}"
declare -A hubble_sha256
hubble_sha256[amd64]="${hubble_sha256[0]}"
hubble_sha256[arm64]="${hubble_sha256[1]}"
EOF

sed -e "s#\\(image: .*/hubble:\\).*#\1${hubble_version}#" "$hubble_cli_example" > "${hubble_cli_example}.tmp" &&
mv "${hubble_cli_example}.tmp" "$hubble_cli_example"

0 comments on commit a191fb8

Please sign in to comment.