Skip to content

Commit

Permalink
AV-217295 : Delete the sslkeycert for router-default-cert secret on r…
Browse files Browse the repository at this point in the history
…eboot if it has no reference (#1542)

Local UT passed
  • Loading branch information
DixitAakash authored Sep 30, 2024
1 parent 95a61bd commit 22aaa70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/rest/dequeue_nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -1805,7 +1805,9 @@ func (rest *RestOperations) SSLKeyCertDelete(ssl_to_delete []avicache.NamespaceN
for _, del_ssl := range ssl_to_delete {
// Skip SSL cert deletion if it maps to the Default Router Cert
if del_ssl.Name == defaultRouteCertName || del_ssl.Name == defaultRouteAltCertName {
continue
if !strings.HasSuffix(key, lib.DummyVSForStaleData) {
continue
}
}
ssl_key := avicache.NamespaceName{Namespace: namespace, Name: del_ssl.Name}
ssl_cache, ok := rest.cache.SSLKeyCache.AviCacheGet(ssl_key)
Expand Down

0 comments on commit 22aaa70

Please sign in to comment.