Skip to content

Commit

Permalink
fix: reconcile problem after restore KamajiControlPlane from backup
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Kontyakov committed Feb 22, 2024
1 parent 346f3ca commit cfd54e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/kamajicontrolplane_controller_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (r *KamajiControlPlaneReconciler) createOrUpdateCertificateAuthority(ctx co
err := retry.RetryOnConflict(retry.DefaultRetry, func() error {
_, scopeErr := controllerutil.CreateOrUpdate(ctx, r.client, capiCA, func() error {
// Skipping the replication of the Certificate Authority if the Secret is managed by the Kamaji operator
if len(capiCA.GetOwnerReferences()) > 0 && capiCA.OwnerReferences[0].Kind == "TenantControlPlane" {
if capiCA.Name == kamajiCA.Name {
return nil
}

Expand Down

0 comments on commit cfd54e3

Please sign in to comment.