Skip to content

Commit

Permalink
Fix: add a condition of manifestapplied for hosted addon. (#267)
Browse files Browse the repository at this point in the history
Signed-off-by: xuezhaojun <[email protected]>
  • Loading branch information
xuezhaojun authored May 16, 2024
1 parent e703fc5 commit 286f8d0
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 @@ -392,6 +392,12 @@ func (c *addonDeployController) buildDeployManifestWorksFunc(addonWorkBuilder *a
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 286f8d0

Please sign in to comment.