Skip to content

Commit

Permalink
Update mockkubeapiserver/postresource.go
Browse files Browse the repository at this point in the history
Co-authored-by: Tomas Aschan <1550920+tomasaschan@users.noreply.github.com>
  • Loading branch information
justinsb and tomasaschan committed Jun 15, 2024
1 parent b99e4d5 commit 6ad6bda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mockkubeapiserver/postresource.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func preCreateHook(ctx context.Context, obj *unstructured.Unstructured) error {
for k, vAny := range stringDataMap {
v, ok := vAny.(string)
if !ok {
return fmt.Errorf("unexpected type for v1.Secret stringData entry, got %T", vAny)
return fmt.Errorf("unexpected type for v1.Secret stringData entry %s: expected string, got %T", k, vAny)
}
dataMap[k] = base64.StdEncoding.EncodeToString([]byte(v))
}
Expand Down

0 comments on commit 6ad6bda

Please sign in to comment.