k3s/pkg/controller
Kubernetes Submit Queue cfb4a5e95a
Merge pull request #67039 from mortent/AvoidDuplicateRevisionsForStatefulSet
Automatic merge from submit-queue (batch tested with PRs 67071, 66906, 66722, 67276, 67039). 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>.

Fix for duplicate revisions created by StatefulSet

**What this PR does / why we need it**: This PR replaces PR #65038 as a fix to issue #55159. The statefulset controller can in some situations create more controller revisions than necessary and this change makes sure the controller checks with the API server and only create new revision if the raw data is different.

**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 #55159

**Special notes for your reviewer**:

**Release note**:

```release-note
Avoid creating new controller revisions for statefulsets when cache is stale
```
2018-08-14 22:43:29 -07:00
..
bootstrap Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
certificates optimize certificate cleaner 2018-07-12 18:59:03 +08:00
cloud Merge pull request #65052 from dbdd4us/master 2018-07-11 22:25:03 -07:00
clusterroleaggregation Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
cronjob Typo Fix. 2018-06-29 11:04:10 +05:30
daemon Update workloads controller owner files 2018-08-14 14:20:34 -07:00
deployment Update workloads controller owner files 2018-08-14 14:20:34 -07:00
disruption Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
endpoint dup key func 2018-08-03 16:41:23 +08:00
garbagecollector dry-run: Update DynamicClient to pass Create/Update options 2018-08-02 10:38:31 -07:00
history Fix for duplicate revisions created by StatefulSet 2018-08-13 09:42:53 -07:00
job Removed unused functions. 2018-07-22 20:56:53 +08:00
namespace Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
nodeipam Update external k8s.io/metrics imports 2018-07-02 10:44:18 +02:00
nodelifecycle Fix out of bounds error on non-64-bit machines 2018-06-28 16:29:52 -04:00
podautoscaler make the log more readable 2018-08-07 10:00:31 +08:00
podgc add ns info for pod in log 2018-08-01 16:25:34 +08:00
replicaset Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
replication Make conversion function names match expected values 2018-07-17 23:02:16 -04:00
resourcequota Merge pull request #66351 from vikaschoudhary16/fix-scopeselector-exist-operator 2018-08-06 07:13:14 -07:00
route Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
service Implement GetLoadBalancerName per provider and add DefaultLoadBalancerName. 2018-08-04 00:36:48 -04:00
serviceaccount Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
statefulset fix typo: scale dowm-> scale down 2018-08-01 10:39:59 +08:00
testutil Merge pull request #65052 from dbdd4us/master 2018-07-11 22:25:03 -07:00
ttl Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
util/node Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
volume Merge pull request #66923 from jarrpa/pvc-protect-until-pod-delete 2018-08-14 17:55:17 -07:00
.import-restrictions
BUILD Safe encode template hash value to make it consistent with resource name 2018-07-13 09:52:26 -07:00
OWNERS
client_builder.go pkg/controller: remove old clientbuilder methods 2018-07-17 09:06:59 -07:00
controller_ref_manager.go Use apps/v1 in Deployment controller. 2018-05-22 13:42:10 -07:00
controller_ref_manager_test.go Use apps/v1 in Deployment controller. 2018-05-22 13:42:10 -07:00
controller_utils.go Safe encode template hash value to make it consistent with resource name 2018-07-13 09:52:26 -07:00
controller_utils_test.go Use apps/v1 in Deployment controller. 2018-05-22 13:42:10 -07:00
doc.go
lookup_cache.go