-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description
Currently, getArgoApplicationSetCommand logs errors from getApplicationSetSourceNamespaces but continues execution, potentially creating a deployment without the --applicationset-namespaces flag. This can silently disable the ApplicationSet feature when namespace retrieval fails.
Proposed Solution
Update getArgoApplicationSetCommand to return ([]string, error) and propagate errors up to the reconciler instead of swallowing them. This will allow:
- Early return when
getApplicationSetSourceNamespacesfails - Proper error handling for
getSourceNamespacesfailures - Reconciliation retry on transient errors
- Surfacing issues instead of hiding them
Scope
This change will require updates to:
getArgoApplicationSetCommandfunction signature- All callers of
getArgoApplicationSetCommandto handle errors - Related error handling logic in the reconciliation flow
Context
This improvement was identified during PR #1988 (wildcard support for ApplicationSet source namespaces) but deferred to keep that PR focused on pattern matching functionality.
References
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request