Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newWorkload (0.37 sec)

  1. pkg/test/framework/components/echo/kube/workload_manager.go

    	// Add the pod to the end of the workload list.
    	newWorkload, err := newWorkload(workloadConfig{
    		pod:        *pod,
    		hasSidecar: workloadHasSidecar(pod),
    		cluster:    m.cfg.Cluster,
    		grpcPort:   m.grpcPort,
    		tls:        m.tls,
    		stop:       m.stopCh,
    	}, m.ctx)
    	if err != nil {
    		return err
    	}
    	m.workloads = append(m.workloads, newWorkload)
    
    	if newWorkload.IsReady() {
    		workloadReady = newWorkload
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 14 02:12:37 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  2. pkg/test/framework/components/echo/kube/workload.go

    type workload struct {
    	client *echoClient.Client
    
    	workloadConfig
    	forwarder  istioKube.PortForwarder
    	sidecar    *sidecar
    	ctx        resource.Context
    	mutex      sync.Mutex
    	connectErr error
    }
    
    func newWorkload(cfg workloadConfig, ctx resource.Context) (*workload, error) {
    	w := &workload{
    		workloadConfig: cfg,
    		ctx:            ctx,
    	}
    
    	// If the pod is ready, connect.
    	if err := w.Update(cfg.pod); err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 25 19:46:28 UTC 2023
    - 7.4K bytes
    - Viewed (0)
Back to top