kubectl displays suspended and schedule attribute of BackupConfiguration

This commit is contained in:
Jean-Marc ANDRE 2021-11-30 23:36:36 +01:00
parent 5ed396ffce
commit 0510fc43d4

View File

@ -96,6 +96,8 @@ type BackupConfigurationStatus struct {
// +kubebuilder:object:root=true
// +kubebuilder:resource:shortName="bc"
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Suspended",type=boolean,JSONPath=`.spec.suspend`
// +kubebuilder:printcolumn:name="Schedule",type=string,JSONPath=`.spec.schedule`
type BackupConfiguration struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`