Skip to content

Commit

Permalink
add upstream tls validation to clusterparameters validation
Browse files Browse the repository at this point in the history
  • Loading branch information
KauzClay committed Oct 11, 2023
1 parent 1b9b7b5 commit 9045e2c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/config/parameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,11 @@ func (p *ClusterParameters) Validate() error {
if p.PerConnectionBufferLimitBytes != nil && *p.PerConnectionBufferLimitBytes < 1 {
return fmt.Errorf("invalid per connections buffer limit bytes value %q set on cluster, minimum value is 1", *p.PerConnectionBufferLimitBytes)
}

if err := p.UpstreamTLS.Validate(); err != nil {
return err
}

return nil
}

Expand Down

0 comments on commit 9045e2c

Please sign in to comment.