perf: set rbdability and rbdplugin as cluster resources

This commit is contained in:
yangk 2023-01-12 14:48:46 +08:00
parent 039d0808cb
commit 2226738e69
5 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -14,7 +14,7 @@ spec:
listKind: RBDAbilityList
plural: rbdabilities
singular: rbdability
scope: Namespaced
scope: Cluster
versions:
- name: v1alpha1
schema:

View File

@ -14,7 +14,7 @@ spec:
listKind: RBDPluginList
plural: rbdplugins
singular: rbdplugin
scope: Namespaced
scope: Cluster
versions:
- name: v1alpha1
schema:

View File

@ -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 {

View File

@ -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 {