mirror of
https://github.com/rancher/dynamiclistener.git
synced 2025-12-07 21:25:30 +00:00
Do not update memory storage with a nil secret (#205)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
@@ -47,6 +47,9 @@ func (m *memory) Update(secret *v1.Secret) error {
|
||||
}
|
||||
|
||||
func isChanged(old, new *v1.Secret) bool {
|
||||
if new == nil {
|
||||
return false
|
||||
}
|
||||
if old == nil {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user