Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for test_namespace (0.37 sec)

  1. staging/src/k8s.io/apimachinery/pkg/test/apis_meta_v1_unstructed_unstructure_test.go

    		Object: map[string]interface{}{
    			"kind":       "test_kind",
    			"apiVersion": "test_version",
    			"metadata": map[string]interface{}{
    				"name":                       "test_name",
    				"namespace":                  "test_namespace",
    				"generateName":               "test_generateName",
    				"uid":                        "test_uid",
    				"resourceVersion":            "test_resourceVersion",
    				"generation":                 ten,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 05 20:12:50 UTC 2022
    - 17.3K bytes
    - Viewed (0)
  2. pkg/volume/downwardapi/downwardapi_test.go

    			steps: []testStep{
    				verifyLinesInFile{stepName{"name_file_name"}, testName},
    			},
    		},
    		{
    			name:  "test_namespace",
    			files: map[string]string{"namespace_file_name": "metadata.namespace"},
    			steps: []testStep{
    				verifyLinesInFile{stepName{"namespace_file_name"}, testNamespace},
    			},
    		},
    		{
    			name:      "test_write_twice_no_update",
    			files:     map[string]string{"labels": "metadata.labels"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 04:48:49 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  3. pkg/controller/namespace/deletion/namespaced_resources_deleter_test.go

    )
    
    func TestFinalized(t *testing.T) {
    	testNamespace := &v1.Namespace{
    		Spec: v1.NamespaceSpec{
    			Finalizers: []v1.FinalizerName{"a", "b"},
    		},
    	}
    	if finalized(testNamespace) {
    		t.Errorf("Unexpected result, namespace is not finalized")
    	}
    	testNamespace.Spec.Finalizers = []v1.FinalizerName{}
    	if !finalized(testNamespace) {
    		t.Errorf("Expected object to be finalized")
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 07:34:23 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  4. pkg/volume/projected/projected_test.go

    			payload:  map[string]util.FileProjection{},
    			success:  true,
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    
    			testNamespace := "test_projected_namespace"
    			tc.secret.ObjectMeta = metav1.ObjectMeta{
    				Namespace: testNamespace,
    				Name:      tc.name,
    			}
    
    			source := makeProjection(tc.name, utilptr.Int32Ptr(tc.mode), "secret")
    			source.Sources[0].Secret.Items = tc.mappings
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 40.5K bytes
    - Viewed (0)
  5. istioctl/pkg/multicluster/remote_secret_test.go

    			UID:  kubeSystemNamespaceUID,
    		},
    	}
    )
    
    const (
    	testNamespace          = "istio-system-test"
    	testServiceAccountName = "test-service-account"
    )
    
    func makeServiceAccount(secrets ...string) *v1.ServiceAccount {
    	sa := &v1.ServiceAccount{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      testServiceAccountName,
    			Namespace: testNamespace,
    		},
    	}
    
    	for _, secret := range secrets {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 20.6K bytes
    - Viewed (0)
  6. pkg/volume/secret/secret_test.go

    func TestPlugin(t *testing.T) {
    	var (
    		testPodUID     = types.UID("test_pod_uid")
    		testVolumeName = "test_volume_name"
    		testNamespace  = "test_secret_namespace"
    		testName       = "test_secret_name"
    
    		volumeSpec    = volumeSpec(testVolumeName, testName, 0644)
    		secret        = secret(testNamespace, testName)
    		client        = fake.NewSimpleClientset(&secret)
    		pluginMgr     = volume.VolumePluginMgr{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 19.5K bytes
    - Viewed (0)
  7. pkg/proxy/config/config_test.go

    	service1 := &v1.Service{
    		ObjectMeta: metav1.ObjectMeta{Namespace: "testnamespace", Name: "foo"},
    		Spec:       v1.ServiceSpec{Ports: []v1.ServicePort{{Protocol: "TCP", Port: 10}}},
    	}
    	fakeWatch.Add(service1)
    	handler.ValidateServices(t, []*v1.Service{service1})
    
    	service2 := &v1.Service{
    		ObjectMeta: metav1.ObjectMeta{Namespace: "testnamespace", Name: "bar"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  8. pkg/volume/configmap/configmap_test.go

    func TestPlugin(t *testing.T) {
    	var (
    		testPodUID     = types.UID("test_pod_uid")
    		testVolumeName = "test_volume_name"
    		testNamespace  = "test_configmap_namespace"
    		testName       = "test_configmap_name"
    
    		volumeSpec    = volumeSpec(testVolumeName, testName, 0644)
    		configMap     = configMap(testNamespace, testName)
    		client        = fake.NewSimpleClientset(&configMap)
    		pluginMgr     = volume.VolumePluginMgr{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 19.9K bytes
    - Viewed (0)
  9. plugin/pkg/admission/podtolerationrestriction/admission_test.go

    func TestPodAdmission(t *testing.T) {
    
    	CPU1000m := resource.MustParse("1000m")
    	CPU500m := resource.MustParse("500m")
    
    	burstablePod := &api.Pod{
    		ObjectMeta: metav1.ObjectMeta{Name: "testPod", Namespace: "testNamespace"},
    		Spec: api.PodSpec{
    			Containers: []api.Container{
    				{
    					Name: "test",
    					Resources: api.ResourceRequirements{
    						Limits:   api.ResourceList{api.ResourceCPU: CPU1000m},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 16K bytes
    - Viewed (0)
  10. pkg/controller/resourceclaim/controller_test.go

    )
    
    var (
    	testPodName          = "test-pod"
    	testNamespace        = "my-namespace"
    	testPodUID           = types.UID("uidpod1")
    	otherNamespace       = "not-my-namespace"
    	podResourceClaimName = "acme-resource"
    	templateName         = "my-template"
    	className            = "my-resource-class"
    	nodeName             = "worker"
    
    	testPod             = makePod(testPodName, testNamespace, testPodUID)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 08:56:16 UTC 2024
    - 28.2K bytes
    - Viewed (0)
Back to top