Skip to content
This repository was archived by the owner on Nov 16, 2020. It is now read-only.

Commit d4dd57d

Browse files
neosabkars7e
authored andcommitted
Fix Secrets UUID in get/list results (#544)
Return the UUID of the entity instead of the UID from k8s secret in the query/list response of secrets API.
1 parent 7ada6e4 commit d4dd57d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/secret-store/builder/dispatch_secret_builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (builder *DispatchSecretBuilder) Build() dispatchv1.Secret {
4141
tags = append(tags, &dispatchv1.Tag{Key: k, Value: v})
4242
}
4343
return dispatchv1.Secret{
44-
ID: strfmt.UUID(builder.k8sSecret.UID),
44+
ID: strfmt.UUID(builder.entity.ID),
4545
Name: &builder.entity.Name,
4646
Kind: utils.SecretKind,
4747
// Name: &builder.k8sSecret.Name,

0 commit comments

Comments
 (0)