Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for CloneAndAddLabel (0.3 sec)

  1. pkg/controller/deployment/sync.go

    	// new ReplicaSet does not exist, create one.
    	newRSTemplate := *d.Spec.Template.DeepCopy()
    	podTemplateSpecHash := controller.ComputeHash(&newRSTemplate, d.Status.CollisionCount)
    	newRSTemplate.Labels = labelsutil.CloneAndAddLabel(d.Spec.Template.Labels, apps.DefaultDeploymentUniqueLabelKey, podTemplateSpecHash)
    	// Add podTemplateHash label to selector.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  2. pkg/controller/daemon/update.go

    	name := ds.Name + "-" + hash
    	history := &apps.ControllerRevision{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:            name,
    			Namespace:       ds.Namespace,
    			Labels:          labelsutil.CloneAndAddLabel(ds.Spec.Template.Labels, apps.DefaultDaemonSetUniqueLabelKey, hash),
    			Annotations:     ds.Annotations,
    			OwnerReferences: []metav1.OwnerReference{*metav1.NewControllerRef(ds, controllerKind)},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 16:53:53 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  3. pkg/controller/endpoint/endpoints_controller.go

    	}
    
    	if newEndpoints.Labels == nil {
    		newEndpoints.Labels = make(map[string]string)
    	}
    
    	if !helper.IsServiceIPSet(service) {
    		newEndpoints.Labels = utillabels.CloneAndAddLabel(newEndpoints.Labels, v1.IsHeadlessService, "")
    	} else {
    		newEndpoints.Labels = utillabels.CloneAndRemoveLabel(newEndpoints.Labels, v1.IsHeadlessService)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  4. pkg/controller/daemon/daemon_controller_test.go

    	// Copy pod spec from DaemonSet template, or use a default one if DaemonSet is nil
    	if ds != nil {
    		hash := controller.ComputeHash(&ds.Spec.Template, ds.Status.CollisionCount)
    		newLabels = labelsutil.CloneAndAddLabel(label, apps.DefaultDaemonSetUniqueLabelKey, hash)
    		podSpec = ds.Spec.Template.Spec
    	} else {
    		podSpec = v1.PodSpec{
    			Containers: []v1.Container{
    				{
    					Image:                  "foo/bar",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
Back to top