From 233856beb0399e6bf49935a1e9ca96131390eba5 Mon Sep 17 00:00:00 2001 From: Jean-Marc Andre Date: Tue, 5 Jan 2021 23:08:34 +0100 Subject: [PATCH] Added short names for the backup resources --- api/v1alpha1/backupconfiguration_types.go | 1 + api/v1alpha1/backupsession_types.go | 1 + 2 files changed, 2 insertions(+) diff --git a/api/v1alpha1/backupconfiguration_types.go b/api/v1alpha1/backupconfiguration_types.go index eec6ace..fdb8ca1 100644 --- a/api/v1alpha1/backupconfiguration_types.go +++ b/api/v1alpha1/backupconfiguration_types.go @@ -86,6 +86,7 @@ type BackupConfigurationStatus struct { // BackupConfiguration is the Schema for the backupconfigurations API // +kubebuilder:object:root=true +// +kubebuilder:resource:shortName="bc" // +kubebuilder:subresource:status type BackupConfiguration struct { metav1.TypeMeta `json:",inline"` diff --git a/api/v1alpha1/backupsession_types.go b/api/v1alpha1/backupsession_types.go index 5e016e9..171aa7e 100644 --- a/api/v1alpha1/backupsession_types.go +++ b/api/v1alpha1/backupsession_types.go @@ -76,6 +76,7 @@ type BackupSessionStatus struct { } // +kubebuilder:object:root=true +// +kubebuilder:resource:shortName="bs" // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Ref",type=string,JSONPath=`.spec.ref.name` // +kubebuilder:printcolumn:name="State",type=string,JSONPath=`.status.state`