1
0
mirror of https://github.com/rancher/types.git synced 2025-08-01 04:57:05 +00:00

Merge pull request #438 from galal-hussein/change_backup_to_snapshot

Change backup to snapshot
This commit is contained in:
Denise 2018-05-17 13:17:08 -07:00 committed by GitHub
commit f08dc626d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -171,11 +171,11 @@ type ETCDService struct {
Key string `yaml:"key" json:"key,omitempty"`
// External etcd prefix
Path string `yaml:"path" json:"path,omitempty"`
// Etcd Backup Service
Backup bool `yaml:"backup" json:"backup,omitempty"`
// Etcd Backup Retention period
// Etcd Recurring snapshot Service
Snapshot bool `yaml:"snapshot" json:"snapshot,omitempty"`
// Etcd snapshot Retention period
Retention string `yaml:"retention" json:"retention,omitempty"`
// Etcd Backup Creation period
// Etcd snapshot Creation period
Creation string `yaml:"creation" json:"creation,omitempty"`
}

View File

@ -2,7 +2,6 @@ package client
const (
ETCDServiceType = "etcdService"
ETCDServiceFieldBackup = "backup"
ETCDServiceFieldCACert = "caCert"
ETCDServiceFieldCert = "cert"
ETCDServiceFieldCreation = "creation"
@ -13,10 +12,10 @@ const (
ETCDServiceFieldKey = "key"
ETCDServiceFieldPath = "path"
ETCDServiceFieldRetention = "retention"
ETCDServiceFieldSnapshot = "snapshot"
)
type ETCDService struct {
Backup bool `json:"backup,omitempty" yaml:"backup,omitempty"`
CACert string `json:"caCert,omitempty" yaml:"caCert,omitempty"`
Cert string `json:"cert,omitempty" yaml:"cert,omitempty"`
Creation string `json:"creation,omitempty" yaml:"creation,omitempty"`
@ -27,4 +26,5 @@ type ETCDService struct {
Key string `json:"key,omitempty" yaml:"key,omitempty"`
Path string `json:"path,omitempty" yaml:"path,omitempty"`
Retention string `json:"retention,omitempty" yaml:"retention,omitempty"`
Snapshot bool `json:"snapshot,omitempty" yaml:"snapshot,omitempty"`
}