Skip to content

Commit

Permalink
nil check done
Browse files Browse the repository at this point in the history
Signed-off-by: Hiranmoy Das Chowdhury <[email protected]>
  • Loading branch information
HiranmoyChowdhury committed Jun 14, 2024
1 parent fbe1cad commit c526363
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pgbouncer/kubedb_client_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ func (o *KubeDBClientBuilder) getTLSConfig() (*certholder.Paths, error) {
return nil, err
}
err = o.setCACert(certSecret)
if err != nil {
return nil, err
}

certs, _ := certholder.DefaultHolder.ForResource(api.SchemeGroupVersion.WithResource(api.ResourcePluralPgBouncer), o.pgbouncer.ObjectMeta)
paths, err := certs.Save(certSecret)
Expand Down

0 comments on commit c526363

Please sign in to comment.