Skip to content

Commit

Permalink
handle update of missing kinds
Browse files Browse the repository at this point in the history
Signed-off-by: Thibault Mange <[email protected]>
  • Loading branch information
thibaultmg committed May 14, 2024
1 parent 7c4a1f1 commit 98585dd
Show file tree
Hide file tree
Showing 4 changed files with 407 additions and 150 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func (r *ObservabilityAddonReconciler) Reconcile(ctx context.Context, req ctrl.R
}
}

if err := deployer.Deploy(res); err != nil {
if err := deployer.Deploy(ctx, res); err != nil {
return ctrl.Result{}, fmt.Errorf("failed to deploy %s %s/%s: %w", res.GetKind(), namespace, res.GetName(), err)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ func (r *MultiClusterObservabilityReconciler) Reconcile(ctx context.Context, req
return ctrl.Result{}, err
}
}
if err := deployer.Deploy(res); err != nil {
if err := deployer.Deploy(ctx, res); err != nil {
reqLogger.Error(err, fmt.Sprintf("Failed to deploy %s %s/%s",
res.GetKind(), resNS, res.GetName()))
return ctrl.Result{}, err
Expand Down
Loading

0 comments on commit 98585dd

Please sign in to comment.