-
Notifications
You must be signed in to change notification settings - Fork 25
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
Modify API and Generate Addon API clientset/lister/informers #111
Conversation
Signed-off-by: jhu02 <[email protected]>
Signed-off-by: jhu02 <[email protected]>
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.
Thank you for working on this refactoring effort, Refactor is good, but would like to share a few guideline to help both reviewers and PR owners.
- In the PR description, document what problem the PR trying to solve (break the large PR into smaller ones, and make it incremental as much as possible), "refactoring" is the approach, but it is not a problem statement,
- To make sure reviewer can review the PR thoroughly, add the dependencies and steps that generate the PR into a script (in this case, kubebuilder version etc), include the script in the PR, this will make sure others can also generate the PR using the script, this apply to PR when there is generated code.
- (optional) walk through the PR with reviewers, and share the plan for the following PRs.
Thanks again.
|
Yes, glad those 3 action items make sense to you, could you start to address them? |
Documented the problem details in following ticket tracking all the solutions that are applied. |
Signed-off-by: jhu02 <[email protected]>
Signed-off-by: jhu02 <[email protected]>
Signed-off-by: jhu02 <[email protected]>
…ordingly Signed-off-by: jhu02 <[email protected]>
Signed-off-by: jhu02 <[email protected]>
Signed-off-by: jhu02 <[email protected]>
Signed-off-by: jhu02 <[email protected]>
…ement Signed-off-by: jhu02 <[email protected]>
Signed-off-by: jhu02 <[email protected]>
…set reference Signed-off-by: jhu02 <[email protected]>
Signed-off-by: jhu02 <[email protected]>
Signed-off-by: jhu02 <[email protected]>
Signed-off-by: jhu02 <[email protected]>
Signed-off-by: jhu02 <[email protected]>
Signed-off-by: jhu02 <[email protected]>
Signed-off-by: jhu02 <[email protected]>
Signed-off-by: jhu02 <[email protected]>
…y with kuberbuilder comment marker Signed-off-by: jhu02 <[email protected]>
Signed-off-by: jhu02 <[email protected]>
Signed-off-by: jhu02 <[email protected]>
test: generate fmt vet manifests | ||
go test ./api/... ./controllers/... ./pkg/... ./cmd/... -coverprofile cover.out | ||
.PHONY: test | ||
test: |
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.
Needs the other targets also.
test: | |
test: generate fmt vet manifests |
$(CONTROLLER_GEN) object:headerFile=./hack/boilerplate.go.txt paths=./api/... | ||
generate: controller-gen code-generator | ||
$(CONTROLLER_GEN) object:headerFile=./hack/boilerplate.go.txt paths=./apis/addon/... | ||
bash $(GOPATH)/src/k8s.io/[email protected]/generate-groups.sh \ |
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.
Let's capture this code-generator call as env. var, $(CODE_GEN)
cd $$CODE_GENERATOR_DIR ;\ | ||
go get github.com/kubernetes/[email protected] ;\ | ||
} | ||
endif |
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.
endif | |
else | |
CODE_GEN="bash $(GOPATH)/src/k8s.io/[email protected]/generate-groups.sh" | |
endif |
per conversation, this PR is moved to #116. |
close as it is. |
Signed-off-by: jhu02 [email protected]
Fixes:
#97
https://github.intuit.com/kubernetes/arktika/issues/3541