Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 106 for WithKind (0.16 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/printers/tableprinter_test.go

    func TestPrintTable_WithKind(t *testing.T) {
    	tests := []struct {
    		columns  []metav1.TableColumnDefinition
    		rows     []metav1.TableRow
    		options  PrintOptions
    		expected string
    	}{
    		// Test a single row table "WithKind" option, prepends "pod" to name.
    		{
    			columns: []metav1.TableColumnDefinition{
    				{Name: "Name", Type: "string", Format: "name"},
    				{Name: "Ready", Type: "string"},
    				{Name: "Status", Type: "string"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Oct 30 15:08:43 UTC 2022
    - 24.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/testing/types.go

    		return schema.GroupVersionKind{}
    	}
    	gv, err := schema.ParseGroupVersion(apiVersion)
    	if err != nil {
    		return schema.GroupVersionKind{}
    	}
    	kind, ok := u.Object["kind"].(string)
    	if ok {
    		return gv.WithKind(kind)
    	}
    	return schema.GroupVersionKind{}
    }
    
    func (u *Unstructured) SetGroupVersionKind(gvk schema.GroupVersionKind) {
    	if u.Object == nil {
    		u.Object = make(map[string]interface{})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 28 03:26:35 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  3. pkg/registry/core/serviceaccount/storage/token.go

    			if utilfeature.DefaultFeatureGate.Enabled(features.ServiceAccountTokenPodNodeInfo) {
    				if nodeName := pod.Spec.NodeName; nodeName != "" {
    					newCtx := newContext(ctx, "nodes", nodeName, "", api.SchemeGroupVersion.WithKind("Node"))
    					// set ResourceVersion=0 to allow this to be read/served from the apiservers watch cache
    					nodeObj, err := r.nodes.Get(newCtx, nodeName, &metav1.GetOptions{ResourceVersion: "0"})
    					if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 05 10:24:31 UTC 2024
    - 10K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/create.go

    			err := errors.NewInvalid(schema.GroupKind{Group: metav1.GroupName, Kind: "CreateOptions"}, "", errs)
    			scope.err(err, w, req)
    			return
    		}
    		options.TypeMeta.SetGroupVersionKind(metav1.SchemeGroupVersion.WithKind("CreateOptions"))
    
    		defaultGVK := scope.Kind
    		original := r.New()
    
    		validationDirective := fieldValidation(options.FieldValidation)
    		decodeSerializer := s.Serializer
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 20:19:46 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/util/config/cluster.go

    	}
    	// If ClusterConfiguration was patched by something other than kubeadm, it may have errors. Warn about them.
    	if err := strict.VerifyUnmarshalStrict([]*runtime.Scheme{kubeadmscheme.Scheme},
    		kubeadmapiv1.SchemeGroupVersion.WithKind(constants.ClusterConfigurationKind),
    		[]byte(clusterConfigurationData)); err != nil {
    		klog.Warning(err.Error())
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 11:04:08 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/genericapiserver_test.go

    	testAPI := func(gv schema.GroupVersion) APIGroupInfo {
    		getter, noVerbs := testGetterStorage{}, testNoVerbsStorage{}
    
    		scheme := runtime.NewScheme()
    		scheme.AddKnownTypeWithName(gv.WithKind("Getter"), getter.New())
    		scheme.AddKnownTypeWithName(gv.WithKind("NoVerb"), noVerbs.New())
    		scheme.AddKnownTypes(v1GroupVersion, &metav1.Status{})
    		metav1.AddToGroupVersion(scheme, v1GroupVersion)
    
    		return APIGroupInfo{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/etcd.go

    var _ = rest.Patcher(&ScaleREST{})
    var _ = rest.GroupVersionKindProvider(&ScaleREST{})
    
    func (r *ScaleREST) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind {
    	return autoscalingv1.SchemeGroupVersion.WithKind("Scale")
    }
    
    // New creates a new Scale object
    func (r *ScaleREST) New() runtime.Object {
    	return &autoscalingv1.Scale{}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  8. pkg/controller/deployment/deployment_controller.go

    	maxRetries = 15
    )
    
    // controllerKind contains the schema.GroupVersionKind for this controller type.
    var controllerKind = apps.SchemeGroupVersion.WithKind("Deployment")
    
    // DeploymentController is responsible for synchronizing Deployment objects stored
    // in the system with actual running replica sets and pods.
    type DeploymentController struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/runtime/scheme.go

    	s.addObservedVersion(version)
    	s.AddKnownTypes(version, types...)
    	for _, obj := range types {
    		t := reflect.TypeOf(obj).Elem()
    		gvk := version.WithKind(t.Name())
    		s.unversionedTypes[t] = gvk
    		if old, ok := s.unversionedKinds[gvk.Kind]; ok && t != old {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 25.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured.go

    }
    
    func (u *Unstructured) GroupVersionKind() schema.GroupVersionKind {
    	gv, err := schema.ParseGroupVersion(u.GetAPIVersion())
    	if err != nil {
    		return schema.GroupVersionKind{}
    	}
    	gvk := gv.WithKind(u.GetKind())
    	return gvk
    }
    
    func (u *Unstructured) GetFinalizers() []string {
    	val, _, _ := NestedStringSlice(u.Object, "metadata", "finalizers")
    	return val
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 28 03:26:35 UTC 2023
    - 13.7K bytes
    - Viewed (0)
Back to top