diff --git a/apis/management.cattle.io/v3/backup_types.go b/apis/management.cattle.io/v3/backup_types.go index 35bcc26d..8a58a6ce 100644 --- a/apis/management.cattle.io/v3/backup_types.go +++ b/apis/management.cattle.io/v3/backup_types.go @@ -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 { diff --git a/client/management/v3/zz_generated_backup_config.go b/client/management/v3/zz_generated_backup_config.go index befe8e80..140cf15c 100644 --- a/client/management/v3/zz_generated_backup_config.go +++ b/client/management/v3/zz_generated_backup_config.go @@ -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"` }