Skip to content

Commit e02dc5a

Browse files
committed
Add short names for custom resources
1 parent f9b8ae9 commit e02dc5a

13 files changed

+30
-0
lines changed

api/v1alpha2/addonprovider_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ type AddonProviderStatus struct {
3131
}
3232

3333
// +kubebuilder:object:root=true
34+
// +kubebuilder:resource:path=addonproviders,shortName=caap,scope=Namespaced
3435
// +kubebuilder:subresource:status
3536
// +kubebuilder:printcolumn:name="InstalledVersion",type="string",JSONPath=".status.installedVersion"
3637
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"

api/v1alpha2/bootstrapprovider_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ type BootstrapProviderStatus struct {
3131
}
3232

3333
// +kubebuilder:object:root=true
34+
// +kubebuilder:resource:path=bootstrapproviders,shortName=cabp,scope=Namespaced
3435
// +kubebuilder:subresource:status
3536
// +kubebuilder:printcolumn:name="InstalledVersion",type="string",JSONPath=".status.installedVersion"
3637
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"

api/v1alpha2/controlplaneprovider_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ type ControlPlaneProviderStatus struct {
3131
}
3232

3333
// +kubebuilder:object:root=true
34+
// +kubebuilder:resource:path=controlplaneproviders,shortName=cacpp,scope=Namespaced
3435
// +kubebuilder:subresource:status
3536
// +kubebuilder:printcolumn:name="InstalledVersion",type="string",JSONPath=".status.installedVersion"
3637
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"

api/v1alpha2/coreprovider_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ type CoreProviderStatus struct {
3131
}
3232

3333
// +kubebuilder:object:root=true
34+
// +kubebuilder:resource:path=coreproviders,shortName=cacp,scope=Namespaced
3435
// +kubebuilder:subresource:status
3536
// +kubebuilder:printcolumn:name="InstalledVersion",type="string",JSONPath=".status.installedVersion"
3637
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"

api/v1alpha2/infrastructureprovider_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ type InfrastructureProviderStatus struct {
3131
}
3232

3333
// +kubebuilder:object:root=true
34+
// +kubebuilder:resource:path=infrastructureproviders,shortName=caip,scope=Namespaced
3435
// +kubebuilder:subresource:status
3536
// +kubebuilder:printcolumn:name="InstalledVersion",type="string",JSONPath=".status.installedVersion"
3637
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"

api/v1alpha2/ipamprovider_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ type IPAMProviderStatus struct {
3131
}
3232

3333
// +kubebuilder:object:root=true
34+
// +kubebuilder:resource:path=ipamproviders,shortName=caipamp,scope=Namespaced
3435
// +kubebuilder:subresource:status
3536
// +kubebuilder:printcolumn:name="InstalledVersion",type="string",JSONPath=".status.installedVersion"
3637
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"

config/crd/bases/operator.cluster.x-k8s.io_addonproviders.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ spec:
1111
kind: AddonProvider
1212
listKind: AddonProviderList
1313
plural: addonproviders
14+
shortNames:
15+
- caap
1416
singular: addonprovider
1517
scope: Namespaced
1618
versions:

config/crd/bases/operator.cluster.x-k8s.io_bootstrapproviders.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ spec:
1111
kind: BootstrapProvider
1212
listKind: BootstrapProviderList
1313
plural: bootstrapproviders
14+
shortNames:
15+
- cabp
1416
singular: bootstrapprovider
1517
scope: Namespaced
1618
versions:

config/crd/bases/operator.cluster.x-k8s.io_controlplaneproviders.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ spec:
1111
kind: ControlPlaneProvider
1212
listKind: ControlPlaneProviderList
1313
plural: controlplaneproviders
14+
shortNames:
15+
- cacpp
1416
singular: controlplaneprovider
1517
scope: Namespaced
1618
versions:

config/crd/bases/operator.cluster.x-k8s.io_coreproviders.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ spec:
1111
kind: CoreProvider
1212
listKind: CoreProviderList
1313
plural: coreproviders
14+
shortNames:
15+
- cacp
1416
singular: coreprovider
1517
scope: Namespaced
1618
versions:

0 commit comments

Comments
 (0)