- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for IsUnsupportedMediaType (0.28 sec)
-
pkg/controller/garbagecollector/patch.go
smpResult, err := gc.patchObject(item.identity, smp, types.StrategicMergePatchType) if err == nil { return smpResult, nil } if !errors.IsUnsupportedMediaType(err) { return nil, err } // StrategicMergePatch is not supported, use JSON merge patch instead patch, err := jmp(item) if err != nil { return nil, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 05 13:33:52 UTC 2021 - 5.6K bytes - Viewed (0) -
pkg/controller/clusterroleaggregation/clusterroleaggregation_controller.go
} } } if equality.Semantic.DeepEqual(newPolicyRules, sharedClusterRole.Rules) { return nil } err = c.applyClusterRoles(ctx, sharedClusterRole.Name, newPolicyRules) if errors.IsUnsupportedMediaType(err) { // TODO: Remove this fallback at least one release after ServerSideApply GA // When Server Side Apply is not enabled, fallback to Update. This is required when running
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go
return true } return false } // IsUnsupportedMediaType determines if err is an error which indicates that the request failed due to an invalid Content-Type header // It supports wrapped errors and returns false when the error is nil. func IsUnsupportedMediaType(err error) bool { reason, code := reasonAndCodeForError(err) if reason == metav1.StatusReasonUnsupportedMediaType {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 21 03:41:32 UTC 2022 - 30.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/yaml_test.go
AbsPath("/apis", noxuDefinition.Spec.Group, noxuDefinition.Spec.Versions[0].Name, noxuDefinition.Spec.Names.Plural, "mytest"). Body(yamlBody). DoRaw(context.TODO()) if !errors.IsUnsupportedMediaType(err) { t.Fatalf("Expected bad request, got %v\n%s", err, string(result)) } obj, err := decodeYAML(result) if err != nil { t.Fatal(err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 02 19:34:41 UTC 2021 - 16.5K bytes - Viewed (0)