Skip to content

Commit

Permalink
fix copy pasta
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
  • Loading branch information
jakubdyszkiewicz committed Aug 19, 2021
1 parent edab538 commit c77d4fc
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/xds/server/callbacks/dataplane_status_sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,6 @@ func (s *dataplaneInsightStore) Upsert(dataplaneType core_model.ResourceType, da
if err := insight.Spec.UpdateSubscription(subscription); err != nil {
return err
}
if secretsInfo == nil { // it means mTLS was disabled, we need to clear stats
insight.Spec.MTLS = nil
} else if insight.Spec.MTLS == nil || insight.Spec.MTLS.CertificateExpirationTime.AsTime() != secretsInfo.Expiration {
if err := insight.Spec.UpdateCert(secretsInfo.Generation, secretsInfo.Expiration, secretsInfo.MTLS.EnabledBackend, nil); err != nil {
return err
}
}

if secretsInfo == nil { // it means mTLS was disabled, we need to clear stats
insight.Spec.MTLS = nil
Expand Down

0 comments on commit c77d4fc

Please sign in to comment.