Skip to content

Commit

Permalink
chore: remove some KB CRDs from the resource category all (#8036)
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-inf authored Aug 28, 2024
1 parent 00cf62d commit 3698818
Show file tree
Hide file tree
Showing 25 changed files with 9 additions and 25 deletions.
2 changes: 1 addition & 1 deletion apis/apps/v1alpha1/component_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ type ComponentStatus struct {
// +genclient
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:categories={kubeblocks,all},shortName=cmp
// +kubebuilder:resource:categories={kubeblocks},shortName=cmp
// +kubebuilder:printcolumn:name="DEFINITION",type="string",JSONPath=".spec.compDef",description="component definition"
// +kubebuilder:printcolumn:name="SERVICE-VERSION",type="string",JSONPath=".spec.serviceVersion",description="service version"
// +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.phase",description="status phase"
Expand Down
2 changes: 1 addition & 1 deletion apis/apps/v1alpha1/componentresourceconstraint_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ type StorageConstraint struct {
// +genclient:nonNamespaced
// +k8s:openapi-gen=true
// +kubebuilder:object:root=true
// +kubebuilder:resource:categories={kubeblocks,all},scope=Cluster,shortName=crc
// +kubebuilder:resource:categories={kubeblocks},scope=Cluster,shortName=crc
// +kubebuilder:deprecatedversion:warning="Due to the lack of practical use cases, this API is deprecated from KB 0.9.0."

// ComponentResourceConstraint is the Schema for the componentresourceconstraints API
Expand Down
2 changes: 1 addition & 1 deletion apis/apps/v1alpha1/opsdefinition_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ type OpsDefinitionStatus struct {
// +k8s:openapi-gen=true
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:categories={kubeblocks,all},scope=Cluster,shortName=od
// +kubebuilder:resource:categories={kubeblocks},scope=Cluster,shortName=od
// +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.phase",description="OpsDefinition status phase."
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"

Expand Down
2 changes: 1 addition & 1 deletion apis/apps/v1alpha1/opsrequest_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1387,7 +1387,7 @@ type UpdatedParameters struct {
// +k8s:openapi-gen=true
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:categories={kubeblocks,all},shortName=ops
// +kubebuilder:resource:categories={kubeblocks},shortName=ops
// +kubebuilder:printcolumn:name="TYPE",type="string",JSONPath=".spec.type",description="Operation request type."
// +kubebuilder:printcolumn:name="CLUSTER",type="string",JSONPath=".spec.clusterName",description="Operand cluster."
// +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.phase",description="Operation status phase."
Expand Down
2 changes: 1 addition & 1 deletion apis/apps/v1alpha1/servicedescriptor_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (r ServiceDescriptorStatus) GetTerminalPhases() []Phase {
// +k8s:openapi-gen=true
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:categories={kubeblocks,all},shortName=sd
// +kubebuilder:resource:categories={kubeblocks},shortName=sd
// +kubebuilder:printcolumn:name="SERVICE_KIND",type="string",JSONPath=".spec.serviceKind",description="service kind"
// +kubebuilder:printcolumn:name="SERVICE_VERSION",type="string",JSONPath=".spec.serviceVersion",description="service version"
// +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.phase",description="status phase"
Expand Down
2 changes: 1 addition & 1 deletion apis/dataprotection/v1alpha1/restore_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ type RestoreStatus struct {
// +k8s:openapi-gen=true
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:categories={kubeblocks,all}
// +kubebuilder:resource:categories={kubeblocks}
// +kubebuilder:printcolumn:name="BACKUP",type="string",JSONPath=".spec.backup.name"
// +kubebuilder:printcolumn:name="RESTORE-TIME",type="string",JSONPath=".spec.restoreTime",description="Point in time for restoring"
// +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.phase",description="Restore Status."
Expand Down
2 changes: 1 addition & 1 deletion apis/experimental/v1alpha1/nodecountscaler_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const (
// +genclient
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:categories={kubeblocks,all},shortName=ncs
// +kubebuilder:resource:categories={kubeblocks},shortName=ncs
// +kubebuilder:printcolumn:name="TARGET-CLUSTER-NAME",type="string",JSONPath=".spec.targetClusterName",description="target cluster name."
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type==\"ScaleReady\")].status",description="scale ready."
// +kubebuilder:printcolumn:name="REASON",type="string",JSONPath=".status.conditions[?(@.type==\"ScaleReady\")].reason",description="reason."
Expand Down
2 changes: 1 addition & 1 deletion apis/workloads/legacy/replicatedstatemachine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ type ReplicatedStateMachineStatus struct {
// +genclient
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:categories={kubeblocks,all},shortName=its
// +kubebuilder:resource:categories={kubeblocks},shortName=its
// +kubebuilder:printcolumn:name="LEADER",type="string",JSONPath=".status.membersStatus[?(@.role.isLeader==true)].podName",description="leader pod name."
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.readyReplicas",description="ready replicas."
// +kubebuilder:printcolumn:name="REPLICAS",type="string",JSONPath=".status.replicas",description="total replicas."
Expand Down
2 changes: 1 addition & 1 deletion apis/workloads/v1alpha1/instanceset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ type InstanceSetStatus struct {
// +genclient
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:categories={kubeblocks,all},shortName=its
// +kubebuilder:resource:categories={kubeblocks},shortName=its
// +kubebuilder:printcolumn:name="LEADER",type="string",JSONPath=".status.membersStatus[?(@.role.isLeader==true)].podName",description="leader instance name."
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.readyReplicas",description="ready replicas."
// +kubebuilder:printcolumn:name="REPLICAS",type="string",JSONPath=".status.replicas",description="total replicas."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ spec:
names:
categories:
- kubeblocks
- all
kind: ComponentResourceConstraint
listKind: ComponentResourceConstraintList
plural: componentresourceconstraints
Expand Down
1 change: 0 additions & 1 deletion config/crd/bases/apps.kubeblocks.io_components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ spec:
names:
categories:
- kubeblocks
- all
kind: Component
listKind: ComponentList
plural: components
Expand Down
1 change: 0 additions & 1 deletion config/crd/bases/apps.kubeblocks.io_opsdefinitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ spec:
names:
categories:
- kubeblocks
- all
kind: OpsDefinition
listKind: OpsDefinitionList
plural: opsdefinitions
Expand Down
1 change: 0 additions & 1 deletion config/crd/bases/apps.kubeblocks.io_opsrequests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ spec:
names:
categories:
- kubeblocks
- all
kind: OpsRequest
listKind: OpsRequestList
plural: opsrequests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ spec:
names:
categories:
- kubeblocks
- all
kind: ServiceDescriptor
listKind: ServiceDescriptorList
plural: servicedescriptors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ spec:
names:
categories:
- kubeblocks
- all
kind: Restore
listKind: RestoreList
plural: restores
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ spec:
names:
categories:
- kubeblocks
- all
kind: NodeCountScaler
listKind: NodeCountScalerList
plural: nodecountscalers
Expand Down
1 change: 0 additions & 1 deletion config/crd/bases/workloads.kubeblocks.io_instancesets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ spec:
names:
categories:
- kubeblocks
- all
kind: InstanceSet
listKind: InstanceSetList
plural: instancesets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ spec:
names:
categories:
- kubeblocks
- all
kind: ComponentResourceConstraint
listKind: ComponentResourceConstraintList
plural: componentresourceconstraints
Expand Down
1 change: 0 additions & 1 deletion deploy/helm/crds/apps.kubeblocks.io_components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ spec:
names:
categories:
- kubeblocks
- all
kind: Component
listKind: ComponentList
plural: components
Expand Down
1 change: 0 additions & 1 deletion deploy/helm/crds/apps.kubeblocks.io_opsdefinitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ spec:
names:
categories:
- kubeblocks
- all
kind: OpsDefinition
listKind: OpsDefinitionList
plural: opsdefinitions
Expand Down
1 change: 0 additions & 1 deletion deploy/helm/crds/apps.kubeblocks.io_opsrequests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ spec:
names:
categories:
- kubeblocks
- all
kind: OpsRequest
listKind: OpsRequestList
plural: opsrequests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ spec:
names:
categories:
- kubeblocks
- all
kind: ServiceDescriptor
listKind: ServiceDescriptorList
plural: servicedescriptors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ spec:
names:
categories:
- kubeblocks
- all
kind: Restore
listKind: RestoreList
plural: restores
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ spec:
names:
categories:
- kubeblocks
- all
kind: NodeCountScaler
listKind: NodeCountScalerList
plural: nodecountscalers
Expand Down
1 change: 0 additions & 1 deletion deploy/helm/crds/workloads.kubeblocks.io_instancesets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ spec:
names:
categories:
- kubeblocks
- all
kind: InstanceSet
listKind: InstanceSetList
plural: instancesets
Expand Down

0 comments on commit 3698818

Please sign in to comment.