Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 71 for SVC (0.03 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go

    				},
    			},
    		},
    	}
    	return pods, svc
    }
    
    func streamTestData() (io.Reader, *v1.PodList, *v1.ServiceList) {
    	pods, svc := testData()
    	r, w := io.Pipe()
    	go func() {
    		defer w.Close()
    		w.Write([]byte(runtime.EncodeOrDie(corev1Codec, pods)))
    		w.Write([]byte(runtime.EncodeOrDie(corev1Codec, svc)))
    	}()
    	return r, pods, svc
    }
    
    func subresourceTestData(name string) *v1.Pod {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 11:58:41 UTC 2023
    - 56.1K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/serviceentry/controller_test.go

    		for _, svc := range gotServices {
    			if v, ok := gotIPMap[svc.AutoAllocatedIPv4Address]; ok && v != svc.Hostname.String() {
    				t.Errorf("multiple allocations of same IP address to different services with different hostname: %s", svc.AutoAllocatedIPv4Address)
    			}
    			gotIPMap[svc.AutoAllocatedIPv4Address] = svc.Hostname.String()
    			serviceIPMap[svc.Hostname.String()] = svc.AutoAllocatedIPv4Address
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/route/route.go

    		for _, service := range wrapper.Services {
    			delete(serviceRegistry, service.Hostname)
    		}
    	}
    
    	for _, svc := range serviceRegistry {
    		for _, port := range svc.Ports {
    			if port.Protocol.IsHTTPOrSniffed() {
    				hash, destinationRule := hashForService(push, node, svc, port)
    				if hash != nil {
    					dependentDestinationRules = append(dependentDestinationRules, destinationRule)
    				}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 56.1K bytes
    - Viewed (0)
  4. pilot/pkg/model/push_context_test.go

    			},
    		},
    	}
    
    	for _, svc := range services {
    		if index.shardsBySvc[string(svc.Hostname)] == nil {
    			index.shardsBySvc[string(svc.Hostname)] = map[string]*EndpointShards{}
    		}
    		index.shardsBySvc[string(svc.Hostname)][svc.Attributes.Namespace] = &EndpointShards{
    			ServiceAccounts: sets.New("spiffe://cluster.local/ns/def/sa/sa1", "spiffe://cluster.local/ns/def/sa/sa2"),
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 95.3K bytes
    - Viewed (0)
  5. tests/integration/ambient/baseline_test.go

    	framework.NewTest(t).
    		Run(func(t framework.TestContext) {
    			svcs := apps.All
    			for _, svc := range svcs {
    				if svc.Config().IsUncaptured() || svc.Config().HasSidecar() {
    					continue
    				}
    				t.NewSubTestf("ALLOW_ANY %v to external service", svc.Config().Service).Run(func(t framework.TestContext) {
    					svc.CallOrFail(t, echo.CallOptions{
    						Address: apps.MockExternal.ClusterLocalFQDN(),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 00:07:28 UTC 2024
    - 78.4K bytes
    - Viewed (0)
  6. cmd/sts-handlers_test.go

    	}
    	userAdmClient.SetCustomTransport(s.TestSuiteCommon.client.Transport)
    
    	// Create svc acc
    	cr := c.mustCreateSvcAccount(ctx, value.AccessKeyID, userAdmClient)
    
    	// 1. Check that svc account appears in listing
    	c.assertSvcAccAppearsInListing(ctx, userAdmClient, value.AccessKeyID, cr.AccessKey)
    
    	// 2. Check that svc account info can be queried
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 18:45:50 UTC 2024
    - 90K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/route/route_test.go

    							Host: "example2.default.svc.cluster.local",
    							Port: &networking.PortSelector{
    								Number: 8484,
    							},
    						},
    					},
    				},
    			},
    			{
    				Name: "route 3",
    				Route: []*networking.HTTPRouteDestination{
    					{
    						Destination: &networking.Destination{
    							Host: "example1.default.svc.cluster.local",
    							Port: &networking.PortSelector{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 88.1K bytes
    - Viewed (0)
  8. pkg/apis/networking/validation/validation_test.go

    			svc: func(svc *networking.ServiceCIDR) *networking.ServiceCIDR {
    				out := svc.DeepCopy()
    				out.Spec.CIDRs = []string{"10.0.0.0/16"}
    				return out
    			}, expectErr: true,
    		},
    		{
    			name: "Failed update, update spec.CIDRs dual stack",
    			svc: func(svc *networking.ServiceCIDR) *networking.ServiceCIDR {
    				out := svc.DeepCopy()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 73.3K bytes
    - Viewed (0)
  9. pilot/pkg/model/telemetry_logging_test.go

    			assert.Equal(t, first, second)
    		})
    	}
    }
    
    func TestBuildOpenTelemetryAccessLogConfig(t *testing.T) {
    	fakeCluster := "outbound|55680||otel-collector.monitoring.svc.cluster.local"
    	fakeAuthority := "otel-collector.monitoring.svc.cluster.local"
    	for _, tc := range []struct {
    		name        string
    		logName     string
    		clusterName string
    		hostname    string
    		body        string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 54K bytes
    - Viewed (0)
  10. pkg/apis/core/v1/defaults_test.go

    			expectedInternalTrafficPolicy: &local,
    			svc: v1.Service{
    				Spec: v1.ServiceSpec{
    					InternalTrafficPolicy: &local,
    				},
    			},
    		},
    	}
    	for _, test := range testCases {
    		t.Run(test.name, func(t *testing.T) {
    			obj := roundTrip(t, runtime.Object(&test.svc))
    			svc := obj.(*v1.Service)
    
    			if !reflect.DeepEqual(svc.Spec.InternalTrafficPolicy, test.expectedInternalTrafficPolicy) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 84.4K bytes
    - Viewed (0)
Back to top