mirror of
https://github.com/rancher/types.git
synced 2025-06-27 22:16:48 +00:00
Add spec to etcdBackup
This commit is contained in:
parent
0f5ebf405a
commit
fba31fc691
@ -40,14 +40,19 @@ type EtcdBackup struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||
|
||||
// backup spec
|
||||
Spec EtcdBackupSpec `json:"spec"`
|
||||
// backup status
|
||||
Status EtcdBackupStatus `yaml:"status" json:"status,omitempty"`
|
||||
}
|
||||
|
||||
type EtcdBackupSpec struct {
|
||||
// cluster ID
|
||||
ClusterID string `json:"clusterId,omitempty" norman:"required,type=reference[cluster]"`
|
||||
// actual file name on the target
|
||||
Filename string `yaml:"filename" json:"filename,omitempty"`
|
||||
// backupConfig
|
||||
BackupConfig BackupConfig `yaml:",omitempty" json:"backupConfig,omitempty"`
|
||||
// backup status
|
||||
Status EtcdBackupStatus `yaml:"status" json:"status,omitempty"`
|
||||
}
|
||||
|
||||
type EtcdBackupStatus struct {
|
||||
|
Loading…
Reference in New Issue
Block a user