Skip to content

Commit 590997f

Browse files
committed
fix: manage id in akamai store
1 parent f67fe41 commit 590997f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pkg/store/kubeconfig_store_akamai.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,13 @@ func (s *AkamaiStore) InitializeAkamaiStore() error {
8383

8484
// GetID returns the unique store ID
8585
func (s *AkamaiStore) GetID() string {
86-
return fmt.Sprintf("%s.default", s.GetKind())
86+
id := "default"
87+
88+
if s.KubeconfigStore.ID != nil {
89+
id = *s.KubeconfigStore.ID
90+
}
91+
92+
return fmt.Sprintf("%s.%s", s.GetKind(), id)
8793
}
8894

8995
func (s *AkamaiStore) GetKind() types.StoreKind {

0 commit comments

Comments
 (0)