Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 188 for naMespace (3.32 sec)

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

    	"k8s.io/kubernetes/pkg/auth/nodeidentifier"
    	"k8s.io/utils/pointer"
    )
    
    func makeTestPod(namespace, name, node string, mirror bool) (*api.Pod, *corev1.Pod) {
    	corePod := &api.Pod{}
    	corePod.Namespace = namespace
    	corePod.UID = types.UID("pod-uid")
    	corePod.Name = name
    	corePod.Spec.NodeName = node
    	v1Pod := &corev1.Pod{}
    	v1Pod.Namespace = namespace
    	v1Pod.UID = types.UID("pod-uid")
    	v1Pod.Name = name
    	v1Pod.Spec.NodeName = node
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 73.2K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/kube/controller/controller_test.go

    			Name:      name,
    			Namespace: namespace,
    		},
    		Subsets: []corev1.EndpointSubset{{
    			Addresses: eas,
    			Ports:     eps,
    		}},
    	}
    	if _, err := controller.client.Kube().CoreV1().Endpoints(namespace).Update(context.TODO(), endpoint, metav1.UpdateOptions{}); err != nil {
    		t.Fatalf("failed to update endpoints %s in namespace %s (error %v)", name, namespace, err)
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 85K bytes
    - Viewed (0)
  3. pkg/controller/endpointslice/endpointslice_controller_test.go

    				ObjectMeta: metav1.ObjectMeta{Name: serviceName, Namespace: namespace},
    				Spec: v1.ServiceSpec{
    					Ports: []v1.ServicePort{{Port: 80}},
    					Type:  v1.ServiceTypeExternalName,
    				},
    			},
    		},
    		{
    			desc: "External name with selector should not receive endpoint slices",
    			service: &v1.Service{
    				ObjectMeta: metav1.ObjectMeta{Name: serviceName, Namespace: namespace},
    				Spec: v1.ServiceSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 65.5K bytes
    - Viewed (0)
  4. pkg/apis/autoscaling/validation/validation_test.go

    			Name:      "frontend",
    			Namespace: metav1.NamespaceDefault,
    		},
    		Spec: autoscaling.ScaleSpec{
    			Replicas: 1,
    		},
    	}, {
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "frontend",
    			Namespace: metav1.NamespaceDefault,
    		},
    		Spec: autoscaling.ScaleSpec{
    			Replicas: 10,
    		},
    	}, {
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "frontend",
    			Namespace: metav1.NamespaceDefault,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 56.7K bytes
    - Viewed (0)
  5. plugin/pkg/admission/resourcequota/admission_test.go

    	if err != nil {
    		t.Errorf("Got unexpected error: %v", err)
    	}
    	if newPod.Namespace != namespace {
    		t.Errorf("Got unexpected pod namespace: %q != %q", newPod.Namespace, namespace)
    	}
    }
    
    // TestAdmitRejectsNegativeUsage verifies that usage for any measured resource cannot be negative.
    func TestAdmitRejectsNegativeUsage(t *testing.T) {
    	resourceQuota := &corev1.ResourceQuota{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 84.1K bytes
    - Viewed (0)
  6. tests/integration/security/authz_test.go

    							}
    
    							// Make sure the namespace-wide policy was applied to this workload.
    							for _, ns := range []namespace.Instance{apps.Ns1.Namespace, apps.Ns2.Namespace} {
    								cases = append(cases,
    									testCase{
    										path:  fmt.Sprintf("/policy-%s-all", ns.Prefix()),
    										allow: ns.Name() == to.Config().Namespace.Name(),
    									})
    							}
    
    							// Make sure the workload-specific paths succeeds.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 23:36:51 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  7. pilot/pkg/model/virtualservice_test.go

    								},
    							},
    						},
    					},
    				},
    			},
    		},
    	}
    
    	createDelegateVs := func(name, namespace string, exportTo []string) config.Config {
    		return config.Config{
    			Meta: config.Meta{
    				GroupVersionKind: gvk.VirtualService,
    				Name:             name,
    				Namespace:        namespace,
    			},
    			Spec: &networking.VirtualService{
    				Hosts:    []string{},
    				Gateways: []string{"gateway"},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 60.6K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/sidecar_simulation_test.go

    					Namespace: spl[1],
    					Name:      spl[0],
    				})
    			}
    		}
    	}
    	switch variant {
    	case "httproute":
    		return tmpl.MustEvaluate(`apiVersion: gateway.networking.k8s.io/v1beta1
    kind: HTTPRoute
    metadata:
      name: "{{.Namespace}}{{.Match | replace "*" "wild"}}{{.Dest}}"
      namespace: {{.Namespace}}
      creationTimestamp: "{{.Time}}"
    spec:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  9. tests/integration/ambient/baseline_test.go

    			"waypoint",
    			"apply",
    			"--namespace",
    			apps.Namespace.Name(),
    			"--name", "captured-waypoint",
    			"--wait",
    		})
    		t.Cleanup(func() {
    			istioctl.NewOrFail(t, t, istioctl.Config{}).InvokeOrFail(t, []string{
    				"waypoint",
    				"delete",
    				"--namespace",
    				apps.Namespace.Name(),
    				"captured-waypoint",
    			})
    		})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 00:07:28 UTC 2024
    - 78.4K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex_test.go

    		[]string{fmt.Sprintf("ns1/%s", model.GetAmbientPolicyConfigName(model.ConfigKey{
    			Kind:      kind.PeerAuthentication,
    			Name:      selectorPolicyName,
    			Namespace: "ns1",
    		}))})
    
    	// Change namespace policy back to STRICT
    	s.addPolicy(t, "namespace", testNS, nil, gvk.PeerAuthentication, func(c controllers.Object) {
    		pol := c.(*clientsecurityv1beta1.PeerAuthentication)
    		pol.Spec.Mtls = &auth.PeerAuthentication_MutualTLS{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 01:04:50 UTC 2024
    - 70.2K bytes
    - Viewed (0)
Back to top