Skip to content

Commit

Permalink
add real certificates to manager
Browse files Browse the repository at this point in the history
  • Loading branch information
camilamacedo86 committed Nov 19, 2024
1 parent a7ace73 commit 325c0ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ func main() {
// These configurations ensure that only authorized users and service accounts
// can access the metrics endpoint.
FilterProvider: filters.WithAuthenticationAndAuthorization,

// Ensure that metrics is protected with certs managed by cert-manager
CertDir: "/var/certs/",
CertName: "olm-ca.crt",
KeyName: "ca.crt",
}

mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
Expand Down

0 comments on commit 325c0ba

Please sign in to comment.