- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for controllerRef (0.17 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/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/kube/util.go
var controllerRef metav1.OwnerReference controllerFound := false for _, ref := range pod.GetOwnerReferences() { if ref.Controller != nil && *ref.Controller { controllerRef = ref controllerFound = true break } } if controllerFound { typeMetadata.APIVersion = controllerRef.APIVersion typeMetadata.Kind = controllerRef.Kind
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 05:10:23 UTC 2024 - 18.6K bytes - Viewed (0) -
pkg/controller/job/job_controller.go
// Make sure the pod is still orphaned. if controllerRef := metav1.GetControllerOf(sharedPod); controllerRef != nil { if controllerRef.Kind != controllerKind.Kind || controllerRef.APIVersion != batch.SchemeGroupVersion.String() { // The pod is controlled by an owner that is not a batch/v1 Job. Do not remove finalizer. return nil } job := jm.resolveControllerRef(sharedPod.Namespace, controllerRef) if job != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 10 23:56:37 UTC 2024 - 77.6K bytes - Viewed (0)