Skip to content

Commit 7ad4185

Browse files
authored
Do not update memory storage with a nil secret (#205)
Signed-off-by: Brad Davidson <[email protected]>
1 parent d9174a1 commit 7ad4185

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

storage/memory/memory.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ func (m *memory) Update(secret *v1.Secret) error {
4747
}
4848

4949
func isChanged(old, new *v1.Secret) bool {
50+
if new == nil {
51+
return false
52+
}
5053
if old == nil {
5154
return true
5255
}

0 commit comments

Comments
 (0)