Skip to content

Commit

Permalink
fix(manager/argocd): ignore not properly formated sources (#27623)
Browse files Browse the repository at this point in the history
  • Loading branch information
secustor committed Feb 29, 2024
1 parent 5c38694 commit fa60a50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/modules/manager/argocd/__fixtures__/validApplication.yml
Expand Up @@ -83,6 +83,8 @@ spec:
- chart: some/image3
repoURL: somecontainer.registry.io:443/
targetRevision: 1.0.0
- ref: root
repoURL: git@github.com:<redacted>
---
apiVersion: argoproj.io/v1alpha1
kind: Application
Expand Down
3 changes: 2 additions & 1 deletion lib/modules/manager/argocd/schema.ts
@@ -1,4 +1,5 @@
import { z } from 'zod';
import { LooseArray } from '../../../util/schema-utils';

export const KubernetesResource = z.object({
apiVersion: z.string(),
Expand All @@ -13,7 +14,7 @@ export type ApplicationSource = z.infer<typeof ApplicationSource>;

export const ApplicationSpec = z.object({
source: ApplicationSource.optional(),
sources: z.array(ApplicationSource).optional(),
sources: LooseArray(ApplicationSource).optional(),
});
export type ApplicationSpec = z.infer<typeof ApplicationSpec>;

Expand Down

0 comments on commit fa60a50

Please sign in to comment.