Skip to content

Commit 325c0ba

Browse files
add real certificates to manager
1 parent a7ace73 commit 325c0ba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/manager/main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@ func main() {
186186
// These configurations ensure that only authorized users and service accounts
187187
// can access the metrics endpoint.
188188
FilterProvider: filters.WithAuthenticationAndAuthorization,
189+
190+
// Ensure that metrics is protected with certs managed by cert-manager
191+
CertDir: "/var/certs/",
192+
CertName: "olm-ca.crt",
193+
KeyName: "ca.crt",
189194
}
190195

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

0 commit comments

Comments
 (0)