GitOps Sync step should fail if Application Regex did not find any matching applications
long-term
A
Absinthe green Opossum
We are also affected by this issue and would strongly support prioritizing this enhancement.
When a GitOpsSync selector, whether applicationRegex, applicationsList, or applicationLabels, matches zero applications, the step reports Success even though no application was refreshed or synced. This creates a silent deployment failure: a typo, stale service/environment name, incorrect label, or outdated selector can result in a pipeline appearing successful while deploying nothing.
As a workaround, we currently need an additional ShellScript step to inspect <+stepGroup.steps.<step>.gitops.applications> and fail the pipeline when the list is empty.
Sudarshan Purohit
updated the status to
long-term
Shylaja Sundararajan
updated the status to
under review