Skip to content

Commit 38bab5b

Browse files
authored
Merge pull request #105 from MrFreezeex/add-short-name
apis: add short names to crds
2 parents 89a3568 + c635d41 commit 38bab5b

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)