From 885b7391a290ddf054a1ce5cb0219b61b2c1213e Mon Sep 17 00:00:00 2001 From: galal-hussein Date: Mon, 1 Mar 2021 23:51:07 +0200 Subject: [PATCH] update dynamiclistener Signed-off-by: galal-hussein --- go.mod | 2 +- go.sum | 4 ++-- .../rancher/dynamiclistener/storage/memory/memory.go | 2 +- vendor/modules.txt | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index 3d7bbf44ac..4391ed1c5b 100644 --- a/go.mod +++ b/go.mod @@ -93,7 +93,7 @@ require ( github.com/opencontainers/selinux v1.6.0 github.com/pierrec/lz4 v2.5.2+incompatible github.com/pkg/errors v0.9.1 - github.com/rancher/dynamiclistener v0.2.1 + github.com/rancher/dynamiclistener v0.2.2 github.com/rancher/remotedialer v0.2.0 github.com/rancher/wrangler v0.6.1 github.com/rancher/wrangler-api v0.6.0 diff --git a/go.sum b/go.sum index 9036ab56d3..aafaf742c6 100644 --- a/go.sum +++ b/go.sum @@ -768,8 +768,8 @@ github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40T github.com/quobyte/api v0.1.8/go.mod h1:jL7lIHrmqQ7yh05OJ+eEEdHr0u/kmT1Ff9iHd+4H6VI= github.com/rakelkar/gonetsh v0.0.0-20190930180311-e5c5ffe4bdf0 h1:iXE9kmlAqhusXxzkXictdNgWS7p4ZBnmv9SdyMgTf6E= github.com/rakelkar/gonetsh v0.0.0-20190930180311-e5c5ffe4bdf0/go.mod h1:4XHkfaUj+URzGO9sohoAgt2V9Y8nIW7fugpu0E6gShk= -github.com/rancher/dynamiclistener v0.2.1 h1:QiY1jxs2TOLrKB04G36vE2ehEvPMPGiWp8zEHLKB1nE= -github.com/rancher/dynamiclistener v0.2.1/go.mod h1:9WusTANoiRr8cDWCTtf5txieulezHbpv4vhLADPp0zU= +github.com/rancher/dynamiclistener v0.2.2 h1:70dMwOr1sqb6mQqfU2nDb/fr5cv7HJjH+kFYzoxb8KU= +github.com/rancher/dynamiclistener v0.2.2/go.mod h1:9WusTANoiRr8cDWCTtf5txieulezHbpv4vhLADPp0zU= github.com/rancher/moq v0.0.0-20190404221404-ee5226d43009/go.mod h1:wpITyDPTi/Na5h73XkbuEf2AP9fbgrIGqqxVzFhYD6U= github.com/rancher/remotedialer v0.2.0 h1:xD7t3K6JYwTdAsxmGtTHQMkEkFgKouQ1foLxVW424Dc= github.com/rancher/remotedialer v0.2.0/go.mod h1:tkU8ZvrR5lRgaKWaX71nAy6daeqvPFx/lJEnbW7tXSI= diff --git a/vendor/github.com/rancher/dynamiclistener/storage/memory/memory.go b/vendor/github.com/rancher/dynamiclistener/storage/memory/memory.go index 54f6251780..0edfd1bda3 100644 --- a/vendor/github.com/rancher/dynamiclistener/storage/memory/memory.go +++ b/vendor/github.com/rancher/dynamiclistener/storage/memory/memory.go @@ -32,7 +32,7 @@ func (m *memory) Get() (*v1.Secret, error) { } func (m *memory) Update(secret *v1.Secret) error { - if m.secret == nil || m.secret.ResourceVersion != secret.ResourceVersion { + if m.secret == nil || m.secret.ResourceVersion == "" || m.secret.ResourceVersion != secret.ResourceVersion { if m.storage != nil { if err := m.storage.Update(secret); err != nil { return err diff --git a/vendor/modules.txt b/vendor/modules.txt index b94177b45d..a195a0543a 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -842,7 +842,7 @@ github.com/prometheus/procfs/internal/util # github.com/rakelkar/gonetsh v0.0.0-20190930180311-e5c5ffe4bdf0 github.com/rakelkar/gonetsh/netroute github.com/rakelkar/gonetsh/netsh -# github.com/rancher/dynamiclistener v0.2.1 +# github.com/rancher/dynamiclistener v0.2.2 ## explicit github.com/rancher/dynamiclistener github.com/rancher/dynamiclistener/cert