k3s/pkg/controller
Kubernetes Submit Queue cdfbb01db6
Merge pull request #68151 from ddebroy/ddebroy-fix67852
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.

Implement semantic comparison of VolumeNodeAffinity for unit tests

**What this PR does / why we need it**:
Implements a semantic comparison function for VolumeNodeAffinity that is not sensitive to ordering of various members. Previous reflect.DeepEqual was sensitive to ordering causing it to be flaky.

**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 # https://github.com/kubernetes/kubernetes/issues/67852

**Special notes for your reviewer**:
We want to able to successfully match `VolumeNodeAffinity{Required:&NodeSelector{NodeSelectorTerms:[{[{a In [1]} {b In [2 3]}] []}],},}` and `VolumeNodeAffinity{Required:&NodeSelector{NodeSelectorTerms:[{[{b In [3 2]} {a In [1]}] []}],},}` without being sensitive to the ordering of requirements with key `a` and `b` or the order of values with key `b`. This fix enables such semantic comparison of VolumeNodeAffinity

We can move `volumeNodeAffinitiesEqual` to volume/utils post code freeze

**Release note**:

```release-note
NONE
```

/sig storage
cc @msau42
2018-09-05 12:09:53 -07:00
..
apis/config Autogen 2018-09-04 14:21:14 -07:00
bootstrap
certificates UT case of certificate_controller 2018-07-14 16:40:08 +08:00
cloud Implement semantic comparison of VolumeNodeAffinity for unit tests 2018-08-31 19:05:05 -07:00
clusterroleaggregation
cronjob Add Labels to various OWNERS files 2018-08-21 13:59:08 -04:00
daemon Add Labels to various OWNERS files 2018-08-21 13:59:08 -04:00
deployment Add Labels to various OWNERS files 2018-08-21 13:59:08 -04:00
disruption Add Labels to various OWNERS files 2018-08-21 13:59:08 -04:00
endpoint K8s SCTP support implementation for the first pull request 2018-08-27 05:56:27 +00:00
garbagecollector Add sig/api-machinery label to apimachinery OWNERS files 2018-08-20 18:46:47 +05:30
history Merge pull request #67485 from linyouchong/pr-0816 2018-08-21 21:10:05 -07:00
job Merge pull request #66085 from liggitt/updatejob 2018-08-27 17:40:54 -07:00
namespace Add sig/api-machinery label to apimachinery OWNERS files 2018-08-20 18:46:47 +05:30
nodeipam Merge pull request #68135 from shyamjvs/add-random-backoff-to-cidr-allocator 2018-09-03 18:41:40 -07:00
nodelifecycle Taint node in paralle. 2018-09-01 09:57:02 +08:00
podautoscaler Replace scale down forbidden window 2018-08-31 20:24:38 +02:00
podgc add ns info for pod in log 2018-08-01 16:25:34 +08:00
replicaset Add Labels to various OWNERS files 2018-08-21 13:59:08 -04:00
replication Add Labels to various OWNERS files 2018-08-21 13:59:08 -04:00
resourcequota allow failed discovery on initial quota controller start 2018-08-17 11:42:54 -04:00
route
service K8s SCTP support implementation for the first pull request 2018-08-27 05:56:27 +00:00
serviceaccount
statefulset Add Labels to various OWNERS files 2018-08-21 13:59:08 -04:00
testutil Merge pull request #65052 from dbdd4us/master 2018-07-11 22:25:03 -07:00
ttl
ttlafterfinished Add TTL GC controller 2018-09-04 13:11:18 -07:00
util/node
volume Merge pull request #67556 from msau42/fix-assume 2018-09-04 23:19:37 -07:00
.import-restrictions
BUILD Add TTL GC controller 2018-09-04 13:11:18 -07:00
OWNERS
client_builder.go Deprecate ListWatchUntil, fix it and call places 2018-08-15 13:34:31 +02:00
controller_ref_manager.go
controller_ref_manager_test.go
controller_utils.go controller expectations for deletion can be met by 404 2018-08-24 09:03:51 -04:00
controller_utils_test.go controller expectations for deletion can be met by 404 2018-08-24 09:03:51 -04:00
doc.go
lookup_cache.go