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

fix(upgrade): look for version string in logs bottom up #8926

Merged
merged 3 commits into from
Aug 2, 2023

Conversation

mangalaman93
Copy link
Contributor

@mangalaman93 mangalaman93 commented Aug 1, 2023

For in place upgrade, the container remains the same and the logs have the version string twice, one for the old container and one for the new container. We want the version string in the logs for the new container. Hence, we look for the string in the logs bottom up by using strings.LastIndex instead of strings.Index.

For in place upgrade, the container remains the same and has
the version string twice, one for the old container and one
for the new container. We want the version string in the logs
for the new container. Hence, we look for the string in the logs
bottom up by using strings.LastIndex instead of strings.Index.
harshil-goel
harshil-goel previously approved these changes Aug 1, 2023
all-seeing-code
all-seeing-code previously approved these changes Aug 2, 2023
@mangalaman93 mangalaman93 merged commit bacf3d3 into main Aug 2, 2023
12 checks passed
@mangalaman93 mangalaman93 deleted the aman/upgrade branch August 2, 2023 10:36
jbhamra1 pushed a commit that referenced this pull request Aug 17, 2023
For in place upgrade, the container remains the same and the logs have
the version string twice, one for the old container and one for the new
container. We want the version string in the logs for the new container.
Hence, we look for the string in the logs bottom up by using
strings.LastIndex instead of strings.Index.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Pull requests that update Go code
Development

Successfully merging this pull request may close these issues.

None yet

4 participants