-
Notifications
You must be signed in to change notification settings - Fork 104
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
Compare real operator name, not prefix when checking for installed versions #1337
Conversation
…rsions Add unit tests to verify that. Add message if operator version install does not install new version Signed-off-by: Andreas Neumann <aneumann@mesosphere.com>
pkg/kudoctl/util/kudo/kudo.go
Outdated
@@ -216,10 +215,10 @@ func (c *Client) OperatorVersionsInstalled(operatorName, namespace string) ([]st | |||
if err != nil { | |||
return nil, err | |||
} | |||
existingVersions := []string{} | |||
existingVersions := make([]string, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I believe that syntax on the left is preferable unless you define a custom size.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IntelliJ complained about it, referring to https://github.com/golang/go/wiki/CodeReviewComments#declaring-empty-slices
I changed it back for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm with one nit 🚢
Signed-off-by: Andreas Neumann <aneumann@mesosphere.com>
…rsions (#1337) * Compare real operator name, not prefix when checking for installed versions * Unit tests to verify that. * Add message if operator version install does not install new version Signed-off-by: Andreas Neumann <aneumann@mesosphere.com>
…rsions (#1337) * Compare real operator name, not prefix when checking for installed versions * Unit tests to verify that. * Add message if operator version install does not install new version Signed-off-by: Andreas Neumann <aneumann@mesosphere.com> Signed-off-by: Thomas Runyon <runyontr@gmail.com>
Add unit tests to verify that.
Add message if operator version install does not install new version
Signed-off-by: Andreas Neumann aneumann@mesosphere.com
Fixes #615