mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-29 10:17:58 +08:00
perf: set rbdability and rbdplugin as cluster resources
This commit is contained in:
parent
039d0808cb
commit
2226738e69
2
Makefile
2
Makefile
@ -56,7 +56,7 @@ CRD_OPTIONS ?= "crd:trivialVersions=true"
|
||||
manifests: controller-gen
|
||||
$(CONTROLLER_GEN) $(CRD_OPTIONS) paths="./pkg/apis/..." output:crd:artifacts:config=config/crd
|
||||
|
||||
# Generate code
|
||||
# Generate code, controller-gen version: v0.9.2
|
||||
generate: controller-gen
|
||||
chmod +x vendor/k8s.io/code-generator/generate-groups.sh
|
||||
./hack/k8s/codegen/update-generated.sh
|
||||
|
@ -14,7 +14,7 @@ spec:
|
||||
listKind: RBDAbilityList
|
||||
plural: rbdabilities
|
||||
singular: rbdability
|
||||
scope: Namespaced
|
||||
scope: Cluster
|
||||
versions:
|
||||
- name: v1alpha1
|
||||
schema:
|
||||
|
@ -14,7 +14,7 @@ spec:
|
||||
listKind: RBDPluginList
|
||||
plural: rbdplugins
|
||||
singular: rbdplugin
|
||||
scope: Namespaced
|
||||
scope: Cluster
|
||||
versions:
|
||||
- name: v1alpha1
|
||||
schema:
|
||||
|
@ -51,6 +51,7 @@ type RBDAbilityStatus struct {
|
||||
// +genclient
|
||||
//+kubebuilder:object:root=true
|
||||
//+kubebuilder:subresource:status
|
||||
//+kubebuilder:resource:scope=Cluster
|
||||
|
||||
// RBDAbility is the Schema for the rbdplugins API
|
||||
type RBDAbility struct {
|
||||
|
@ -46,6 +46,7 @@ type RBDPluginStatus struct {
|
||||
// +genclient
|
||||
//+kubebuilder:object:root=true
|
||||
//+kubebuilder:subresource:status
|
||||
//+kubebuilder:resource:scope=Cluster
|
||||
|
||||
// RBDPlugin is the Schema for the rbdplugins API
|
||||
type RBDPlugin struct {
|
||||
|
Loading…
Reference in New Issue
Block a user