Skip to content

Commit

Permalink
Simplify runtime condition
Browse files Browse the repository at this point in the history
Signed-off-by: pjuarezd <[email protected]>
  • Loading branch information
pjuarezd committed Aug 18, 2023
1 parent c8b267e commit 84e39ad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/controller/main-controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,7 @@ func (c *Controller) startSTSAPIServer(ctx context.Context, notificationChannel

publicCertPath := miniov2.GetPublicCertFilePath("sts")
privateKeyPath := miniov2.GetPrivateKeyFilePath("sts")
if utils.GetOperatorRuntime() == common.OperatorRuntimeOpenshift {
// nothing to do here, certificates should be already issued
} else {
if utils.GetOperatorRuntime() != common.OperatorRuntimeOpenshift {
c.waitSTSTLSCert()
}
certsManager, err := xcerts.NewManager(ctx, publicCertPath, privateKeyPath, LoadX509KeyPair)
Expand Down

0 comments on commit 84e39ad

Please sign in to comment.