Skip to content

Commit 0308ed0

Browse files
authored
feat: added shortname as alias (#1375)
* added shortname as alias * added experimental annotation back
1 parent 92807d1 commit 0308ed0

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

api/v1/inferencepool_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import (
2525
// +kubebuilder:object:root=true
2626
// TODO: change the annotation once it gets officially approved
2727
// +kubebuilder:metadata:annotations="api-approved.kubernetes.io=unapproved, experimental-only"
28+
// +kubebuilder:resource:shortName=infpool
2829
// +kubebuilder:subresource:status
2930
// +kubebuilder:storageversion
3031
// +genclient

apix/v1alpha2/inferencepool_types.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ import (
2121
)
2222

2323
// InferencePool is the Schema for the InferencePools API.
24-
//
2524
// +kubebuilder:object:root=true
26-
// TODO: change the annotation once it gets officially approved
2725
// +kubebuilder:metadata:annotations="api-approved.kubernetes.io=unapproved, experimental-only"
26+
// +kubebuilder:resource:shortName=xinfpool
2827
// +kubebuilder:subresource:status
2928
// +kubebuilder:storageversion
3029
// +genclient

config/crd/bases/inference.networking.k8s.io_inferencepools.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ spec:
1212
kind: InferencePool
1313
listKind: InferencePoolList
1414
plural: inferencepools
15+
shortNames:
16+
- infpool
1517
singular: inferencepool
1618
scope: Namespaced
1719
versions:

config/crd/bases/inference.networking.x-k8s.io_inferencepools.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ spec:
1212
kind: InferencePool
1313
listKind: InferencePoolList
1414
plural: inferencepools
15+
shortNames:
16+
- xinfpool
1517
singular: inferencepool
1618
scope: Namespaced
1719
versions:
1820
- name: v1alpha2
1921
schema:
2022
openAPIV3Schema:
21-
description: |
22-
InferencePool is the Schema for the InferencePools API.
23+
description: InferencePool is the Schema for the InferencePools API.
2324
properties:
2425
apiVersion:
2526
description: |-

0 commit comments

Comments
 (0)