Skip to content

Commit f6d9013

Browse files
author
lenny
committed
refactor: More rework and TODO for PR comments
Signed-off-by: lenny <[email protected]>
1 parent 30f5259 commit f6d9013

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

internal/security/fileprovider/init.go

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ func (b *Bootstrap) BootstrapHandler(_ context.Context, _ *sync.WaitGroup, _ sta
8282
if err != nil {
8383
lc.Errorf("error occurred creating SecretStoreClient: %s", err.Error())
8484
b.exitCode = 1
85+
return false
8586
}
8687

8788
fileProvider := NewTokenProvider(lc, fileOpener, tokenProvider, client)

internal/security/secretstore/init.go

+2
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ func (b *Bootstrap) BootstrapHandler(ctx context.Context, _ *sync.WaitGroup, _ s
143143
initResponse, err = client.Init(secretStoreConfig.VaultSecretThreshold, secretStoreConfig.VaultSecretShares)
144144
if err != nil {
145145
lc.Errorf("Unable to Initialize Vault: %s. Will try again...", err.Error())
146+
// TODO: This function should be refactored to resolve logic issue where we are returning
147+
// success=true when there was an error. Function be extracted out so it is no longer in-line.
146148
return true
147149
}
148150

0 commit comments

Comments
 (0)