1
0
mirror of https://github.com/rancher/types.git synced 2025-06-21 19:27:03 +00:00

adding k8s version and cluster object to backup

This commit is contained in:
Luther Monson 2020-02-24 11:04:57 -07:00
parent 0cbd16146c
commit ec30c7e870
2 changed files with 6 additions and 1 deletions

View File

@ -66,6 +66,10 @@ type EtcdBackupSpec struct {
type EtcdBackupStatus struct {
Conditions []EtcdBackupCondition `json:"conditions"`
// version of k8s in the backup pulled from rke config
KubernetesVersion string `yaml:"kubernetesVersion" json:"kubernetesVersion,omitempty" norman:"noupdate"`
// json + gzipped + base64 backup of the cluster object when the backup was created
ClusterObject string `yaml:"clusterObject" json:"clusterObject,omitempty" norman:"type=password,noupdate"`
}
type EtcdBackupCondition struct {

View File

@ -276,7 +276,8 @@ type MonitoringOutput struct {
}
type RestoreFromEtcdBackupInput struct {
EtcdBackupName string `json:"etcdBackupName,omitempty" norman:"type=reference[etcdBackup]"`
EtcdBackupName string `json:"etcdBackupName,omitempty" norman:"type=reference[etcdBackup]"`
RestoreRkeConfig string `json:"restoreRkeConfig,omitempty"`
}
type RotateCertificateInput struct {