Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

envoy: Support more envoy image tag formats #24750

Merged
merged 1 commit into from Apr 5, 2023

Conversation

sayboras
Copy link
Member

@sayboras sayboras commented Apr 5, 2023

This commit is to add the support for the below image tags

Different envoy image tag formats:

quay.io/cilium/cilium-envoy:f195a0a836629ceca5d7561f758c9505d9ebaebfa262647a2d4
quay.io/cilium/cilium-envoy:v1.23-f195a0a836629ceca5d7561f758c9505d9ebaebfa262647a2d4

Testing was done as per below, kindly note the existing format should be working as usual.

$ test=quay.io/cilium/cilium-envoy:014ceeb312a4d18dcf0ea219143f099fa91f2f28@sha256:1a3020822e8fb10b5f96bf45554690c411c2f48d8ca8fcf33da871dad1ce6b53
$ echo $test | sed -E -e 's/[^/]*\/[^:]*:([^:@]*).*/\1/p;d' | sed -E -e 's/.*-([^-]*)$/\1/'
014ceeb312a4d18dcf0ea219143f099fa91f2f28
$ test=quay.io/cilium/cilium-envoy:v1.24-014ceeb312a4d18dcf0ea219143f099fa91f2f28@sha256:1a3020822e8fb10b5f96bf45554690c411c2f48d8ca8fcf33da871dad1ce6b53
$ echo $test | sed -E -e 's/[^/]*\/[^:]*:([^:@]*).*/\1/p;d' | sed -E -e 's/.*-([^-]*)$/\1/'
014ceeb312a4d18dcf0ea219143f099fa91f2f28

Fixes: #24749

@sayboras sayboras added needs-backport/1.11 needs-backport/1.13 This PR / issue needs backporting to the v1.13 branch labels Apr 5, 2023
This commit is to add the support for below image tags

Different envoy image tag formats:

```
quay.io/cilium/cilium-envoy:f195a0a836629ceca5d7561f758c9505d9ebaebfa262647a2d4
quay.io/cilium/cilium-envoy:v1.23-f195a0a836629ceca5d7561f758c9505d9ebaebfa262647a2d4
```

Testing was done as per below, kindly note the existing format should be
working as usual.

```bash
$ test=quay.io/cilium/cilium-envoy:014ceeb312a4d18dcf0ea219143f099fa91f2f28@sha256:1a3020822e8fb10b5f96bf45554690c411c2f48d8ca8fcf33da871dad1ce6b53
$ echo $test | sed -E -e 's/[^/]*\/[^:]*:([^:@]*).*/\1/p;d' | sed -E -e 's/.*-([^-]*)$/\1/'
014ceeb312a4d18dcf0ea219143f099fa91f2f28
$ test=quay.io/cilium/cilium-envoy:v1.24-014ceeb312a4d18dcf0ea219143f099fa91f2f28@sha256:1a3020822e8fb10b5f96bf45554690c411c2f48d8ca8fcf33da871dad1ce6b53
$ echo $test | sed -E -e 's/[^/]*\/[^:]*:([^:@]*).*/\1/p;d' | sed -E -e 's/.*-([^-]*)$/\1/'
014ceeb312a4d18dcf0ea219143f099fa91f2f28
```

Fixes: cilium#24749

Signed-off-by: Tam Mach <tam.mach@cilium.io>
@sayboras sayboras marked this pull request as ready for review April 5, 2023 05:51
@sayboras sayboras requested a review from a team as a code owner April 5, 2023 05:51
@sayboras sayboras requested a review from jibi April 5, 2023 05:51
@sayboras
Copy link
Member Author

sayboras commented Apr 5, 2023

Full CI is not required, the current format is verified in GHA.

@sayboras
Copy link
Member Author

sayboras commented Apr 5, 2023

/test

@sayboras
Copy link
Member Author

sayboras commented Apr 5, 2023

/ci-awscni

@sayboras
Copy link
Member Author

sayboras commented Apr 5, 2023

/ci-external-workloads

Copy link
Member

@jibi jibi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

non blocking nit: perhaps we can merge the 2 seds commands?

Something like:

➜  ~ cat test.sh
test=quay.io/cilium/cilium-envoy:014ceeb312a4d18dcf0ea219143f099fa91f2f28@sha256:1a3020822e8fb10b5f96bf45554690c411c2f48d8ca8fcf33da871dad1ce6b53
echo $test | sed -E -e 's/[^/]*\/[^:]*:(.*-)?([^:@]*).*/\2/p;d'

test=quay.io/cilium/cilium-envoy:v1.24-014ceeb312a4d18dcf0ea219143f099fa91f2f28@sha256:1a3020822e8fb10b5f96bf45554690c411c2f48d8ca8fcf33da871dad1ce6b53
echo $test | sed -E -e 's/[^/]*\/[^:]*:(.*-)?([^:@]*).*/\2/p;d'

➜  ~ ./test.sh
014ceeb312a4d18dcf0ea219143f099fa91f2f28
014ceeb312a4d18dcf0ea219143f099fa91f2f28

(please double test this as I'm a bit rusty with regexes)

@sayboras sayboras added release-note/misc This PR makes changes that have no direct user impact. area/build Anything to do with the build, more general then area/CI labels Apr 5, 2023
@sayboras
Copy link
Member Author

sayboras commented Apr 5, 2023

There was an issue with MLH, so Mergeability is stuck.

Considered that all CI jobs are successful, review is in, marking this ready to merge.

@sayboras sayboras added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Apr 5, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.13.2 Apr 5, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.12.9 Apr 5, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.11.16 Apr 5, 2023
@sayboras sayboras merged commit afcda94 into cilium:master Apr 5, 2023
57 checks passed
@sayboras sayboras deleted the tam/envoy-tag branch April 5, 2023 13:21
sayboras added a commit to sayboras/cilium that referenced this pull request Apr 11, 2023
Relates: cilium#24750 (review)
Signed-off-by: Tam Mach <tam.mach@cilium.io>
@sayboras sayboras removed needs-backport/1.11 needs-backport/1.13 This PR / issue needs backporting to the v1.13 branch labels Apr 11, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed this from Needs backport from master in 1.13.2 Apr 11, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed this from Needs backport from master in 1.12.9 Apr 11, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed this from Needs backport from master in 1.11.16 Apr 11, 2023
tklauser pushed a commit that referenced this pull request Apr 12, 2023
Relates: #24750 (review)
Signed-off-by: Tam Mach <tam.mach@cilium.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Anything to do with the build, more general then area/CI ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support new envoy image version tag
3 participants