Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 66 of 66 for Cur (0.04 sec)

  1. pkg/controller/daemon/update_test.go

    }
    
    func currentDSHash(dsc *daemonSetsController, ds *apps.DaemonSet) (string, error) {
    	// Construct histories of the DaemonSet, and get the hash of current history
    	cur, _, err := dsc.constructHistory(context.TODO(), ds)
    	if err != nil {
    		return "", err
    	}
    	return cur.Labels[apps.DefaultDaemonSetUniqueLabelKey], nil
    
    }
    
    func TestDaemonSetUpdatesNoTemplateChanged(t *testing.T) {
    	_, ctx := ktesting.NewTestContext(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Feb 10 21:10:35 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  2. src/context/context.go

    // not set the cause.
    func WithDeadlineCause(parent Context, d time.Time, cause error) (Context, CancelFunc) {
    	if parent == nil {
    		panic("cannot create context from nil parent")
    	}
    	if cur, ok := parent.Deadline(); ok && cur.Before(d) {
    		// The current deadline is already sooner than the new one.
    		return WithCancel(parent)
    	}
    	c := &timerCtx{
    		deadline: d,
    	}
    	c.cancelCtx.propagateCancel(parent, c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  3. pkg/kube/inject/inject.go

    	}
    
    	targetPort := strconv.Itoa(int(req.meshConfig.GetDefaultConfig().GetStatusPort()))
    	if cur, f := getPrometheusPort(pod); f {
    		// We have already set the port, assume user is controlling this or, more likely, re-injected
    		// the pod.
    		if cur == targetPort {
    			clearPrometheusAnnotations(pod)
    		}
    	}
    	delete(pod.Annotations, annotation.SidecarStatus.Name)
    
    	return pod
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 20:35:11 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/interfaces.go

    	//       curr.Counter++
    	//
    	//       // Return the modified object - return an error to stop iterating. Return
    	//       // a uint64 to alter the TTL on the object, or nil to keep it the same value.
    	//       return cur, nil, nil
    	//    }, cachedExistingObject
    	// )
    	GuaranteedUpdate(
    		ctx context.Context, key string, destination runtime.Object, ignoreNotFound bool,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 07:53:48 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  5. src/internal/trace/internal/oldtrace/parser.go

    		// without having to grow it later.
    		cur, err := seeker.Seek(0, io.SeekCurrent)
    		if err != nil {
    			return nil, err
    		}
    		end, err := seeker.Seek(0, io.SeekEnd)
    		if err != nil {
    			return nil, err
    		}
    		_, err = seeker.Seek(cur, io.SeekStart)
    		if err != nil {
    			return nil, err
    		}
    
    		buf = make([]byte, end-cur)
    		_, err = io.ReadFull(r, buf)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  6. pkg/kube/inject/webhook.go

    		enablePrometheusMerge(mesh, pod.ObjectMeta.Annotations) {
    		targetPort := strconv.Itoa(int(mesh.GetDefaultConfig().GetStatusPort()))
    		if cur, f := getPrometheusPort(pod); f {
    			// We have already set the port, assume user is controlling this or, more likely, re-injected
    			// the pod.
    			if cur == targetPort {
    				return nil
    			}
    		}
    		scrape := getPrometheusScrapeConfiguration(pod)
    		sidecar := FindSidecar(pod)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:59:39 UTC 2024
    - 42.2K bytes
    - Viewed (0)
Back to top