README ¶
NodesGrouping
采用operator-sdk构建
创建API
# 初始化项目
$ operator-sdk init --domain=kubeedge.io --repo=github.com/Congrool/nodes-grouping
# 创建API
$ operator-sdk create api --group=group --version=v1alpha1 --kind=NodeGroup
$ operator-sdk create api --group=policy --version=v1alpha1 --king=PropagationPolicy
常用命令
# 生成deepcopy函数
$ make generate
# 生成register函数
$ hack/update_codegen.sh
# 生成crd资源
$ make manifests
# 编译所有组件
$ make all
# 构建所有组件镜像
$ make images
# 注册CRD对象
$ make install
# 部署node-group-controller-manager
$ make deploy
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
pkg
|
|
apis/group/v1alpha1
Package v1alpha1 contains API Schema definitions for the group v1alpha1 API group +kubebuilder:object:generate=true +groupName=group.kubeedge.io
|
Package v1alpha1 contains API Schema definitions for the group v1alpha1 API group +kubebuilder:object:generate=true +groupName=group.kubeedge.io |
apis/policy/v1alpha1
Package v1alpha1 contains API Schema definitions for the policy v1alpha1 API group +kubebuilder:object:generate=true +groupName=policy.kubeedge.io
|
Package v1alpha1 contains API Schema definitions for the policy v1alpha1 API group +kubebuilder:object:generate=true +groupName=policy.kubeedge.io |
Click to show internal directories.
Click to hide internal directories.