Do not update memory storage with a nil secret (#205)

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
Brad Davidson
2025-09-15 11:19:38 -07:00
committed by GitHub
parent d9174a1f59
commit 7ad41853e0

View File

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