Skip to content

Commit d31c4fb

Browse files
committed
fix: change according bird's review comment
Signed-off-by: Daniel Hu <[email protected]>
1 parent 0fd0d1f commit d31c4fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/pkg/plugin/helminstaller/helminstaller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func getDefaultOptionsByInstanceID(instanceID string) *helm.Options {
8888
// e.g. argocd-config-001 contains argocd and argocd-config, so the argocd and argocd-config both are matched name.
8989
var matchedNames = make([]string, 0)
9090
for name := range defaults.DefaultOptionsMap {
91-
if strings.Contains(instanceID, name) {
91+
if strings.HasPrefix(instanceID, name) {
9292
matchedNames = append(matchedNames, name)
9393
}
9494
}

0 commit comments

Comments
 (0)