Skip to content

Commit fe31ff9

Browse files
authored
Merge pull request #748 from fluxcd/oci-helmrepo-refactor
OCI HelmRepo: handle status conditions in-line
2 parents 9d6eada + 9fe287d commit fe31ff9

File tree

3 files changed

+164
-171
lines changed

3 files changed

+164
-171
lines changed

controllers/helmrepository_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,8 +577,8 @@ func (r *HelmRepositoryReconciler) garbageCollect(ctx context.Context, obj *sour
577577
// Clean status sub-resource
578578
obj.Status.Artifact = nil
579579
obj.Status.URL = ""
580-
// Remove the condition as the artifact doesn't exist.
581-
conditions.Delete(obj, sourcev1.ArtifactInStorageCondition)
580+
// Remove any stale conditions.
581+
obj.Status.Conditions = nil
582582
return nil
583583
}
584584
if obj.GetArtifact() != nil {

0 commit comments

Comments
 (0)