Skip to content

Commit

Permalink
make innerjoinunique (current behavior) the default merge mode
Browse files Browse the repository at this point in the history
Signed-off-by: Josh French <[email protected]>
  • Loading branch information
joshfrench committed Jan 10, 2025
1 parent 17917bb commit 10437df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion applicationset/generators/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func getJoinType(joinType string) (argoprojiov1alpha1.MergeMode, error) {
return argoprojiov1alpha1.MergeMode(joinType), nil
case "":
// No merge mode passed. Using default left-join-uniq
return LeftJoinUniq, nil
return InnerJoinUniq, nil
default:
return "", fmt.Errorf("incorrect merge mode passed. %s merge mode is not supported", joinType)
}
Expand Down
2 changes: 1 addition & 1 deletion applicationset/generators/merge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ func TestMergeModeDetection(t *testing.T) {
{
name: "no mode passed, should take default join type",
joinType: "",
expected: LeftJoinUniq,
expected: InnerJoinUniq,
},
}

Expand Down

0 comments on commit 10437df

Please sign in to comment.