1
0
mirror of https://github.com/rancher/types.git synced 2025-09-17 23:38:20 +00:00

Merge pull request #423 from galal-hussein/etcd_backup_types

Etcd backup types
This commit is contained in:
Alena Prokharchyk
2018-05-08 16:22:02 -07:00
committed by GitHub
3 changed files with 13 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ const (
var (
m = image.Mirror
ToolsImage = m("rancher/rke-tools:v0.1.5")
ToolsImage = m("rancher/rke-tools:v0.1.6")
// K8sVersionToRKESystemImages - images map for 2.0
K8sVersionToRKESystemImages = map[string]RKESystemImages{

View File

@@ -171,6 +171,12 @@ 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
Retention string `yaml:"retention" json:"retention,omitempty"`
// Etcd Backup Creation period
Creation string `yaml:"creation" json:"creation,omitempty"`
}
type KubeAPIService struct {

View File

@@ -2,23 +2,29 @@ package client
const (
ETCDServiceType = "etcdService"
ETCDServiceFieldBackup = "backup"
ETCDServiceFieldCACert = "caCert"
ETCDServiceFieldCert = "cert"
ETCDServiceFieldCreation = "creation"
ETCDServiceFieldExternalURLs = "externalUrls"
ETCDServiceFieldExtraArgs = "extraArgs"
ETCDServiceFieldExtraBinds = "extraBinds"
ETCDServiceFieldImage = "image"
ETCDServiceFieldKey = "key"
ETCDServiceFieldPath = "path"
ETCDServiceFieldRetention = "retention"
)
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"`
ExternalURLs []string `json:"externalUrls,omitempty" yaml:"externalUrls,omitempty"`
ExtraArgs map[string]string `json:"extraArgs,omitempty" yaml:"extraArgs,omitempty"`
ExtraBinds []string `json:"extraBinds,omitempty" yaml:"extraBinds,omitempty"`
Image string `json:"image,omitempty" yaml:"image,omitempty"`
Key string `json:"key,omitempty" yaml:"key,omitempty"`
Path string `json:"path,omitempty" yaml:"path,omitempty"`
Retention string `json:"retention,omitempty" yaml:"retention,omitempty"`
}