Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 2,712 for naMespace (0.38 sec)

  1. plugin/pkg/admission/podnodeselector/admission_test.go

    )
    
    // TestPodAdmission verifies various scenarios involving pod/namespace/global node label selectors
    func TestPodAdmission(t *testing.T) {
    	namespace := &corev1.Namespace{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "testNamespace",
    			Namespace: "",
    		},
    	}
    
    	mockClient := fake.NewSimpleClientset(namespace)
    	handler, informerFactory, err := newHandlerForTest(mockClient)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access_test.go

    			for _, q := range quotas {
    				if q.Namespace != testNamespace2 {
    					t.Errorf("Expected %s namespace, got %s", testNamespace2, q.Namespace)
    				}
    			}
    		}()
    	}
    
    	// and here we wait for all the goroutines
    	wg.Wait()
    	// since all the calls with the same namespace will be held, they must
    	// be caught on the singleflight group. there are two different sets of
    	// namespace calls hence only 2.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 13:54:56 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. istioctl/pkg/describe/describe_test.go

    			client.Istio().NetworkingV1alpha3().DestinationRules(t.Namespace).Create(context.TODO(), t, metav1.CreateOptions{})
    		case *v1alpha3.Gateway:
    			client.Istio().NetworkingV1alpha3().Gateways(t.Namespace).Create(context.TODO(), t, metav1.CreateOptions{})
    		case *v1alpha3.VirtualService:
    			client.Istio().NetworkingV1alpha3().VirtualServices(t.Namespace).Create(context.TODO(), t, metav1.CreateOptions{})
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 09:54:01 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  4. pkg/kube/krt/collection_test.go

    	tt.WaitUnordered("add/namespace/name")
    
    	pc.Delete(pod.Name, pod.Namespace)
    	assert.EventuallyEqual(t, fetcherSorted(SimplePods), nil)
    	tt.WaitUnordered("delete/namespace/name")
    }
    
    func TestCollectionInitialState(t *testing.T) {
    	c := kube.NewFakeClient(
    		&corev1.Pod{
    			ObjectMeta: metav1.ObjectMeta{
    				Name:      "pod",
    				Namespace: "namespace",
    				Labels:    map[string]string{"app": "foo"},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  5. pilot/pkg/model/authorization_test.go

    			selectionOpts: WorkloadPolicyMatcher{
    				Namespace: "istio-config",
    			},
    			configs: []config.Config{
    				newConfig("authz-1", "istio-config", policy),
    			},
    			wantAllow: []AuthorizationPolicy{
    				{
    					Name:      "authz-1",
    					Namespace: "istio-config",
    					Spec:      policy,
    				},
    			},
    		},
    		{
    			name: "root namespace and config namespace",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  6. pkg/config/analysis/analyzers/testdata/multicluster/inconsistent-service-1.yaml

    apiVersion: v1
    kind: Service
    metadata:
      name: my-service
      namespace: my-namespace
    spec:
      selector:
        app: my-service
      ports:
      - name: tcp-foo
        protocol: TCP
        port: 8080
        targetPort: 8080
    ---
    # Service with extra port in cluster2, should generate warning.
    apiVersion: v1
    kind: Service
    metadata:
      name: extra-port
      namespace: my-namespace
    spec:
      selector:
        app: my-service
      ports:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 08:32:06 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. plugin/pkg/admission/podtolerationrestriction/admission_test.go

    		t.Errorf("error in marshalling namespace tolerations %v", namespaceTolerations)
    	}
    	namespace := &corev1.Namespace{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "testNamespace",
    			Namespace: "",
    		},
    	}
    	namespace.Annotations = map[string]string{NSDefaultTolerations: string(tolerationsStr)}
    	err = informerFactory.Core().V1().Namespaces().Informer().GetStore().Update(namespace)
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 16K bytes
    - Viewed (0)
  8. pkg/config/analysis/analyzers/sidecar/selector.go

    		s := rs.Message.(*v1alpha3.Sidecar)
    
    		// record namespace-scoped sidecars
    		if s.WorkloadSelector == nil || len(s.WorkloadSelector.Labels) == 0 {
    			namespacesToSidecars[rs.Metadata.FullName.Namespace] = append(namespacesToSidecars[rs.Metadata.FullName.Namespace], rs)
    			return true
    		}
    
    		sNs := rs.Metadata.FullName.Namespace
    		sel := labels.SelectorFromSet(s.WorkloadSelector.Labels)
    
    		foundPod := false
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun May 05 03:44:57 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go

    }
    
    func baseNamespacedPod(podName, namespace string) *example.Pod {
    	return &example.Pod{
    		ObjectMeta: metav1.ObjectMeta{Name: podName, Namespace: namespace},
    	}
    }
    
    func baseNamespacedPodUpdated(podName, namespace string) *example.Pod {
    	return &example.Pod{
    		ObjectMeta: metav1.ObjectMeta{Name: podName, Namespace: namespace},
    		Status:     example.PodStatus{Phase: "Running"},
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  10. tests/integration/ambient/gateway_conformance_test.go

    						namespace.Dump(ctx, ns)
    					}
    				}
    			})
    			csuite, err := suite.NewConformanceTestSuite(opts)
    			assert.NoError(t, err)
    			csuite.Setup(t, tests.ConformanceTests)
    
    			// remove the dataplane mode label from the gateway-conformance-infra namespace
    			// so that the ingress gateway doesn't get captured
    			ns, err := namespace.Claim(ctx, namespace.Config{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top