Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for newRevision (0.12 sec)

  1. pkg/controller/history/controller_history.go

    	}
    }
    
    func (rh *realHistory) UpdateControllerRevision(revision *apps.ControllerRevision, newRevision int64) (*apps.ControllerRevision, error) {
    	clone := revision.DeepCopy()
    	err := retry.RetryOnConflict(retry.DefaultBackoff, func() error {
    		if clone.Revision == newRevision {
    			return nil
    		}
    		clone.Revision = newRevision
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 05 13:33:52 UTC 2021
    - 18.2K bytes
    - Viewed (0)
  2. pkg/controller/deployment/util/deployment_util.go

    	}
    	newRevisionInt, err := strconv.ParseInt(newRevision, 10, 64)
    	if err != nil {
    		logger.Info("Updating replica set revision NewRevision not int", "err", err)
    		return false
    	}
    	if oldRevisionInt < newRevisionInt {
    		newRS.Annotations[RevisionAnnotation] = newRevision
    		annotationChanged = true
    		logger.V(4).Info("Updating replica set revision", "replicaSet", klog.KObj(newRS), "newRevision", newRevision)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 07:09:11 UTC 2023
    - 39.3K bytes
    - Viewed (0)
  3. pkg/controller/deployment/sync.go

    	// Calculate the max revision number among all old RSes
    	maxOldRevision := deploymentutil.MaxRevision(logger, oldRSs)
    	// Calculate revision number for this new replica set
    	newRevision := strconv.FormatInt(maxOldRevision+1, 10)
    
    	// Latest replica set exists. We need to sync its annotations (includes copying all but
    	// annotationsToSkip from the parent deployment, and update revision, desiredReplicas,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. pilot/pkg/config/file/store.go

    	return s.inner.Create(config)
    }
    
    func (s *KubeSource) Update(config config.Config) (newRevision string, err error) {
    	return s.inner.Update(config)
    }
    
    func (s *KubeSource) UpdateStatus(config config.Config) (newRevision string, err error) {
    	return s.inner.UpdateStatus(config)
    }
    
    func (s *KubeSource) Patch(orig config.Config, patchFn config.PatchFunc) (string, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 17:36:47 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. staging/src/k8s.io/apiserver/pkg/cel/library/authz.go

    		Verb:            verb,
    		User:            a.groupCheck.authorizer.userInfo,
    	}
    	decision, reason, err := a.groupCheck.authorizer.authAuthorizer.Authorize(ctx, attr)
    	return newDecision(decision, err, reason)
    }
    
    func newDecision(authDecision authorizer.Decision, err error, reason string) decisionVal {
    	return decisionVal{receiverOnlyObjectVal: receiverOnlyVal(DecisionType), authDecision: authDecision, err: err, reason: reason}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 21.1K bytes
    - Viewed (0)
Back to top