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 41b0c21 commit 49dbeee
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 @@ -91,7 +91,7 @@ func preCreateHook(ctx context.Context, obj *unstructured.Unstructured) error {
if found {
stringDataMap, ok := stringDataAny.(map[string]any)
if !ok {
return fmt.Errorf("unexpected type for v1.Secret stringData, got %T", stringDataAny)
return fmt.Errorf("unexpected type for v1.Secret stringData: expected map[string]any, got %T", stringDataAny)
}
dataAny, dataFound := obj.Object["data"]
if !dataFound {
Expand Down

0 comments on commit 49dbeee

Please sign in to comment.