Skip to content

Commit

Permalink
Fix: add a condition of manifestapplied for hosted addon.
Browse files Browse the repository at this point in the history
Signed-off-by: xuezhaojun <[email protected]>
  • Loading branch information
xuezhaojun committed May 14, 2024
1 parent e703fc5 commit 8c2c38d
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 8c2c38d

Please sign in to comment.