Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for FieldSelectorParam (0.24 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/builder_flags.go

    		if o.LabelSelector != nil {
    			builder.LabelSelectorParam(*o.LabelSelector)
    		}
    		// field selectors only work non-local (forever)
    		if o.FieldSelector != nil {
    			builder.FieldSelectorParam(*o.FieldSelector)
    		}
    		// latest only works non-local (forever)
    		if o.Latest {
    			builder.Latest()
    		}
    
    	} else {
    		builder.Local()
    
    		if len(resources) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 13 10:28:09 UTC 2021
    - 6.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/resource/builder.go

    		return b
    	}
    
    	b.labelSelector = &selector
    	return b
    }
    
    // FieldSelectorParam defines a selector that should be applied to the object types to load.
    // This will not affect files loaded from disk or URL. If the parameter is empty it is
    // a no-op - to select all resources.
    func (b *Builder) FieldSelectorParam(s string) *Builder {
    	s = strings.TrimSpace(s)
    	if len(s) == 0 {
    		return b
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 10:17:56 UTC 2023
    - 37.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go

    		"/namespaces/test/pods?" + fieldKey + "=a%3Db":     runtime.EncodeOrDie(corev1Codec, pods),
    		"/namespaces/test/services?" + fieldKey + "=a%3Db": runtime.EncodeOrDie(corev1Codec, svc),
    	})).
    		FieldSelectorParam("a=b").
    		NamespaceParam("test").
    		Flatten()
    
    	test := &testVisitor{}
    	singleItemImplied := false
    
    	if b.Do().Err() == nil {
    		t.Errorf("unexpected non-error")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 11:58:41 UTC 2023
    - 56.1K bytes
    - Viewed (0)
  4. CHANGELOG/CHANGELOG-1.8.md

    * The generic RESTClient type (`k8s.io/client-go/rest`) no longer exposes `LabelSelectorParam` or `FieldSelectorParam` methods - use `VersionedParams` with `metav1.ListOptions` instead.  The `UintParam` method has been removed.  The `timeout` parameter will no longer cause an error when using `Param()`. ([#48991](https://github.com/kubernetes/kubernetes/pull/48991),...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 20 15:45:02 UTC 2024
    - 312.2K bytes
    - Viewed (0)
Back to top