Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 35 for EndpointSubset (0.26 sec)

  1. pkg/controlplane/reconcilers/lease.go

    		// just make sure we've got the right IP set, and then refresh the TTL
    		existing := input.(*corev1.Endpoints)
    		existing.Subsets = []corev1.EndpointSubset{
    			{
    				Addresses: []corev1.EndpointAddress{{IP: ip}},
    			},
    		}
    
    		// leaseTime needs to be in seconds
    		leaseTime := uint64(s.leaseTime / time.Second)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  2. pkg/controller/endpointslicemirroring/utils_test.go

    	gvk := schema.GroupVersionKind{Version: "v1", Kind: "Endpoints"}
    
    	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)
    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. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/filter_test.go

    				ObjectMeta: metav1.ObjectMeta{
    					Name: "endpoints1",
    				},
    				Subsets: []corev1.EndpointSubset{
    					{
    						Addresses: []corev1.EndpointAddress{{IP: "127.0.0.0"}},
    					},
    				},
    			}
    		}
    	} else {
    		object = nil
    		oldObject = &corev1.Endpoints{
    			Subsets: []corev1.EndpointSubset{
    				{
    					Addresses: []corev1.EndpointAddress{{IP: "127.0.0.0"}},
    				},
    			},
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 40.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/reconcilers/peer_endpoint_lease.go

    		existing := input.(*corev1.Endpoints)
    		existing.Subsets = []corev1.EndpointSubset{
    			{
    				Addresses: []corev1.EndpointAddress{{IP: ip}},
    				Ports:     endpointPorts,
    			},
    		}
    
    		// store this server's identity (serverId) as a label. This will be used by
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  5. pkg/apis/core/v1/zz_generated.conversion.go

    	}
    	if err := s.AddGeneratedConversionFunc((*v1.EndpointSubset)(nil), (*core.EndpointSubset)(nil), func(a, b interface{}, scope conversion.Scope) error {
    		return Convert_v1_EndpointSubset_To_core_EndpointSubset(a.(*v1.EndpointSubset), b.(*core.EndpointSubset), scope)
    	}); err != nil {
    		return err
    	}
    	if err := s.AddGeneratedConversionFunc((*core.EndpointSubset)(nil), (*v1.EndpointSubset)(nil), func(a, b interface{}, scope conversion.Scope) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 472.1K bytes
    - Viewed (0)
  6. pkg/controller/endpointslicemirroring/endpointslicemirroring_controller.go

    	// than necessary.
    	queue workqueue.TypedRateLimitingInterface[string]
    
    	// maxEndpointsPerSubset references the maximum number of endpoints that
    	// should be added to an EndpointSlice for an EndpointSubset.
    	maxEndpointsPerSubset int32
    
    	// workerLoopPeriod is the time between worker runs. The workers process the
    	// queue of changes to Endpoints resources.
    	workerLoopPeriod time.Duration
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 23:18:31 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  7. pkg/controlplane/reconcilers/lease_test.go

    				// skip-mirror label
    				&corev1.Endpoints{
    					ObjectMeta: metav1.ObjectMeta{
    						Namespace: metav1.NamespaceDefault,
    						Name:      "foo",
    					},
    					Subsets: []corev1.EndpointSubset{{
    						Addresses: []corev1.EndpointAddress{{IP: "1.2.3.4"}},
    						Ports:     []corev1.EndpointPort{{Name: "foo", Port: 8080, Protocol: "TCP"}},
    					}},
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 28.7K bytes
    - Viewed (0)
  8. pkg/apis/core/zz_generated.deepcopy.go

    		}
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointSubset.
    func (in *EndpointSubset) DeepCopy() *EndpointSubset {
    	if in == nil {
    		return nil
    	}
    	out := new(EndpointSubset)
    	in.DeepCopyInto(out)
    	return out
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 181.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/core/v1/zz_generated.deepcopy.go

    		}
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointSubset.
    func (in *EndpointSubset) DeepCopy() *EndpointSubset {
    	if in == nil {
    		return nil
    	}
    	out := new(EndpointSubset)
    	in.DeepCopyInto(out)
    	return out
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 181.9K bytes
    - Viewed (0)
  10. pkg/apis/core/validation/validation_test.go

    				Subsets: []core.EndpointSubset{{
    					Addresses: []core.EndpointAddress{{IP: "10.10.1.1"}},
    					Ports:     []core.EndpointPort{{Port: 8675, Protocol: "TCP"}},
    				}},
    			},
    		},
    		"valid appProtocol": {
    			endpoints: core.Endpoints{
    				ObjectMeta: metav1.ObjectMeta{Name: "mysvc", Namespace: "namespace"},
    				Subsets: []core.EndpointSubset{{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
Back to top