Skip to content

Commit

Permalink
Fix: add a condition of manifestapplied for hosted addon. (open-clust…
Browse files Browse the repository at this point in the history
…er-management-io#267)

Signed-off-by: xuezhaojun <zxue@redhat.com>
  • Loading branch information
xuezhaojun committed May 16, 2024
1 parent 053ab6b commit 359d609
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/addonmanager/controllers/agentdeploy/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,12 @@ func (c *addonDeployController) buildDeployManifestWorks(installMode, workNamesp
return nil, nil, err
}
if len(objects) == 0 {
meta.SetStatusCondition(&addon.Status.Conditions, metav1.Condition{
Type: appliedType,
Status: metav1.ConditionTrue,
Reason: addonapiv1alpha1.AddonManifestAppliedReasonManifestsApplied,
Message: "no manifest need to apply",
})
return nil, nil, nil
}

Expand Down

0 comments on commit 359d609

Please sign in to comment.