Merge pull request #1069 from hongchaodeng/f
backup: change deployment update strategy to Recreate
This commit is contained in:
Коммит
fab26c28f6
|
@ -6,10 +6,14 @@
|
|||
|
||||
### Changed
|
||||
|
||||
- Backup sidecar deployment created with `Recreate` strategy.
|
||||
|
||||
### Removed
|
||||
|
||||
### Fixed
|
||||
|
||||
- [GH-1068] Backup sidecar deployment stuck at upgrading
|
||||
|
||||
### Deprecated
|
||||
|
||||
### Security
|
||||
|
|
|
@ -213,6 +213,9 @@ func NewBackupDeploymentManifest(name string, dplSel map[string]string, pl v1.Po
|
|||
Spec: appsv1beta1.DeploymentSpec{
|
||||
Selector: &metav1.LabelSelector{MatchLabels: pl.ObjectMeta.Labels},
|
||||
Template: pl,
|
||||
Strategy: appsv1beta1.DeploymentStrategy{
|
||||
Type: appsv1beta1.RecreateDeploymentStrategyType,
|
||||
},
|
||||
},
|
||||
}
|
||||
addOwnerRefToObject(d.GetObjectMeta(), owner)
|
||||
|
|
Загрузка…
Ссылка в новой задаче