Skip to content

Commit

Permalink
add convenient short name
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@ledger.fr>
  • Loading branch information
MrFreezeex committed Jan 27, 2025
1 parent 3071973 commit 0c195a4
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/crd/multicluster.x-k8s.io_serviceexports.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ spec:
kind: ServiceExport
listKind: ServiceExportList
plural: serviceexports
shortNames:
- svcexport
- svcex
singular: serviceexport
scope: Namespaced
versions:
Expand Down
3 changes: 3 additions & 0 deletions config/crd/multicluster.x-k8s.io_serviceimports.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ spec:
kind: ServiceImport
listKind: ServiceImportList
plural: serviceimports
shortNames:
- svcimport
- svcim
singular: serviceimport
scope: Namespaced
versions:
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/v1alpha1/serviceexport.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
// +genclient
// +kubebuilder:object:root=true
// +kubebuilder:storageversion
// +kubebuilder:resource:shortName={svcexport,svcex}

// ServiceExport declares that the Service with the same name and namespace
// as this export should be consumable from other clusters.
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/v1alpha1/serviceimport.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
// +genclient
// +kubebuilder:object:root=true
// +kubebuilder:storageversion
// +kubebuilder:resource:shortName={svcimport,svcim}

// ServiceImport describes a service imported from clusters in a ClusterSet.
type ServiceImport struct {
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/v1alpha2/serviceexport.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (

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

// ServiceExport declares that the Service with the same name and namespace
// as this export should be consumable from other clusters.
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/v1alpha2/serviceimport.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (

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

// ServiceImport describes a service imported from clusters in a ClusterSet and
// the information necessary to consume it. ServiceImport is managed by an MCS
Expand Down

0 comments on commit 0c195a4

Please sign in to comment.