Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for newRevision (0.13 sec)

  1. pilot/pkg/config/kube/gateway/controller.go

    	return "", errUnsupportedOp
    }
    
    func (c *Controller) Update(config config.Config) (newRevision string, err error) {
    	return "", errUnsupportedOp
    }
    
    func (c *Controller) UpdateStatus(config config.Config) (newRevision string, err error) {
    	return "", errUnsupportedOp
    }
    
    func (c *Controller) Patch(orig config.Config, patchFn config.PatchFunc) (string, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 05:26:03 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  2. pilot/pkg/model/config.go

    	// operation to achieve optimistic concurrency. This method returns a new
    	// revision if the operation succeeds.
    	Update(config config.Config) (newRevision string, err error)
    	UpdateStatus(config config.Config) (newRevision string, err error)
    
    	// Patch applies only the modifications made in the PatchFunc rather than doing a full replace. Useful to avoid
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 08:51:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. pkg/controller/statefulset/stateful_set_utils.go

    	specCopy["template"] = template
    	template["$patch"] = "replace"
    	objCopy["spec"] = specCopy
    	patch, err := json.Marshal(objCopy)
    	return patch, err
    }
    
    // newRevision creates a new ControllerRevision containing a patch that reapplies the target state of set.
    // The Revision of the returned ControllerRevision is set to revision. If the returned error is nil, the returned
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  4. pkg/controller/statefulset/stateful_set_control.go

    	var collisionCount int32
    	if set.Status.CollisionCount != nil {
    		collisionCount = *set.Status.CollisionCount
    	}
    
    	// create a new revision from the current set
    	updateRevision, err := newRevision(set, nextRevision(revisions), &collisionCount)
    	if err != nil {
    		return nil, nil, collisionCount, err
    	}
    
    	// find any equivalent revisions
    	equalRevisions := history.FindEqualRevisions(revisions, updateRevision)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:03:46 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  5. pkg/controller/statefulset/stateful_set_test.go

    	// The recheck occurs in the presence of a matching orphan.
    	pod := newStatefulSetPod(set, 1)
    	pod.OwnerReferences = nil
    	om.podsIndexer.Add(pod)
    	set.Status.CollisionCount = new(int32)
    	revision, err := newRevision(set, 1, set.Status.CollisionCount)
    	if err != nil {
    		t.Fatal(err)
    	}
    	revision.OwnerReferences = nil
    	_, err = ssh.CreateControllerRevision(set, revision, set.Status.CollisionCount)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
Back to top