Merge pull request #32 from galal-hussein/fix_resversion

Add check to update dynamic listener cert in etcd only nodes
This commit is contained in:
Hussein Galal
2021-03-01 21:58:18 +02:00
committed by GitHub

View File

@@ -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