Open igaskin opened 4 years ago
should be closed by https://github.com/argoproj/argo-cd/pull/3891
Hi. The issue still persists for me.
I have the following setup
argocd: v1.7.0+3d4d64e BuildDate: 2020-08-12T13:45:32Z GitCommit: 3d4d64e1b7ec1f7d1fa59d02d82960512dead84c GitTreeState: clean GoVersion: go1.14.1 Compiler: gc Platform: linux/amd64 argocd-server: v1.7.0+3d4d64e BuildDate: 2020-08-12T13:47:37Z GitCommit: 3d4d64e1b7ec1f7d1fa59d02d82960512dead84c GitTreeState: clean GoVersion: go1.14.1 Compiler: gc Platform: linux/amd64 Ksonnet Version: v0.13.1 Kustomize Version: {Version:kustomize/v3.6.1 GitCommit:c97fa946d576eb6ed559f17f2ac43b3b5a8d5dbd BuildDate:2020-05-27T20:47:35Z GoOs:linux GoArch:amd64} Helm Version: version.BuildInfo{Version:"v3.2.0", GitCommit:"e11b7ce3b12db2941e90399e874513fbd24bcb71", GitTreeState:"clean", GoVersion:"go1.13.10"} Kubectl Version: v1.17.8
project: prod-config-mgmt
source:
repoURL: 'ssh://git@host:7999/dop/kubernetes-prod-config.git'
path: clusters/prod-zone01/
targetRevision: master
destination:
server: 'https://<ip>:6443'
namespace: default
syncPolicy:
automated:
selfHeal: true
Steps to reproduce:
argocd app sync prod-config-mgmt --dry-run --local clusters/prod-zone01 > output.yaml
(Note that this command exists with an warning for me: WARN[0004] failed to close &{0x18a5160}: rpc error: code = Canceled desc = grpc: the client connection is closing
Expected:
The dry-run should not affect the application state at all.
Hello, the same issue exist on version v1.7.6+b04c25e
.
Looks like this is still an issue in version v2.1.4+d5c6608
When using both --local
and --dry-run
together and when only running with --dry-run
. Which makes me think --dry-run doesn't actually work at all?
Still have this issue with 2.2.5
.
Still have this issue with 2.3.4
Describe the bug
the
--dry-run
flag actual modifies the desired state of resources in an applicationTo Reproduce
cd
to the repository that is used by an applicationargocd app sync --dry-run --local .
Expected behavior
When running
sync
with--dry-run
it should not make any modifications to applications or live kubernetes resourcesScreenshots
If applicable, add screenshots to help explain your problem.
Version
Logs
output of dry-run
controller logs