Skip to content

Commit

Permalink
hostedcontrolplane: don't start pki operator when disabled
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
  • Loading branch information
stevekuznetsov committed Jan 4, 2024
1 parent 91d567f commit 809f46f
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1127,9 +1127,11 @@ func (r *HostedControlPlaneReconciler) reconcile(ctx context.Context, hostedCont
}

// Reconcile control plane pki operator
r.Log.Info("Reconciling Control Plane PKI Operator")
if err := r.reconcileControlPlanePKIOperator(ctx, hostedControlPlane, releaseImageProvider, createOrUpdate, openShiftTrustedCABundleConfigMapForCPOExists, r.CertRotationScale); err != nil {
return fmt.Errorf("failed to reconcile control plane pki operator: %w", err)
if _, exists := hostedControlPlane.Annotations[hyperv1.DisablePKIReconciliationAnnotation]; !exists {
r.Log.Info("Reconciling Control Plane PKI Operator")
if err := r.reconcileControlPlanePKIOperator(ctx, hostedControlPlane, releaseImageProvider, createOrUpdate, openShiftTrustedCABundleConfigMapForCPOExists, r.CertRotationScale); err != nil {
return fmt.Errorf("failed to reconcile control plane pki operator: %w", err)
}
}

// Reconcile cloud controller manager
Expand Down

0 comments on commit 809f46f

Please sign in to comment.