Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 111 for resources (0.2 sec)

  1. istioctl/pkg/cli/kubectl_factory.go

    import (
    	"k8s.io/apimachinery/pkg/api/meta"
    	"k8s.io/cli-runtime/pkg/resource"
    	openapiclient "k8s.io/client-go/openapi"
    	"k8s.io/kubectl/pkg/cmd/util"
    	"k8s.io/kubectl/pkg/util/openapi"
    	"k8s.io/kubectl/pkg/validation"
    
    	"istio.io/istio/pkg/kube"
    )
    
    type Factory struct {
    	kube.PartialFactory
    	full util.Factory
    }
    
    func (f Factory) NewBuilder() *resource.Builder {
    	return f.full.NewBuilder()
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jun 09 18:17:49 GMT 2023
    - 2K bytes
    - Viewed (0)
  2. istioctl/pkg/checkinject/checkinject.go

    	cmd := &cobra.Command{
    		Use:   "check-inject [<type>/]<name>[.<namespace>]",
    		Short: "Check the injection status or inject-ability of a given resource, explains why it is (or will be) injected or not",
    		Long: `
    Checks associated resources of the given resource, and running webhooks to examine whether the pod can be or will be injected or not.`,
    		Example: `  # Check the injection status of a pod
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/pilot/status.go

    	w := new(tabwriter.Writer).Init(s.Writer, 0, 8, 5, ' ', 0)
    	_, _ = fmt.Fprintln(w, "NAME\tCLUSTER\tCDS\tLDS\tEDS\tRDS\tECDS\tISTIOD\tVERSION")
    	for _, dr := range drs {
    		for _, resource := range dr.Resources {
    			clientConfig := xdsstatus.ClientConfig{}
    			err := resource.UnmarshalTo(&clientConfig)
    			if err != nil {
    				return nil, nil, fmt.Errorf("could not unmarshal ClientConfig: %w", err)
    			}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 04:16:55 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  4. istioctl/pkg/precheck/precheck.go

    	}
    	return nil
    }
    
    func ObjectToInstance(c controllers.Object) *resource.Instance {
    	return &resource.Instance{
    		Origin: &legacykube.Origin{
    			Type: kubetypes.GvkFromObject(c),
    			FullName: resource.FullName{
    				Namespace: resource.Namespace(c.GetNamespace()),
    				Name:      resource.LocalName(c.GetName()),
    			},
    			ResourceVersion: resource.Version(c.GetResourceVersion()),
    			Ref:             nil,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 02:57:30 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  5. internal/dsync/dsync_test.go

    		t.Errorf("expected at least %v time have passed, however %v passed", expect, elapsed)
    	}
    	t.Logf("expected at least %v time have passed, %v passed", expect, elapsed)
    }
    
    // Test two locks for different resources, both succeed
    func TestTwoSimultaneousLocksForDifferentResources(t *testing.T) {
    	dm1 := NewDRWMutex(ds, "aap")
    	dm2 := NewDRWMutex(ds, "noot")
    
    	dm1.Lock(id, source)
    	dm2.Lock(id, source)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 24 03:49:07 GMT 2022
    - 11K bytes
    - Viewed (0)
  6. internal/hash/reader.go

    	}
    	return map[string]string{r.contentHash.Type.String(): r.contentHash.Encoded}
    }
    
    var _ io.Closer = (*Reader)(nil) // compiler check
    
    // Close and release resources.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.8K bytes
    - Viewed (0)
  7. cmd/local-locker.go

    	if len(args.Resources) > maxDeleteList {
    		return false, fmt.Errorf("internal error: localLocker.Lock called with more than %d resources", maxDeleteList)
    	}
    
    	l.mutex.Lock()
    	defer l.mutex.Unlock()
    
    	if !l.canTakeLock(args.Resources...) {
    		// Not all locks can be taken on resources,
    		// reject it completely.
    		return false, nil
    	}
    
    	// No locks held on the all resources, so claim write
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 19 22:54:46 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  8. cmd/local-locker_test.go

    	if len(l.lockMap) != len(rResources)+len(wResources)*m {
    		t.Fatalf("lockmap len, got %d, want %d + %d", len(l.lockMap), len(rResources), len(wResources)*m)
    	}
    	// A UID is added for every resource.
    	// We removed len(rResources) read sources.
    	if len(l.lockUID) != len(rResources)+len(wResources)*m {
    		t.Fatalf("lockUID len, got %d, want %d + %d", len(l.lockUID), len(rResources), len(wResources)*m)
    	}
    	// RUnlock again, different uids
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 05 04:57:35 GMT 2023
    - 11.8K bytes
    - Viewed (0)
  9. istioctl/pkg/version/version.go

    	return func() (*[]istioVersion.ProxyInfo, error) {
    		pi := []istioVersion.ProxyInfo{}
    		for _, resource := range (*xdsResponse).Resources {
    			switch resource.TypeUrl {
    			case "type.googleapis.com/envoy.config.core.v3.Node":
    				node := core.Node{}
    				err := resource.UnmarshalTo(&node)
    				if err != nil {
    					return nil, fmt.Errorf("could not unmarshal Node: %w", err)
    				}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  10. cmd/storage-rest-server.go

    // Every 10 seconds a space character is sent.
    // keepHTTPReqResponseAlive will wait for the returned body to be read before starting the ticker.
    // The returned function should always be called to release resources.
    // An optional error can be sent which will be picked as text only error,
    // without its original type by the receiver.
    // waitForHTTPResponse should be used to the receiving side.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
Back to top