Skip to content

Commit

Permalink
util: Initialize CA store
Browse files Browse the repository at this point in the history
  • Loading branch information
johanstokking committed Jun 20, 2024
1 parent 952f5d5 commit 994003a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/component/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,15 @@ func New(logger log.Stack, config *Config, opts ...Option) (c *Component, err er
}
c.frequencyPlans = frequencyplans.NewStore(fpsFetcher)

caStoreFetcher, err := config.MTLSAuthCAStoreFetcher(ctx, c)
if err != nil {
return nil, err
}
c.caStore, err = mtlsauth.NewCAStore(ctx, caStoreFetcher)
if err != nil {
return nil, err
}

if c.clusterNew == nil {
c.clusterNew = cluster.New
}
Expand Down

0 comments on commit 994003a

Please sign in to comment.