- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 35 for TestMapping (0.13 sec)
-
plugin/pkg/admission/gc/gc_admission_test.go
panic("test failed") } func (r *neverReturningRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error) { // this ok because if the test works, this method should never be called. panic("test failed") } func (r *neverReturningRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*meta.RESTMapping, error) { // this ok because if the test works, this method should never be called.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 21:28:42 UTC 2024 - 24.5K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/visitor.go
type ResourceMapping interface { ResourceMapping() *meta.RESTMapping } // Info contains temporary info to execute a REST call, or show the results // of an already completed REST call. type Info struct { // Client will only be present if this builder was not local Client RESTClient // Mapping will only be present if this builder was not local Mapping *meta.RESTMapping
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 10:17:56 UTC 2023 - 21.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_source.go
// Temporary until we use the dynamic informer factory paramsCRDControllers map[schema.GroupVersionKind]*paramInfo } type paramInfo struct { mapping meta.RESTMapping // When the param is changed, or the informer is done being used, the cancel // func should be called to stop/cleanup the original informer cancelFunc func() // The lister for this param
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 21 23:07:34 UTC 2024 - 15.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_test_context.go
newPolicyAccessor func(P) PolicyAccessor, newBindingAccessor func(B) BindingAccessor, compileFunc func(P) E, dispatcher dispatcherFactory[PolicyHook[P, B, E]], initialObjects []runtime.Object, paramMappings []meta.RESTMapping, ) (*PolicyTestContext[P, B, E], func(), error) { var Pexample P var Bexample B // Create a fake resource and kind for the provided policy and binding types fakePolicyGVR := schema.GroupVersionResource{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 19K bytes - Viewed (0) -
plugin/pkg/admission/gc/gc_admission.go
records, err := a.ownerRefToDeleteAttributeRecords(ref, attributes) if err != nil { return admission.NewForbidden(attributes, fmt.Errorf("cannot set blockOwnerDeletion in this case because cannot find RESTMapping for APIVersion %s Kind %s: %v", ref.APIVersion, ref.Kind, err)) } // Multiple records are returned if ref.Kind could map to multiple // resources. User needs to have delete permission on all the
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 05 02:24:38 UTC 2023 - 10.3K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/helper.go
// field validation (Ignore, Warn, or Strict) FieldValidation string } // NewHelper creates a Helper from a ResourceMapping func NewHelper(client RESTClient, mapping *meta.RESTMapping) *Helper { return &Helper{ Resource: mapping.Resource.Resource, RESTClient: client, NamespaceScoped: mapping.Scope.Name() == meta.RESTScopeNameNamespace, } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 26 03:45:13 UTC 2022 - 10.5K bytes - Viewed (0) -
pkg/controller/podautoscaler/metrics/client_test.go
gk := schema.FromAPIVersionAndKind(tc.singleObject.APIVersion, tc.singleObject.Kind).GroupKind() mapping, err := mapper.RESTMapping(gk) if err != nil { return true, nil, fmt.Errorf("unable to get mapping for %s: %v", gk.String(), err) } groupResource := mapping.Resource.GroupResource()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 09 02:34:54 UTC 2021 - 16.4K bytes - Viewed (0) -
pkg/controller/podautoscaler/horizontal.go
// resource with the given name and namespace, trying each RESTMapping // in turn until a working one is found. If none work, the first error // is returned. It returns both the scale, as well as the group-resource from // the working mapping. func (a *HorizontalController) scaleForResourceMappings(ctx context.Context, namespace, name string, mappings []*apimeta.RESTMapping) (*autoscalingv1.Scale, schema.GroupResource, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 63.6K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go
return FakeCategoryExpander, nil }). Unstructured() } type errorRestMapper struct { meta.RESTMapper err error } func (l *errorRestMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error) { return nil, l.err } func (l *errorRestMapper) Reset() { meta.MaybeResetRESTMapper(l.RESTMapper) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 11:58:41 UTC 2023 - 56.1K bytes - Viewed (0) -
pkg/controller/disruption/disruption.go
if err != nil { return nil, err } gk := schema.GroupKind{ Group: gv.Group, Kind: controllerRef.Kind, } mapping, err := dc.mapper.RESTMapping(gk, gv.Version) if err != nil { return nil, err } gr := mapping.Resource.GroupResource() scale, err := dc.scaleNamespacer.Scales(namespace).Get(ctx, gr, controllerRef.Name, metav1.GetOptions{})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 36.1K bytes - Viewed (0)