k3s/pkg/controller/deployment
Kubernetes Submit Queue 1102fd0dcb
Merge pull request #61981 from hanxiaoshuai/fixtodo0331
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

fixtodo:rsDeepCopy only when sizeNeedsUpdate or annotationsNeedUpdate

**What this PR does / why we need it**:
```
// TODO: Do not mutate the replica set here, instead simply compare the annotation and if they mismatch
// call SetReplicasAnnotations inside the following if clause. Then we can also move the deep-copy from
// above inside the if too.
```
fixtodo:rsDeepCopy only when sizeNeedsUpdate or annotationsNeedUpdate
**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2018-04-02 08:02:40 -07:00
..
util add unit test for new function AnnotationsNeedUpdate 2018-04-02 09:27:43 +08:00
BUILD Deployment to stop adding pod-template-hash labels/selector on adoption 2018-03-26 15:52:42 -07:00
OWNERS Remove kargakis from OWNERS, add tnozicka 2017-09-19 11:05:23 +02:00
deployment_controller.go Use typed events client directly 2018-04-01 18:57:29 +10:00
deployment_controller_test.go pkg/apis/core: mechanical import fixes in dependencies 2017-11-09 12:14:08 +01:00
progress.go use versiond group clients from client-go 2017-11-07 14:47:22 +08:00
progress_test.go Move some tests to use go sub-test 2017-12-02 13:50:35 +05:30
recreate.go Fix Deployment with Recreate strategy not to wait on Pods in terminal phase 2018-02-24 14:29:53 +01:00
recreate_test.go Add tests for Deployments Recreate strategy when there are pods in terminal state present 2018-02-24 14:29:56 +01:00
rollback.go use versiond group clients from client-go 2017-11-07 14:47:22 +08:00
rolling.go controller: cleanup complete deployments only 2017-07-11 19:20:14 +02:00
rolling_test.go Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
sync.go fixtodo:rsDeepCopy only when sizeNeedsUpdate or annotationsNeedUpdate 2018-04-02 09:27:11 +08:00
sync_test.go Move some tests to use go sub-test 2017-12-02 13:50:35 +05:30