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

Replace the latest oneagent version endpoint to use the versions endpoint #760

Merged
merged 3 commits into from
May 2, 2022

Conversation

0sewa0
Copy link
Contributor

@0sewa0 0sewa0 commented May 2, 2022

Description

The latest agent version endpoint we use can't be trusted to give us a version that we can actually download. (it provides the latest version for a different kind of installer).

So instead of that we use the get all versions endpoint and find the latest from that.

How can this be tested?

Deploy cloudnative on a cluster where
/deployment/installer/agent/unix/paas/latest/metainfo returns a version that is not present in
the output /deployment​/installer​/agent​/versions​/unix/paas
and it shouldn't error anymore.

Checklist

  • Unit tests have been updated/added
  • PR is labeled accordingly

@0sewa0 0sewa0 added the bug Something isn't working label May 2, 2022
@0sewa0 0sewa0 requested a review from a team as a code owner May 2, 2022 10:19
meik99
meik99 previously requested changes May 2, 2022
src/dtclient/agent_version.go Outdated Show resolved Hide resolved
@0sewa0 0sewa0 requested a review from meik99 May 2, 2022 11:18
@0sewa0 0sewa0 enabled auto-merge (squash) May 2, 2022 14:17
@0sewa0 0sewa0 merged commit 5443de5 into release-0.6 May 2, 2022
@0sewa0 0sewa0 deleted the bugfix/use-correct-endpoint branch May 2, 2022 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants