- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for AdoptControllerRevision (0.27 sec)
-
pkg/controller/history/controller_history.go
// AdoptControllerRevision attempts to adopt revision by adding a ControllerRef indicating that the parent // Object of parentKind is the owner of revision. If revision is already owned, an error is returned. If the // resource patch fails, an error is returned. If no error is returned, the returned ControllerRevision is // valid.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 05 13:33:52 UTC 2021 - 18.2K bytes - Viewed (0) -
pkg/controller/controller_ref_manager.go
if ok { claimed = append(claimed, h) } } return claimed, utilerrors.NewAggregate(errlist) } // AdoptControllerRevision sends a patch to take control of the ControllerRevision. It returns the error if // the patching fails. func (m *ControllerRevisionControllerRefManager) AdoptControllerRevision(ctx context.Context, history *apps.ControllerRevision) error { if err := m.CanAdopt(ctx); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 12 12:57:29 UTC 2023 - 21.5K bytes - Viewed (0) -
pkg/controller/history/controller_history_test.go
_, err := history.CreateControllerRevision(test.existing[i].parent, test.existing[i].revision, &collisionCount) if err != nil { t.Fatal(err) } } adopted, err := history.AdoptControllerRevision(test.parent, parentKind, test.revision) if !test.err && err != nil { t.Errorf("%s: %s", test.name, err) } if !test.err && !metav1.IsControlledBy(adopted, test.parent) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 21 13:31:28 UTC 2023 - 49.1K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_control.go
} func (ssc *defaultStatefulSetControl) AdoptOrphanRevisions( set *apps.StatefulSet, revisions []*apps.ControllerRevision) error { for i := range revisions { adopted, err := ssc.controllerHistory.AdoptControllerRevision(set, controllerKind, revisions[i]) if err != nil { return err } revisions[i] = adopted } return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 08:03:46 UTC 2024 - 30.9K bytes - Viewed (0)