-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
new multi-source app diff cli feature: no diff when it should #18013
Comments
I reproduce the issue with the new rc3:
|
@thomas-riccardi , I am curious to see the app spec you are creating. Based on the step mentioned in setup, the command I also just tried the command on
Can you share an example of the application that I could use to see the issue? |
Indeed my reproduction here came after my initial issue with private app. My hope is that fixing the issue with mono-source apps would also fix my issue with multi-source app. Here is an anonymized version of my private multi-source app: apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: foo
namespace: argocd
ownerReferences:
- apiVersion: argoproj.io/v1alpha1
blockOwnerDeletion: true
controller: true
kind: ApplicationSet
name: foo-appset
spec:
destination:
namespace: foo
server: https://kubernetes.default.svc
project: myproject
sources:
- helm:
releaseName: my-helm-release
valueFiles:
- $values/some/path/to/value.yaml
values: |
more: values
path: charts/some-chart/
repoURL: https://github.com/bar/foo-helm-charts
targetRevision: main
- path: /baz
repoURL: https://github.com/bar/other-resources-to-load
targetRevision: main
- ref: values
repoURL: https://github.com/bar/foo-values
targetRevision: main
syncPolicy:
syncOptions:
- CreateNamespace=true
Maybe it's related to the way we deploy our argocd? (with the helm chart); so I tried with kind locally:
=> Then I reproduce as in my initial comment: result: I still get the bug: no diff with the new options. |
I just upgraded to ArgoCD v2.11 and wanted to try out this new feature and I'm facing the same problem. In ArgoCD I have several apps with two sources, one a helm chart and the other values in a git repository. When I run My application spec is basically looking the same as the one posted by @thomas-riccardi, except I only use one additional repoURL source. |
Unfortunately, the problem still exists with the latest ArgoCD v2.11.1. I also tested it with the guestbook single source application above and found the following: It seems that the What I did:
In this example, you can see that the new diff feature does not use the different commit SHA. @ishitasequeira, in your example above, did you also run the diff command with a different commit SHA than the one from HEAD? Also, can you take a look at this issue |
Hi there, This has consequences on the |
I just updated to the newest version which was released today |
It seems to work now with v2.11.3, thanks |
Checklist:
argocd version
.Describe the bug
I tried the new multi-source app diff feature from #17650, and the diff is unexpectedly empty with
--revisions
and--source-positions
, whereas we do have the correct diff with--revision
.On a private App with 3 sources, the diff is even stranger: as if it completely removed the resources for the first source (it's a helm release with value.yaml file from the 3rd source, using
ref
).To Reproduce
setup:
argocd app create guestbook --repo https://github.com/argoproj/argocd-example-apps.git --path guestbook --dest-server https://kubernetes.default.svc --dest-namespace default
argocd app diff guestbook
shows the full manifest to add, because not yet sync: OK)argocd app sync guestbook
argocd app diff guestbook
shows empty diff: OK)tests: with an older revision:
=> expected
=> empty diff
Expected behavior
--revision xxx
vs--revisions xxx --source-positions 1
for mono-source app.side note:
--revisions xxx --source-positions 2
to raise an error when there is only one sourceargocd app manifests guestbook --revisions fd70f16a43d8f14626329a4f687bc8f8f689e9f6 --source-positions 1
returns the wrong manifest: same as live/HEADVersion
The text was updated successfully, but these errors were encountered: