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 49dbeee commit b99e4d5
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 @@ -100,7 +100,7 @@ func preCreateHook(ctx context.Context, obj *unstructured.Unstructured) error {
}
dataMap, ok := dataAny.(map[string]any)
if !ok {
return fmt.Errorf("unexpected type for v1.Secret data, got %T", dataAny)
return fmt.Errorf("unexpected type for v1.Secret data: expected map[string]any, got %T", dataAny)
}
for k, vAny := range stringDataMap {
v, ok := vAny.(string)
Expand Down

0 comments on commit b99e4d5

Please sign in to comment.