diff --git a/api/v1alpha1/cell_types.go b/api/v1alpha1/cell_types.go index 959a7a63..a81b1cdb 100644 --- a/api/v1alpha1/cell_types.go +++ b/api/v1alpha1/cell_types.go @@ -140,6 +140,7 @@ type CellStatus struct { // +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Available')].status" // Cell is the Schema for the cells API +// +kubebuilder:resource:shortName=cel type Cell struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` diff --git a/api/v1alpha1/celltemplate_types.go b/api/v1alpha1/celltemplate_types.go index 7b24c2b2..2e70cd3d 100644 --- a/api/v1alpha1/celltemplate_types.go +++ b/api/v1alpha1/celltemplate_types.go @@ -43,6 +43,7 @@ type CellTemplateSpec struct { // +kubebuilder:resource:scope=Namespaced // CellTemplate is the Schema for the celltemplates API +// +kubebuilder:resource:shortName=cet type CellTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` diff --git a/api/v1alpha1/coretemplate_types.go b/api/v1alpha1/coretemplate_types.go index 25d1c17a..3738c356 100644 --- a/api/v1alpha1/coretemplate_types.go +++ b/api/v1alpha1/coretemplate_types.go @@ -44,6 +44,7 @@ type CoreTemplateSpec struct { // +kubebuilder:resource:scope=Namespaced // CoreTemplate is the Schema for the coretemplates API +// +kubebuilder:resource:shortName=cot type CoreTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` diff --git a/api/v1alpha1/multigrescluster_types.go b/api/v1alpha1/multigrescluster_types.go index 32023a2c..7cf9fbb2 100644 --- a/api/v1alpha1/multigrescluster_types.go +++ b/api/v1alpha1/multigrescluster_types.go @@ -357,6 +357,7 @@ type DatabaseStatusSummary struct { // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" // MultigresCluster is the Schema for the multigresclusters API +// +kubebuilder:resource:shortName=mgc type MultigresCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` diff --git a/api/v1alpha1/shard_types.go b/api/v1alpha1/shard_types.go index 37c0aea2..087ed67e 100644 --- a/api/v1alpha1/shard_types.go +++ b/api/v1alpha1/shard_types.go @@ -187,6 +187,7 @@ type ShardStatus struct { // +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Available')].status" // Shard is the Schema for the shards API +// +kubebuilder:resource:shortName=srd type Shard struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` diff --git a/api/v1alpha1/shardtemplate_types.go b/api/v1alpha1/shardtemplate_types.go index 561972f1..6c487205 100644 --- a/api/v1alpha1/shardtemplate_types.go +++ b/api/v1alpha1/shardtemplate_types.go @@ -44,6 +44,7 @@ type ShardTemplateSpec struct { // +kubebuilder:resource:scope=Namespaced // ShardTemplate is the Schema for the shardtemplates API +// +kubebuilder:resource:shortName=sht type ShardTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` diff --git a/api/v1alpha1/tablegroup_types.go b/api/v1alpha1/tablegroup_types.go index 4f40f43f..7476723f 100644 --- a/api/v1alpha1/tablegroup_types.go +++ b/api/v1alpha1/tablegroup_types.go @@ -104,6 +104,7 @@ type TableGroupStatus struct { // +kubebuilder:printcolumn:name="Shards",type="integer",JSONPath=".status.readyShards" // TableGroup is the Schema for the tablegroups API +// +kubebuilder:resource:shortName=tbg type TableGroup struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` diff --git a/api/v1alpha1/toposerver_types.go b/api/v1alpha1/toposerver_types.go index be410c8a..a1d3263c 100644 --- a/api/v1alpha1/toposerver_types.go +++ b/api/v1alpha1/toposerver_types.go @@ -193,6 +193,7 @@ type GlobalTopoServerRef struct { // +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Available')].status" // TopoServer is the Schema for the toposervers API +// +kubebuilder:resource:shortName=tps type TopoServer struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` diff --git a/config/crd/bases/multigres.com_cells.yaml b/config/crd/bases/multigres.com_cells.yaml index c1ad40c2..bba9ba06 100644 --- a/config/crd/bases/multigres.com_cells.yaml +++ b/config/crd/bases/multigres.com_cells.yaml @@ -11,6 +11,8 @@ spec: kind: Cell listKind: CellList plural: cells + shortNames: + - cel singular: cell scope: Namespaced versions: diff --git a/config/crd/bases/multigres.com_celltemplates.yaml b/config/crd/bases/multigres.com_celltemplates.yaml index 0c874e03..2bdd1a08 100644 --- a/config/crd/bases/multigres.com_celltemplates.yaml +++ b/config/crd/bases/multigres.com_celltemplates.yaml @@ -11,6 +11,8 @@ spec: kind: CellTemplate listKind: CellTemplateList plural: celltemplates + shortNames: + - cet singular: celltemplate scope: Namespaced versions: diff --git a/config/crd/bases/multigres.com_coretemplates.yaml b/config/crd/bases/multigres.com_coretemplates.yaml index dcc98de3..bd7385b9 100644 --- a/config/crd/bases/multigres.com_coretemplates.yaml +++ b/config/crd/bases/multigres.com_coretemplates.yaml @@ -11,6 +11,8 @@ spec: kind: CoreTemplate listKind: CoreTemplateList plural: coretemplates + shortNames: + - cot singular: coretemplate scope: Namespaced versions: diff --git a/config/crd/bases/multigres.com_multigresclusters.yaml b/config/crd/bases/multigres.com_multigresclusters.yaml index 1458fc5b..4fcff3d6 100644 --- a/config/crd/bases/multigres.com_multigresclusters.yaml +++ b/config/crd/bases/multigres.com_multigresclusters.yaml @@ -11,6 +11,8 @@ spec: kind: MultigresCluster listKind: MultigresClusterList plural: multigresclusters + shortNames: + - mgc singular: multigrescluster scope: Namespaced versions: diff --git a/config/crd/bases/multigres.com_shards.yaml b/config/crd/bases/multigres.com_shards.yaml index 6e7d36c4..a36c24dd 100644 --- a/config/crd/bases/multigres.com_shards.yaml +++ b/config/crd/bases/multigres.com_shards.yaml @@ -11,6 +11,8 @@ spec: kind: Shard listKind: ShardList plural: shards + shortNames: + - srd singular: shard scope: Namespaced versions: diff --git a/config/crd/bases/multigres.com_shardtemplates.yaml b/config/crd/bases/multigres.com_shardtemplates.yaml index 49d632cb..fe958e07 100644 --- a/config/crd/bases/multigres.com_shardtemplates.yaml +++ b/config/crd/bases/multigres.com_shardtemplates.yaml @@ -11,6 +11,8 @@ spec: kind: ShardTemplate listKind: ShardTemplateList plural: shardtemplates + shortNames: + - sht singular: shardtemplate scope: Namespaced versions: diff --git a/config/crd/bases/multigres.com_tablegroups.yaml b/config/crd/bases/multigres.com_tablegroups.yaml index 72111e98..a923d3ab 100644 --- a/config/crd/bases/multigres.com_tablegroups.yaml +++ b/config/crd/bases/multigres.com_tablegroups.yaml @@ -11,6 +11,8 @@ spec: kind: TableGroup listKind: TableGroupList plural: tablegroups + shortNames: + - tbg singular: tablegroup scope: Namespaced versions: diff --git a/config/crd/bases/multigres.com_toposervers.yaml b/config/crd/bases/multigres.com_toposervers.yaml index 4799fc99..9a067884 100644 --- a/config/crd/bases/multigres.com_toposervers.yaml +++ b/config/crd/bases/multigres.com_toposervers.yaml @@ -11,6 +11,8 @@ spec: kind: TopoServer listKind: TopoServerList plural: toposervers + shortNames: + - tps singular: toposerver scope: Namespaced versions: