Skip to content

Commit

Permalink
cert-manager: Cache only kubemacpool secrets (#426)
Browse files Browse the repository at this point in the history
The webhook secrets and services at kubemacpool are living under
kubemacpool namespace, this change limit cert-manager reconciler to that
so it will not cache secrets at all namespaces.

Signed-off-by: Enrique Llorente <ellorent@redhat.com>
  • Loading branch information
qinqon committed Apr 15, 2024
1 parent 7750f52 commit 0d3b36c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ func runCertManager() {
}

mgrOptions := ctrlmanager.Options{
MetricsBindAddress: "0", // disable metrics
MetricsBindAddress: "0", // disable metrics
Namespace: podNamespace, // cache only the secrets from kubemacpool namespace
}

mgr, err := ctrlmanager.New(config.GetConfigOrDie(), mgrOptions)
Expand Down

0 comments on commit 0d3b36c

Please sign in to comment.