-
Notifications
You must be signed in to change notification settings - Fork 206
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
Fix generated comments to reflect azure-service-operator #1570
Conversation
|
||
// Required for backward compatibility. | ||
// Presence of any one string will result in the file being treated as a generated file that we are responsible for | ||
CodeGenerationCommentsDeprecated []string = []string{ |
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 the plan to delete this later?
Feels like we should maybe just delete this now and tell the 3 or 4 of us to manually clean up the directory once when we pull? Cleaner than having legacy here before we're even released?
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.
Yeah, didn't take a lot to persuade me. 😁
@@ -8,7 +8,14 @@ package astmodel | |||
var ( | |||
CodeGenerationComments []string = []string{ | |||
// Note that this format is actually an official specification in go: https://github.com/golang/go/issues/13560 | |||
"// Code generated by k8s-infra. DO NOT EDIT.", // TODO: Update this when the generated is moved/renamed | |||
"// Code generated by azure-service-operator. DO NOT EDIT.", // TODO: Update this when the generated is moved/renamed |
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.
Maybe remove the TODO? Although I guess we still want to update it if it's moved again.
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 agree - remove TODO. I think the TODO was in reference to what @theunrepentantgeek just did (i.e. that it shouldn't say k8sinfra)
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.
Nah, that TODO has been there for ages. I'll remove it though.
@@ -8,7 +8,14 @@ package astmodel | |||
var ( | |||
CodeGenerationComments []string = []string{ | |||
// Note that this format is actually an official specification in go: https://github.com/golang/go/issues/13560 | |||
"// Code generated by k8s-infra. DO NOT EDIT.", // TODO: Update this when the generated is moved/renamed | |||
"// Code generated by azure-service-operator. DO NOT EDIT.", // TODO: Update this when the generated is moved/renamed |
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.
IMO we should differentiate between ASO and the tool that generates aso.
Maybe this is ASO-gen or something?
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.
Changed to azure-service-operator-codegen
.
…/azure-service-operator into fix/generated-code-cleanup
Codecov Report
@@ Coverage Diff @@
## master #1570 +/- ##
=======================================
Coverage 63.43% 63.43%
=======================================
Files 181 181
Lines 11796 11796
=======================================
Hits 7483 7483
Misses 3644 3644
Partials 669 669
Continue to review full report at Codecov.
|
What this PR does / why we need it:
Our generated code had comments indicating the source was
k8s-infra
andk8s-infra-gen
- we change these to readazure-service-operator
while retaining the ability to detect and clean up generated code from older versions.How does this PR make you feel:
![gif](https://camo.githubusercontent.com/b65861df93c60089d85f623c3338cf8a2189d3fe474b43223cde87554a05206b/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f39507466533574544338656a6c5966434c552f67697068792e676966)