mirror of
https://github.com/rancher/types.git
synced 2025-08-01 04:57:05 +00:00
Added timeout parameter to BackupConfig type
This commit is contained in:
parent
fe03f32597
commit
00f5a83985
@ -23,6 +23,8 @@ type BackupConfig struct {
|
||||
S3BackupConfig *S3BackupConfig `yaml:",omitempty" json:"s3BackupConfig"`
|
||||
// replace special characters in snapshot names
|
||||
SafeTimestamp bool `yaml:"safe_timestamp" json:"safeTimestamp,omitempty"`
|
||||
// Backup execution timeout
|
||||
Timeout int `yaml:"timeout" json:"timeout,omitempty" norman:"default=300"`
|
||||
}
|
||||
|
||||
type S3BackupConfig struct {
|
||||
|
@ -7,6 +7,7 @@ const (
|
||||
BackupConfigFieldRetention = "retention"
|
||||
BackupConfigFieldS3BackupConfig = "s3BackupConfig"
|
||||
BackupConfigFieldSafeTimestamp = "safeTimestamp"
|
||||
BackupConfigFieldTimeout = "timeout"
|
||||
)
|
||||
|
||||
type BackupConfig struct {
|
||||
@ -15,4 +16,5 @@ type BackupConfig struct {
|
||||
Retention int64 `json:"retention,omitempty" yaml:"retention,omitempty"`
|
||||
S3BackupConfig *S3BackupConfig `json:"s3BackupConfig,omitempty" yaml:"s3BackupConfig,omitempty"`
|
||||
SafeTimestamp bool `json:"safeTimestamp,omitempty" yaml:"safeTimestamp,omitempty"`
|
||||
Timeout int64 `json:"timeout,omitempty" yaml:"timeout,omitempty"`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user