Skip to content

Commit e041eb7

Browse files
committed
Add missing short names for OpenStackVersion
I was surprised when "oc get osv" didn't work, so others will likely be too.
1 parent 49734b3 commit e041eb7

4 files changed

Lines changed: 10 additions & 0 deletions

File tree

apis/bases/core.openstack.org_openstackversions.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ spec:
1111
kind: OpenStackVersion
1212
listKind: OpenStackVersionList
1313
plural: openstackversions
14+
shortNames:
15+
- osv
16+
- osvs
1417
singular: openstackversion
1518
scope: Namespaced
1619
versions:

apis/core/v1beta1/openstackversion_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ type OpenStackVersionStatus struct {
185185

186186
// +kubebuilder:object:root=true
187187
// +kubebuilder:subresource:status
188+
// +kubebuilder:resource:shortName=osv;osvs
188189
// +operator-sdk:csv:customresourcedefinitions:displayName="OpenStack Version"
189190
// +kubebuilder:printcolumn:name="Target Version",type=string,JSONPath=`.spec.targetVersion`
190191
// +kubebuilder:printcolumn:name="Available Version",type=string,JSONPath=`.status.availableVersion`

bindata/crds/crds.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19653,6 +19653,9 @@ spec:
1965319653
kind: OpenStackVersion
1965419654
listKind: OpenStackVersionList
1965519655
plural: openstackversions
19656+
shortNames:
19657+
- osv
19658+
- osvs
1965619659
singular: openstackversion
1965719660
scope: Namespaced
1965819661
versions:

config/crd/bases/core.openstack.org_openstackversions.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ spec:
1111
kind: OpenStackVersion
1212
listKind: OpenStackVersionList
1313
plural: openstackversions
14+
shortNames:
15+
- osv
16+
- osvs
1417
singular: openstackversion
1518
scope: Namespaced
1619
versions:

0 commit comments

Comments
 (0)