Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(manager/argocd): added support for argocd multisource #20648

Merged
merged 18 commits into from
Mar 19, 2023
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions lib/modules/manager/argocd/__fixtures__/malformedApplications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,15 @@ spec:
# malformed application as the source section is missing
apiVersion: argoproj.io/v1alpha1
kind: Application
---
# malformed application as the sources array is empty
apiVersion: argoproj.io/v1alpha1
kind: Application
spec:
sources: []
---
# malformed application as the source is null
apiVersion: argoproj.io/v1alpha1
kind: Application
spec:
source: null
36 changes: 36 additions & 0 deletions lib/modules/manager/argocd/__fixtures__/validApplication.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,39 @@ spec:
chart: some/image3
repoURL: somecontainer.registry.io:443/
targetRevision: 1.0.0
---
apiVersion: argoproj.io/v1alpha1
kind: Application
spec:
sources:
- chart: some/image3
repoURL: somecontainer.registry.io:443/
targetRevision: 1.0.0
---
apiVersion: argoproj.io/v1alpha1
kind: Application
spec:
sources:
- ref: foo
repoURL: https://git.example.com/foo/bar.git
targetRevision: v1.2.0
- chart: some/image3
repoURL: somecontainer.registry.io:443/
targetRevision: 1.0.0

---
apiVersion: argoproj.io/v1alpha1
kind: Application
spec:
sources:
- ref: foo
repoURL: https://git.example.com/foo/bar.git
targetRevision: v1.2.0
path: bar
- chart: traefik
repoURL: gs://helm-charts-internal
targetRevision: 0.0.2
helm:
valueFiles:
- $foo/values.yaml

43 changes: 43 additions & 0 deletions lib/modules/manager/argocd/__fixtures__/validApplicationSet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,46 @@ spec:
destination:
name: '{{server}}'
namespace: podinfo
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: podinfo
spec:
generators:
- clusters: {}
template:
metadata:
name: '{{name}}-podinfo'
spec:
project: default
sources:
- chart: some/image3
repoURL: somecontainer.registry.io:443/
targetRevision: 1.0.0
destination:
name: '{{server}}'
namespace: podinfo
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: podinfo
spec:
generators:
- clusters: {}
template:
metadata:
name: '{{name}}-podinfo'
spec:
project: default
sources:
- ref: foo
repoURL: https://git.example.com/foo/bar.git
targetRevision: v1.2.0
- chart: some/image3
repoURL: somecontainer.registry.io:443/
targetRevision: 1.0.0
destination:
name: '{{server}}'
namespace: podinfo
Loading