Skip to content

Commit

Permalink
fix kuadrant CR finalizer
Browse files Browse the repository at this point in the history
  • Loading branch information
eguzki committed Apr 11, 2024
1 parent 6eebab6 commit e3415e1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions controllers/kuadrant_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,13 @@ func (r *KuadrantReconciler) getIstioConfigObjects(ctx context.Context, logger l

istioConfigMap := &corev1.ConfigMap{}
if err := r.GetResource(ctx, client.ObjectKey{Name: controlPlaneConfigMapName(), Namespace: controlPlaneProviderNamespace()}, istioConfigMap); err != nil {
logger.V(1).Info("failed to get istio configMap", "key", istKey, "err", err)
return configsToUpdate, err
if !apierrors.IsNotFound(err) {
logger.V(1).Info("failed to get istio configMap", "key", istKey, "err", err)
return configsToUpdate, err
}
} else {
configsToUpdate = append(configsToUpdate, istio.NewConfigMapWrapper(istioConfigMap))
}
configsToUpdate = append(configsToUpdate, istio.NewConfigMapWrapper(istioConfigMap))
return configsToUpdate, nil
}

Expand Down

0 comments on commit e3415e1

Please sign in to comment.