Skip to content

Commit 1ea89c4

Browse files
aniruddha2000janiskemper
authored andcommitted
Delete failed to evaluate CEL condition on success
Signed-off-by: Aniruddha Basak <[email protected]>
1 parent a508af5 commit 1ea89c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/controller/clusteraddon_controller.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,8 @@ check:
775775
}
776776
return false, fmt.Errorf("failed to get dynamic resource and evaluate cel expression for pre condition: %w", err)
777777
}
778+
779+
conditions.Delete(in.clusterAddon, csov1alpha1.EvaluatedCELCondition)
778780
logger.V(1).Info("finished evaluating pre condition", "clusterStack", in.clusterAddon.Spec.ClusterStack, "name", stage.Name, "hook", in.clusterAddon.Spec.Hook)
779781
}
780782

@@ -852,6 +854,8 @@ check:
852854
}
853855
return false, fmt.Errorf("failed to get dynamic resource and evaluate cel expression for post condition: %w", err)
854856
}
857+
858+
conditions.Delete(in.clusterAddon, csov1alpha1.EvaluatedCELCondition)
855859
logger.V(1).Info("finished evaluating post condition", "clusterStack", in.clusterAddon.Spec.ClusterStack, "name", stage.Name, "hook", in.clusterAddon.Spec.Hook)
856860
}
857861

0 commit comments

Comments
 (0)