Skip to content

Commit

Permalink
Merge pull request #3368 from stevekuznetsov/skuznets/no-pki-when-req…
Browse files Browse the repository at this point in the history
…uested

OCPBUGS-26197: hostedcontrolplane: don't start pki operator when disabled
  • Loading branch information
openshift-merge-bot[bot] committed Jan 5, 2024
2 parents 42013f9 + 809f46f commit 34e73a2
Showing 1 changed file with 5 additions and 3 deletions.
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 34e73a2

Please sign in to comment.