Skip to content

Commit e45ae0c

Browse files
Merge pull request #165 from guilhem/pluginID
fix(plugin): manage multiple local ID
2 parents a7474a0 + b2da603 commit e45ae0c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/store/kubeconfig_store_plugins.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ func (s *PluginStore) GetID() string {
8787

8888
id, err := s.Client.GetID(ctx)
8989
if err != nil {
90-
return fmt.Sprintf("%s.default", s.GetKind())
90+
localID := "default"
91+
if s.KubeconfigStore.ID != nil {
92+
localID = *s.KubeconfigStore.ID
93+
}
94+
return fmt.Sprintf("%s.%s", s.GetKind(), localID)
9195
}
9296
return id
9397
}

0 commit comments

Comments
 (0)