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
Bug 1565545 - Adding migration of extracted credentials #895
Conversation
aef3367
to
90eeabd
Compare
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.
Some questions and we need comments.
cmd/migration/main.go
Outdated
| revertBindInstance(biSaved) | ||
| revertServiceInstance(siSaved) | ||
| revertCrdSavedSpecs(crdSavedSpecs) | ||
| panic(fmt.Sprintf("Unable to migrate all extracted credentials - %v", err)) |
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.
would we want to see which extracted credential failed to migrate?
| revertCrdSavedSpecs(crdSavedSpecs) | ||
| panic(fmt.Sprintf("Unable to migrate all extracted credentials - %v", err)) | ||
| } | ||
| k8scli, err := clients.Kubernetes() |
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.
this feels out of place, like we should've gotten this early on in the process before we even tried to get any of the extracted credentials. I guess it's okay here, just feels weird.
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.
Is this something that you want me to change?
| Namespace: options.MigrationNamespace, | ||
| }) | ||
| } | ||
| for _, bi := range biSaved { |
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.
We need a comment between the different sections:
//
// Convert Binding Instances
//
...
//
// Converting Extracted Credentials
//
...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.
what's with the 3 commented lines?
Describe what this PR does and why we need it:
Currently we do not migrate extracted credentials to the new mode of saving/retrieving/updating/deleting credentials.
Changes proposed in this pull request
Which issue this PR fixes (This will close that issue when PR gets merged)
https://bugzilla.redhat.com/show_bug.cgi?id=1565545