Skip to content
Discussion options

You must be logged in to vote

@fetidbell there's no built-in "skip invalid" option. the repo-server's manifest generation is fail-fast by design.

looking at the source, findManifests() calls getObjsFromYAMLOrJSON() for each file, and if any file contains apiVersion:, kind:, and metadata: but fails to parse, it returns a FailedPrecondition error immediately, aborting the entire directory source. there's no recovery path.

your best option: ApplicationSet with the git directories generator

this gives you per-tenant fault isolation because each directory becomes its own Application resource. if tenants/teamA/ has broken YAML, only tenant-teamA errors while everything else syncs fine:

apiVersion: argoproj.io/v1alpha1
kind: A…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fetidbell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants