Skip to content

Commit

Permalink
Merge pull request #5532 from emissary-ingress/laustin/fix-apiext-nam…
Browse files Browse the repository at this point in the history
…espaces

apiext: pass configured ca namespace to cert manager
  • Loading branch information
Lance Austin authored Jan 26, 2024
2 parents f621c33 + 42eab8a commit 086914f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/apiext/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ func (s *WebhookServer) Run(ctx context.Context, scheme *runtime.Scheme) error {
}

if s.crdPatchMgmtEnabled {
caCertMgr := cacertrunnable.NewCACertManager(s.logger, mgr.GetClient())
caCertMgr := cacertrunnable.NewCACertManager(s.logger, mgr.GetClient(),
cacertrunnable.WithCASecretNamespace(s.caSecretSettings.Namespace),
cacertrunnable.WithCASecretName(s.caSecretSettings.Name),
)
if err := mgr.Add(caCertMgr); err != nil {
return err
}
Expand Down

0 comments on commit 086914f

Please sign in to comment.