Skip to content

Commit c635d41

Browse files
committed
apis: add short names to crds
Add svcexport/svcimport short name that might feel more natural to type as the short name of service is svc. Also preserve the existing default short name "svcex" and "svcim". Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>
1 parent 5e5359a commit c635d41

6 files changed

+6
-0
lines changed

config/crd-base/multicluster.x-k8s.io_serviceexports.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ spec:
2424
kind: ServiceExport
2525
shortNames:
2626
- svcex
27+
- svcexport
2728
versions:
2829
- name: v1alpha1
2930
served: true

config/crd-base/multicluster.x-k8s.io_serviceimports.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ spec:
2424
kind: ServiceImport
2525
shortNames:
2626
- svcim
27+
- svcimport
2728
versions:
2829
- name: v1alpha1
2930
served: true

config/crd/multicluster.x-k8s.io_serviceexports.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ spec:
2424
kind: ServiceExport
2525
shortNames:
2626
- svcex
27+
- svcexport
2728
versions:
2829
- name: v1alpha1
2930
served: true

config/crd/multicluster.x-k8s.io_serviceimports.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ spec:
2424
kind: ServiceImport
2525
shortNames:
2626
- svcim
27+
- svcimport
2728
versions:
2829
- name: v1alpha1
2930
served: true

pkg/apis/v1alpha1/serviceexport.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222

2323
// +genclient
2424
// +kubebuilder:object:root=true
25+
// +kubebuilder:resource:shortName={svcex,svcexport}
2526

2627
// ServiceExport declares that the Service with the same name and namespace
2728
// as this export should be consumable from other clusters.

pkg/apis/v1alpha1/serviceimport.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323

2424
// +genclient
2525
// +kubebuilder:object:root=true
26+
// +kubebuilder:resource:shortName={svcim,svcimport}
2627

2728
// ServiceImport describes a service imported from clusters in a ClusterSet.
2829
type ServiceImport struct {

0 commit comments

Comments
 (0)