generate: remove --operator-name#3530
Conversation
095cef2 to
f4bc418
Compare
f4bc418 to
4875e9b
Compare
joelanford
left a comment
There was a problem hiding this comment.
One (repeated) question.
Otherwise
/lgtm
There was a problem hiding this comment.
IMO it is blocked by #3341.
Note that in #3341 we are centralizing the code to getOperatorName where has the validations suggested by @joelanford in the review made here. And then, we can:
- Merge #3341.
- Rebase it with master
- This pr will only change do the changes to replace the
--operator-namefromgeneratesubcommands in favor of usingproject-name - Also, then the changes performed here will be tested and we will be able to ensure that nothing breaks the OLM features for Go a NoGo operators as well. (before the #3341 we cannot test it via CI)
PS.: Note that the goal of #3341 is to fixes OLM subcommands for NoGo operators and add the tests to ensure that all will work well as expected.
projectName over --operator-name, and remove flag--operator-name
4875e9b to
2faf035
Compare
35077ce to
bf0d53d
Compare
… be used instead
bf0d53d to
1ae7c2c
Compare
jmrodri
left a comment
There was a problem hiding this comment.
Minor nit if you have to fix other things. If not ignore. And a question to make sure we meant to remove the lower casing.
| # release notes and/or the migration guide | ||
| entries: | ||
| - description: > | ||
| Remove `--operator-name` from `generate` subcommands in favor of using `project-name` |
There was a problem hiding this comment.
Nit, not a PR blocker: I ended up having to update these to be past tense Removed because the changelog read weird with just Remove. For the migration guide Remove makes sense since it's an instruction.
| // makePkgManFileName will return the file name of a PackageManifest. | ||
| func makePkgManFileName(operatorName string) string { | ||
| return strings.ToLower(operatorName) + packageManifestFileExt | ||
| return operatorName + packageManifestFileExt |
There was a problem hiding this comment.
Do we no longer need to lowercase this?
There was a problem hiding this comment.
We should assume operatorName is lowercased at this point.
Description of the change: remove
--operator-nameflagMotivation for the change:
projectNameis now universal for plugins, so should be used instead of a flag value./cc @joelanford @camilamacedo86 @hasbro17
Checklist
If the pull request includes user-facing changes, extra documentation is required:
changelog/fragments(seechangelog/fragments/00-template.yaml)website/content/en/docs