Documentation
¶
Overview ¶
Package crd help to create a operator controller by kubeilder or code-generate
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAPI ¶
func CreateAPI(gvk *GVK)
CreateAPI 创建 API 0.判断 update_codegen 脚本如果不存在则进行渲染 1.创建 api 存放目录 2.创建 doc info 文件 3.渲染 api types 文件 4.渲染 PROJECT 文件
func CreateController ¶ added in v0.1.4
func CreateController(gvk *GVK)
创建 controller 0.创建目录 1.渲染 signals 2.渲染 controller 文件 3.创建 cmd 等结构和文件 4.创建 main.go 文件 5.配置 PROJECT 文件
func CreateWebhook ¶ added in v0.1.4
func CreateWebhook(gvk *GVK)
CreateWebhook 创建 webhook 0.判断 webhook 目录,创建目录 1.创建 webhook 脚手架
Types ¶
type API ¶ added in v0.1.4
type API struct { Kind string `yaml:"kind,omitempty"` Version string `yaml:"version,omitempty"` Namespaced bool `yaml:"namespaced,omitempty"` Status bool `yaml:"status,omitempty"` Group string `yaml:"group,omitempty"` Domain string `yaml:"domain,omitempty"` Controller bool `yaml:"controller,omitempty"` Webhook bool `yaml:"webhook,omitempty"` }
API api 相关的配置信息
Click to show internal directories.
Click to hide internal directories.