Skip to content

Commit

Permalink
Fix for LinkHandler List
Browse files Browse the repository at this point in the history
Signed-off-by: Renato Granzoto <[email protected]>
  • Loading branch information
granzoto committed Dec 15, 2023
1 parent 88c6b72 commit 223de44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions pkg/domain/kube/link_kube.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ func (l *LinkHandlerKube) List() ([]*corev1.Secret, error) {
return nil, fmt.Errorf("Could not retrieve secrets: %w", err)
}
var secrets []*corev1.Secret
for _, s := range currentSecrets.Items {
secrets = append(secrets, &s)

for i, _ := range currentSecrets.Items {
secrets = append(secrets, &currentSecrets.Items[i])
}
return secrets, nil
}
Expand Down
1 change: 0 additions & 1 deletion pkg/domain/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ func GenerateLinkName(linkHandler LinkHandler) string {
max = v + 1
}
}

}
} else {
log.Fatal("Could not retrieve token secrets:", err)
Expand Down

0 comments on commit 223de44

Please sign in to comment.