From e22c29f783966cce761cfe57ece3877a65cc95bc Mon Sep 17 00:00:00 2001 From: Jean-Marc ANDRE Date: Tue, 7 Feb 2023 17:11:16 +0100 Subject: [PATCH] Cleanup --- api/v1alpha1/.backupsession_types.go.un~ | Bin 7478 -> 0 bytes api/v1alpha1/backupsession_types.go~ | 89 ----------------------- 2 files changed, 89 deletions(-) delete mode 100644 api/v1alpha1/.backupsession_types.go.un~ delete mode 100644 api/v1alpha1/backupsession_types.go~ diff --git a/api/v1alpha1/.backupsession_types.go.un~ b/api/v1alpha1/.backupsession_types.go.un~ deleted file mode 100644 index a0433fe1ba5ebb94a6e220659ba125b7020a746f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7478 zcmeI1&ubGw6vsDd)Q(yeY^(TlyI^g#&6E*?oJx9zDMnUuu4K z%5h_4>D!yN*SBvyem4E&?Ob{=UA(e(|G|q_7eAee=D#|QbAw#jCJM^ryJP~RawlBB z@Uc>&OvSnLPJUsCMxQQ53=kNd}{4KD-f=qKO}HC&iB1EH>BS~E_h~{ag{ms zNI(Om3b`@>#CHTl3r)#lY9wfG9<-YhL6t?k6QniQTREFl>rFps)uSN1SC4sn)o-ob zMI!O>B|ois5-K2~bd>?Hg{ssrKK6q;%QnCi3^!{_2Vcun6U1!TkLe66UZy~}MO!xT zTBMpFWzf zbFvrCqpZ+l3+QdfywX5+l-xdxDn$kv|ApqPPII@EA3q8N2Uyr_^WRTUA1Uq06Uatz zfi&Q(k&CBMTaZeY4UUpsxhKgLxk*uo zoz)gks`Ej_lU5M&B}92;2zY3_D+5?80nlw3LIk5mFy9N9L-{bh++8&fq+XF&GN9sI zws$yC!?@8Ks}BNX<<~0`$PWVo_wV^#~D+8r9=|{aA$b az$nf?aU$X#MP&fTr`ITMp$6@jmp=jh6MG5( diff --git a/api/v1alpha1/backupsession_types.go~ b/api/v1alpha1/backupsession_types.go~ deleted file mode 100644 index 06e0ca1..0000000 --- a/api/v1alpha1/backupsession_types.go~ +++ /dev/null @@ -1,89 +0,0 @@ -/* -Copyright 2023. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -import ( - corev1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/types" -) - -type SessionState string - -const ( - New SessionState = "New" - Init SessionState = "Initializing" - Running SessionState = "Running" - Waiting SessionState = "Waiting" - Finalize SessionState = "Finalizing" - Success SessionState = "Success" - Failure SessionState = "Failure" - Deleted SessionState = "Deleted" -) - -type TargetStatus struct { - Name string `json:"name"` - Kind string `json:"kind"` - SessionState `json:"state"` - SnapshotId string `json:"snapshotId"` - StartTime *metav1.Time `json:"startTime"` - Duration *metav1.Duration `json:"duration"` - Try int `json:"try"` -} - -// BackupSessionSpec defines the desired state of BackupSession -type BackupSessionSpec struct { - Ref corev1.ObjectReference `json:"ref"` -} - -// BackupSessionStatus defines the observed state of BackupSession -type BackupSessionStatus struct { - SessionState `json:"state"` - StartTime *metav1.Time `json:"startTime"` - Targets []TargetStatus `json:"target"` - Keep string `json:"keep"` -} - -//+kubebuilder:object:root=true -//+kubebuilder:subresource:status -// +kubebuilder:resource:shortName="bs" -// +kubebuilder:printcolumn:name="Ref",type=string,JSONPath=`.spec.ref.name` -// +kubebuilder:printcolumn:name="State",type=string,JSONPath=`.status.state` -// +kubebuilder:printcolumn:name="Started",type=string,format=date-time,JSONPath=`.status.startTime` -// +kubebuilder:printcolumn:name="Keep",type=string,JSONPath=`.status.keep` - -// BackupSession is the Schema for the backupsessions API -type BackupSession struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec BackupSessionSpec `json:"spec,omitempty"` - Status BackupSessionStatus `json:"status,omitempty"` -} - -//+kubebuilder:object:root=true - -// BackupSessionList contains a list of BackupSession -type BackupSessionList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []BackupSession `json:"items"` -} - -func init() { - SchemeBuilder.Register(&BackupSession{}, &BackupSessionList{}) -}