Skip to content

Commit 93ab139

Browse files
committed
feat: allow both nil & empty originalData
1 parent 1ab3423 commit 93ab139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/argocd/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ func marshalParamsOverride(app *v1alpha1.Application, originalData []byte) ([]by
486486
images := GetImagesAndAliasesFromApplication(app)
487487

488488
var helmNewValues yaml.Node
489-
if originalData == nil {
489+
if len(originalData) == 0 {
490490
// allow non-exists target file
491491
helmNewValues = yaml.Node{
492492
Kind: yaml.DocumentNode,

0 commit comments

Comments
 (0)