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
core: convert util.NewSet() to sets.NewString() #8584
Conversation
5b07dce
to
047ede7
Compare
By the changes for It is because
Need some suggestion to proceed. |
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.
Seems straightforward and LGTM. One thing though: should we remove the pkg/util.set.go
file/code?
@parth-gr In response to your question, I would suggest debugging the test and stepping through the code to understand the behavior. In VisualStudio Code with the Go extension installed, there should be options to run tests hovering over test definitions. When A test is failing unexpectedly, I use |
yes we are doing that.
Thanks. |
pkg/operator/ceph/cluster/osd/osd.go
Outdated
|
||
logger.Info("start provisioning the OSDs on nodes, if needed") | ||
nodeConfigMaps, err := c.startProvisioningOverNodes(config, errs) | ||
if err != nil { | ||
return err | ||
} | ||
statusConfigMaps.AddSet(nodeConfigMaps.Copy()) | ||
statusConfigMaps.Union(nodeConfigMaps) |
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.
I got the mistake, Union returns a different set which I need to store, instead of appending the list to the first instance.:)
Converting util.NewSet() instance to use sets.NewString() instance Closes: rook#8479 Signed-off-by: parth-gr <paarora@redhat.com>
047ede7
to
77ba1ef
Compare
We are no longer using package util.set for creating instances, and instead of that using sets.String package Closes: rook#8479 Signed-off-by: parth-gr <paarora@redhat.com>
core: convert util.NewSet() to sets.NewString() (backport #8584)
Converting util.NewSet() instance to use sets.NewString() instance
Closes: #8479
Signed-off-by: parth-gr paarora@redhat.com
Description of your changes:
Which issue is resolved by this Pull Request:
Resolves #
Checklist:
make codegen
) has been run to update object specifications, if necessary.