Skip to content
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

翻译4.4.2 webhook for core types 章节 #180

Merged
merged 2 commits into from
Aug 18, 2020
Merged

Conversation

luffyao
Copy link

@luffyao luffyao commented Aug 12, 2020

ref: 72

[ ] Configuration Infrastructure
[x] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

@netlify
Copy link

netlify bot commented Aug 12, 2020

Deploy succeeded

Built with commit 45af7fa

https://deploy-preview-180--cnc-kubebuilder.netlify.app

@hzliangbin
Copy link

/review

for core types, you have to use the library from controller-runtime to handle it.
There is an [example](https://github.com/kubernetes-sigs/controller-runtime/tree/master/examples/builtins)
in controller-runtime.
为 CRD 构建准入 webhook 非常容易,这在 CronJob 教程中已经介绍过了。由于 kubebuilder 不支持核心类型的 webhook 搭建,您必须使用 controller-runtime 的库来处理它。这里可以参考 controller-runtime 的一个 [示例](https://github.com/kubernetes-sigs/controller-runtime/tree/master/examples/builtins)。

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scaffolding有自动生成框架代码的意思,这里翻译不支持搭建,容易有误解。

Copy link
Author

@luffyao luffyao Aug 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HI 我修改成这样了 由于 kubebuilder 不支持核心类型的 webhook 自动生成 。 你觉得如何呢?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我觉得可以。

@majinghe
Copy link

@hzliangbin 这个PR 可以merge吗?

@mergify mergify bot merged commit d0f3732 into cloudnativeto:zh Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants