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
|
### Changed
|
||||||
|
|
||||||
|
- Backup sidecar deployment created with `Recreate` strategy.
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
- [GH-1068] Backup sidecar deployment stuck at upgrading
|
||||||
|
|
||||||
### Deprecated
|
### Deprecated
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
|
@ -213,6 +213,9 @@ func NewBackupDeploymentManifest(name string, dplSel map[string]string, pl v1.Po
|
||||||
Spec: appsv1beta1.DeploymentSpec{
|
Spec: appsv1beta1.DeploymentSpec{
|
||||||
Selector: &metav1.LabelSelector{MatchLabels: pl.ObjectMeta.Labels},
|
Selector: &metav1.LabelSelector{MatchLabels: pl.ObjectMeta.Labels},
|
||||||
Template: pl,
|
Template: pl,
|
||||||
|
Strategy: appsv1beta1.DeploymentStrategy{
|
||||||
|
Type: appsv1beta1.RecreateDeploymentStrategyType,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
addOwnerRefToObject(d.GetObjectMeta(), owner)
|
addOwnerRefToObject(d.GetObjectMeta(), owner)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче