diff --git a/controllers/csm_controller.go b/controllers/csm_controller.go index fdb29b90e..dc90d58ef 100644 --- a/controllers/csm_controller.go +++ b/controllers/csm_controller.go @@ -941,6 +941,14 @@ func (r *ContainerStorageModuleReconciler) reconcileObservability(ctx context.Co // reconcileAuthorization - deploy authorization proxy server func (r *ContainerStorageModuleReconciler) reconcileAuthorization(ctx context.Context, isDeleting bool, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, ctrlClient client.Client) error { log := logger.GetLogger(ctx) + + if utils.IsModuleComponentEnabled(ctx, cr, csmv1.AuthorizationServer, modules.AuthCertManagerComponent) { + log.Infow("Reconcile authorization cert-manager") + if err := modules.CommonCertManager(ctx, isDeleting, op, cr, ctrlClient); err != nil { + return fmt.Errorf("unable to reconcile cert-manager for authorization: %v", err) + } + } + if utils.IsModuleComponentEnabled(ctx, cr, csmv1.AuthorizationServer, modules.AuthProxyServerComponent) { log.Infow("Reconcile authorization proxy-server") if err := modules.AuthorizationServerDeployment(ctx, isDeleting, op, cr, ctrlClient); err != nil { @@ -952,13 +960,6 @@ func (r *ContainerStorageModuleReconciler) reconcileAuthorization(ctx context.Co } } - if utils.IsModuleComponentEnabled(ctx, cr, csmv1.AuthorizationServer, modules.AuthCertManagerComponent) { - log.Infow("Reconcile authorization cert-manager") - if err := modules.CommonCertManager(ctx, isDeleting, op, cr, ctrlClient); err != nil { - return fmt.Errorf("unable to reconcile cert-manager for authorization: %v", err) - } - } - for _, m := range cr.Spec.Modules { if m.OpenShift { log.Infow("Using OpenShift default ingress controller") diff --git a/tests/e2e/go.mod b/tests/e2e/go.mod index 6bdcab10c..835ea92ae 100644 --- a/tests/e2e/go.mod +++ b/tests/e2e/go.mod @@ -87,6 +87,7 @@ require ( go.uber.org/zap v1.24.0 // indirect golang.org/x/crypto v0.21.0 // indirect golang.org/x/exp v0.0.0-20221028150844-83b7d23a625f // indirect + golang.org/x/mod v0.13.0 // indirect golang.org/x/net v0.23.0 // indirect golang.org/x/oauth2 v0.11.0 // indirect golang.org/x/sync v0.4.0 // indirect