Skip to content

Commit 49dbeee

Browse files
Update mockkubeapiserver/postresource.go
Co-authored-by: Tomas Aschan <[email protected]>
1 parent 41b0c21 commit 49dbeee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mockkubeapiserver/postresource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func preCreateHook(ctx context.Context, obj *unstructured.Unstructured) error {
9191
if found {
9292
stringDataMap, ok := stringDataAny.(map[string]any)
9393
if !ok {
94-
return fmt.Errorf("unexpected type for v1.Secret stringData, got %T", stringDataAny)
94+
return fmt.Errorf("unexpected type for v1.Secret stringData: expected map[string]any, got %T", stringDataAny)
9595
}
9696
dataAny, dataFound := obj.Object["data"]
9797
if !dataFound {

0 commit comments

Comments
 (0)