Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for ownerRef (0.2 sec)

  1. pkg/controller/statefulset/stateful_set_utils.go

    func hasNonControllerOwner(claim *v1.PersistentVolumeClaim, set *apps.StatefulSet, pod *v1.Pod) bool {
    	for _, ownerRef := range claim.GetOwnerReferences() {
    		if ownerRef.UID == set.GetUID() || ownerRef.UID == pod.GetUID() {
    			if ownerRef.Controller == nil || !*ownerRef.Controller {
    				return true
    			}
    		}
    	}
    	return false
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  2. pkg/controller/endpointslicemirroring/utils_test.go

    	endpoints := v1.Endpoints{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "foo",
    			Namespace: "test",
    		},
    		Subsets: []v1.EndpointSubset{{
    			Ports: []v1.EndpointPort{{Port: 80}},
    		}},
    	}
    	ownerRef := metav1.NewControllerRef(&endpoints, gvk)
    
    	testCases := []struct {
    		name          string
    		tweakEndpoint func(ep *v1.Endpoints)
    		expectedSlice discovery.EndpointSlice
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 23 15:40:23 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  3. pkg/controller/garbagecollector/dump.go

    func NewMissingdotVertex(ownerRef metav1.OwnerReference) *dotVertex {
    	gv, err := schema.ParseGroupVersion(ownerRef.APIVersion)
    	if err != nil {
    		// this indicates a bad data serialization that should be prevented during storage of the API
    		utilruntime.HandleError(err)
    	}
    	return &dotVertex{
    		uid:              ownerRef.UID,
    		gvk:              gv.WithKind(ownerRef.Kind),
    		name:             ownerRef.Name,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 23 17:12:33 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  4. pkg/controller/garbagecollector/graph_builder.go

    			foundMismatch = true
    		} else {
    			for _, ownerRef := range dep.owners {
    				// ... find the ownerRef with a matching uid ...
    				if ownerRef.UID == matchOwnerIdentity.UID {
    					// ... and check if it matches all coordinates
    					if ownerReferenceMatchesCoordinates(ownerRef, matchOwnerIdentity.OwnerReference) {
    						foundMatch = true
    					} else {
    						foundMismatch = true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  5. plugin/pkg/admission/gc/gc_admission.go

    		// the pods/status endpoint is ignored by this plugin since old kubelets
    		// corrupt them.  the pod status strategy ensures status updates cannot mutate
    		// ownerRef.
    		whiteList := []whiteListItem{
    			{
    				groupResource: schema.GroupResource{Resource: "pods"},
    				subresource:   "status",
    			},
    		}
    		return &gcPermissionsEnforcement{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 05 02:24:38 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  6. pkg/registry/rbac/helpers_test.go

    			},
    			expected: false,
    		},
    		{
    			name: "only ownerRef",
    			obj: func() runtime.Object {
    				obj := newPod()
    				obj.OwnerReferences = append(obj.OwnerReferences, metav1.OwnerReference{Name: "foo"})
    				return obj
    			},
    			old: func() runtime.Object {
    				return newPod()
    			},
    			expected: true,
    		},
    		{
    			name: "ownerRef and finalizer",
    			obj: func() runtime.Object {
    				obj := newPod()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 05 20:12:50 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  7. pkg/controller/statefulset/stateful_pod_control_test.go

    		testCases := []struct {
    			name      string
    			ownerRef  []metav1.OwnerReference
    			expectRef bool
    		}{
    			{
    				name:      "bare PVC",
    				expectRef: true,
    			},
    			{
    				name:      "PVC already controller",
    				ownerRef:  []metav1.OwnerReference{{Controller: ptr.To(true), Name: "foobar"}},
    				expectRef: false,
    			},
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 35.5K bytes
    - Viewed (0)
  8. pkg/controller/endpointslicemirroring/utils.go

    	gvk := schema.GroupVersionKind{Version: "v1", Kind: "Endpoints"}
    	ownerRef := metav1.NewControllerRef(endpoints, gvk)
    	epSlice := &discovery.EndpointSlice{
    		ObjectMeta: metav1.ObjectMeta{
    			Labels:          map[string]string{},
    			Annotations:     map[string]string{},
    			OwnerReferences: []metav1.OwnerReference{*ownerRef},
    			Namespace:       endpoints.Namespace,
    		},
    		Ports:       ports,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 18:08:12 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  9. plugin/pkg/auth/authorizer/rbac/bootstrappolicy/controller_policy.go

    			// resource that is owned by the service and sets blockOwnerDeletion=true in its ownerRef.
    			rbacv1helpers.NewRule("update").Groups(legacyGroup).Resources("services/finalizers").RuleOrDie(),
    			// The controller needs to be able to set a service's finalizers to be able to create an EndpointSlice
    			// resource that is owned by the endpoint and sets blockOwnerDeletion=true in its ownerRef.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 19:25:10 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  10. pkg/controller/statefulset/stateful_set_test.go

    		ssc.enqueueStatefulSet(set)
    		fakeWorker(ssc)
    		*set.Spec.Replicas = 0 // Put an ownerRef for all scale-down deleted PVCs.
    		ssc.enqueueStatefulSet(set)
    		fakeWorker(ssc)
    
    		hasNamedOwnerRef := func(claim *v1.PersistentVolumeClaim, name string) bool {
    			for _, ownerRef := range claim.GetOwnerReferences() {
    				if ownerRef.Name == name {
    					return true
    				}
    			}
    			return false
    		}
    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