mirror of
https://github.com/rancher/dynamiclistener.git
synced 2025-12-10 07:26:22 +00:00
Compare commits
2 Commits
v0.7.1-rc1
...
v0.7.2-rc1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7ad41853e0 | ||
|
|
d9174a1f59 |
@@ -212,7 +212,7 @@ func (s *storage) saveInK8s(secret *v1.Secret) (*v1.Secret, error) {
|
||||
|
||||
// ensure that the merged secret actually contains data before overwriting the existing fields
|
||||
if !cert.IsValidTLSSecret(secret) {
|
||||
logrus.Warnf("Skipping save of TLS secret for %s/%s due to missing certificate data", secret.Namespace, secret.Name)
|
||||
logrus.Warnf("Skipping save of TLS secret for %s/%s due to missing certificate data", s.namespace, s.name)
|
||||
return targetSecret, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -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