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
Introducing Sleep Action for PreStop Hook #119026
Conversation
/cc @thockin for review and help first🙏 |
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
/assign @thockin |
fixed and rebased |
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.
Thanks!
/lgtm
/approve
LGTM label has been added. Git tree hash: ec6af00916adc78a0e7207e01c3860b413e25be1
|
Verify failure looks real. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AxeZhan, thockin The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@AxeZhan: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@thockin Need a new |
/lgtm |
LGTM label has been added. Git tree hash: 221a418cd4244e50d74a82ca0393807daddcf8ba
|
/skip |
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.
Hi, Axe. Sorry to leave comment on your PR. I have a quick question would to ask for about how to generate this core/v1/generated.pb.go from go struct definition on K8S resource.
We have a use case that we define a CRD defined in go struct, and we need to generate the proto related methods for marshal/unmarshal. But we could not successfully generate them.
We are trying to use protoc-gen-gogo and go-to-protobuf, but could not make fully work.
Do you mind share what's the commands should be used to auto gen "core/v1/generated.proto" and "core/v1/generated.pb.go" files based on types.go file?
Really appreciate your help and answers.
Thanks
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.
Hmmm, not sure how CRD codes are generated, but you can refer to https://github.com/kubernetes/kubernetes/blob/master/hack/update-codegen.sh
In tree structs use this to generate.
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.
Thanks for your immediate answer. This code pointer is very useful and very promising. Let me take a look. Thanks
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.
One more question, when you update k8s native resource, what script do you run to update the generated proto and pb.go? Did you just need to run "kubernetes/blob/master/hack/update-all.sh" script, right?
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.
yes:)
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.
Thanks
What type of PR is this?
/kind feature
What this PR does / why we need it:
This is the implementation for kubernetes/enhancements#3960
Which issue(s) this PR fixes:
Fixes #114465
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: