- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 30 for controllerRef (0.15 sec)
-
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/controller_ref_test.go
Name: "name", UID: "uid1", }, } controllerRef := NewControllerRef(obj1, gvk) if controllerRef.UID != obj1.UID { t.Errorf("Incorrect UID: %s", controllerRef.UID) } if controllerRef.Controller == nil || *controllerRef.Controller != true { t.Error("Controller must be set to true") } if controllerRef.BlockOwnerDeletion == nil || *controllerRef.BlockOwnerDeletion != true {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 09 05:14:33 UTC 2024 - 4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/controller_ref.go
"k8s.io/utils/ptr" ) // IsControlledBy checks if the object has a controllerRef set to the given owner func IsControlledBy(obj Object, owner Object) bool { ref := GetControllerOfNoCopy(obj) if ref == nil { return false } return ref.UID == owner.GetUID() } // GetControllerOf returns a pointer to a copy of the controllerRef if controllee has a controller func GetControllerOf(controllee Object) *OwnerReference {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 09 05:14:33 UTC 2024 - 2K bytes - Viewed (0) -
pkg/controller/controller_utils.go
return prefix } func validateControllerRef(controllerRef *metav1.OwnerReference) error { if controllerRef == nil { return fmt.Errorf("controllerRef is nil") } if len(controllerRef.APIVersion) == 0 { return fmt.Errorf("controllerRef has empty APIVersion") } if len(controllerRef.Kind) == 0 { return fmt.Errorf("controllerRef has empty Kind") } if controllerRef.Controller == nil || !*controllerRef.Controller {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 12 15:34:44 UTC 2024 - 47.6K bytes - Viewed (0) -
pkg/controller/disruption/disruption.go
} if rs.UID != controllerRef.UID { return nil, nil } controllerRef = metav1.GetControllerOf(rs) if controllerRef != nil && controllerRef.Kind == controllerKindDep.Kind { // Skip RS if it's controlled by a Deployment. return nil, nil } return &controllerAndScale{rs.UID, *(rs.Spec.Replicas)}, nil } // getPodStatefulSet returns the statefulset referenced by the provided controllerRef.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 36.1K bytes - Viewed (0) -
pkg/controller/deployment/deployment_controller.go
return nil } // Now find the Deployment that owns that ReplicaSet. controllerRef = metav1.GetControllerOf(rs) if controllerRef == nil { return nil } return dc.resolveControllerRef(rs.Namespace, controllerRef) } // resolveControllerRef returns the controller referenced by a ControllerRef,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 24.2K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set.go
ssc.deletePod(logger, pod) return } // If it has a ControllerRef, that's all that matters. if controllerRef := metav1.GetControllerOf(pod); controllerRef != nil { set := ssc.resolveControllerRef(pod.Namespace, controllerRef) if set == nil { return } logger.V(4).Info("Pod created with labels", "pod", klog.KObj(pod), "labels", pod.Labels)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 18.5K bytes - Viewed (0) -
pkg/controller/cronjob/cronjob_controllerv2.go
if controllerRef.Kind != controllerKind.Kind { return nil } cronJob, err := jm.cronJobLister.CronJobs(namespace).Get(controllerRef.Name) if err != nil { return nil } if cronJob.UID != controllerRef.UID { // The controller we found with this Name is not the same one that the // ControllerRef points to. return nil } return cronJob }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 09 03:34:25 UTC 2024 - 29.2K bytes - Viewed (0) -
pkg/controller/replicaset/replica_set.go
rsc.deletePod(logger, pod) return } // If it has a ControllerRef, that's all that matters. if controllerRef := metav1.GetControllerOf(pod); controllerRef != nil { rs := rsc.resolveControllerRef(pod.Namespace, controllerRef) if rs == nil { return } rsKey, err := controller.KeyFunc(rs) if err != nil { return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 33.2K bytes - Viewed (0) -
pkg/controller/daemon/daemon_controller.go
// show up in a state that is already pending deletion. dsc.deleteHistory(logger, history) return } // If it has a ControllerRef, that's all that matters. if controllerRef := metav1.GetControllerOf(history); controllerRef != nil { ds := dsc.resolveControllerRef(history.Namespace, controllerRef) if ds == nil { return } logger.V(4).Info("Observed a ControllerRevision", "controllerRevision", klog.KObj(history))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 51.3K bytes - Viewed (0) -
pkg/controller/controller_ref_manager.go
func (m *BaseControllerRefManager) ClaimObject(ctx context.Context, obj metav1.Object, match func(metav1.Object) bool, adopt, release func(context.Context, metav1.Object) error) (bool, error) { controllerRef := metav1.GetControllerOfNoCopy(obj) if controllerRef != nil { if controllerRef.UID != m.Controller.GetUID() { // Owned by someone else. Ignore. return false, nil } if match(obj) { // We already own it and the selector matches.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 12 12:57:29 UTC 2023 - 21.5K bytes - Viewed (0)