mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-23 17:28:44 +00:00
parent
5980b604a6
commit
c2ff8e856b
2 changed files with 13 additions and 1 deletions
|
|
@ -1383,7 +1383,7 @@ func NewApplicationSyncCommand(clientOpts *argocdclient.ClientOptions) *cobra.Co
|
|||
cluster, err := clusterIf.Get(context.Background(), &clusterpkg.ClusterQuery{Server: app.Spec.Destination.Server})
|
||||
errors.CheckError(err)
|
||||
util.Close(conn)
|
||||
localObjsStrings = getLocalObjectsString(app, local, cluster.ServerVersion, argoSettings.AppLabelKey, argoSettings.KustomizeOptions)
|
||||
localObjsStrings = getLocalObjectsString(app, local, argoSettings.AppLabelKey, cluster.ServerVersion, argoSettings.KustomizeOptions)
|
||||
}
|
||||
|
||||
syncReq := applicationpkg.ApplicationSyncRequest{
|
||||
|
|
|
|||
|
|
@ -593,6 +593,18 @@ func TestLocalManifestSync(t *testing.T) {
|
|||
})
|
||||
}
|
||||
|
||||
func TestLocalSync(t *testing.T) {
|
||||
Given(t).
|
||||
// we've got to use Helm as this uses kubeVersion
|
||||
Path("helm").
|
||||
When().
|
||||
Create().
|
||||
Then().
|
||||
And(func(app *Application) {
|
||||
FailOnErr(RunCli("app", "sync", app.Name, "--local", "testdata/helm"))
|
||||
})
|
||||
}
|
||||
|
||||
func TestNoLocalSyncWithAutosyncEnabled(t *testing.T) {
|
||||
Given(t).
|
||||
Path(guestbookPath).
|
||||
|
|
|
|||
Loading…
Reference in a new issue