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

Use latest version endpoint for agent download #937

Merged
merged 5 commits into from
Jul 11, 2022

Conversation

chrismuellner
Copy link
Collaborator

Description

Custom version defined on the Tenant was ignored in favor of latest available version.

How can this be tested?

Change what oneagent version is used from latest on the Tenant and check correct version of code modules is downloaded.

Checklist

  • Unit tests have been updated/added
  • PR is labeled accordingly
  • I have read and understood the contribution guidelines

@chrismuellner chrismuellner added the bug Something isn't working label Jul 8, 2022
@chrismuellner chrismuellner marked this pull request as ready for review July 8, 2022 14:01
@chrismuellner chrismuellner requested a review from a team as a code owner July 8, 2022 14:01
@@ -32,12 +32,14 @@ func SetDynakubeStatus(instance *dynatracev1beta1.DynaKube, opts Options) error
return errors.WithStack(err)
}

latestAgentVersionUnixDefault, err := dtc.GetLatestAgentVersion(dtclient.OsUnix, dtclient.InstallerTypeDefault)
latestAgentVersionUnixDefault, err := dtc.GetLatestAgentVersion(
dtclient.OsUnix, dtclient.InstallerTypeDefault)
Copy link
Contributor

Choose a reason for hiding this comment

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

We could acutally remove UnixDefault as we never use it anywhere

@chrismuellner chrismuellner enabled auto-merge (squash) July 11, 2022 09:09
@chrismuellner chrismuellner merged commit a9af3f0 into release-0.7 Jul 11, 2022
@chrismuellner chrismuellner deleted the fix/latest-version branch July 11, 2022 09:14
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.

2 participants