diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-12-09 08:12:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-09 08:12:16 -0500 |
commit | 247260081a5cdc4065009bcd1080c987974327e5 (patch) | |
tree | 278f2fb67adb161afb39e3fcbc1105abfa532deb /vendor/k8s.io/apimachinery/pkg/labels/labels.go | |
parent | 3aad9024b6d59bb9f73e7da07c25ba3e1b52954a (diff) | |
parent | 37fbf28d74927b959b36ceade7fde3402ea08e05 (diff) | |
download | podman-247260081a5cdc4065009bcd1080c987974327e5.tar.gz podman-247260081a5cdc4065009bcd1080c987974327e5.tar.bz2 podman-247260081a5cdc4065009bcd1080c987974327e5.zip |
Merge pull request #8656 from containers/dependabot/go_modules/k8s.io/apimachinery-0.20.0
Bump k8s.io/apimachinery from 0.19.4 to 0.20.0
Diffstat (limited to 'vendor/k8s.io/apimachinery/pkg/labels/labels.go')
-rw-r--r-- | vendor/k8s.io/apimachinery/pkg/labels/labels.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/vendor/k8s.io/apimachinery/pkg/labels/labels.go b/vendor/k8s.io/apimachinery/pkg/labels/labels.go index d9eeb4f91..d6bbeeaca 100644 --- a/vendor/k8s.io/apimachinery/pkg/labels/labels.go +++ b/vendor/k8s.io/apimachinery/pkg/labels/labels.go @@ -141,25 +141,6 @@ func Equals(labels1, labels2 Set) bool { return true } -// AreLabelsInWhiteList verifies if the provided label list -// is in the provided whitelist and returns true, otherwise false. -func AreLabelsInWhiteList(labels, whitelist Set) bool { - if len(whitelist) == 0 { - return true - } - - for k, v := range labels { - value, ok := whitelist[k] - if !ok { - return false - } - if value != v { - return false - } - } - return true -} - // ConvertSelectorToLabelsMap converts selector string to labels map // and validates keys and values func ConvertSelectorToLabelsMap(selector string) (Set, error) { |