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

Make sure we return the right version when autoscaling v2 is found #1075

Merged

Conversation

kevinearls
Copy link
Member

Signed-off-by: Kevin Earls kearls@redhat.com

Signed-off-by: Kevin Earls <kearls@redhat.com>
@kevinearls kevinearls requested a review from a team September 5, 2022 13:57
@@ -117,10 +117,10 @@ func (v AutoscalingVersion) String() string {
return "unknown"
}

func toAutoscalingVersion(version string) AutoscalingVersion {
func ToAutoScalingVersion(version string) AutoscalingVersion {
Copy link
Member

Choose a reason for hiding this comment

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

any reason why the function is public now?

Copy link
Member Author

Choose a reason for hiding this comment

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

So it can be accessed by the test, as the test is in a different package

Copy link
Member

Choose a reason for hiding this comment

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

It's a bit unfortunate/unnecessary to have the test in a different package in this case. But it was done like that from before so I will approve the PR.

@@ -117,10 +117,10 @@ func (v AutoscalingVersion) String() string {
return "unknown"
}

func toAutoscalingVersion(version string) AutoscalingVersion {
func ToAutoScalingVersion(version string) AutoscalingVersion {
Copy link
Member

Choose a reason for hiding this comment

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

It's a bit unfortunate/unnecessary to have the test in a different package in this case. But it was done like that from before so I will approve the PR.

@pavolloffay pavolloffay merged commit b708157 into open-telemetry:main Sep 6, 2022
@kevinearls kevinearls deleted the return-correct-autoscale-version branch September 6, 2022 09:06
ItielOlenick pushed a commit to ItielOlenick/opentelemetry-operator that referenced this pull request May 1, 2024
…pen-telemetry#1075)

Signed-off-by: Kevin Earls <kearls@redhat.com>

Signed-off-by: Kevin Earls <kearls@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants