- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for test_namespace (0.27 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
cmd/kubeadm/app/util/marshal_test.go
if !ok { t.Fatal("did not get a Pod") } if pod2.Name != "someName" { t.Errorf("expected someName, got %q", pod2.Name) } if pod2.Namespace != "testNamespace" { t.Errorf("expected testNamespace, got %q", pod2.Namespace) } if !reflect.DeepEqual(pod2.Labels, map[string]string{"test": "yes"}) { t.Errorf("expected [test:yes], got %v", pod2.Labels) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 29 05:14:21 UTC 2024 - 11.6K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/framework_test.go
// won't have them in its cache). const annSkipLocalStore = "pv-testing-skip-local-store" type testCall func(ctrl *PersistentVolumeController, reactor *pvtesting.VolumeReactor, test controllerTest) error const testNamespace = "default" const mockPluginName = "kubernetes.io/mock-volume" var novolumes []*v1.PersistentVolume var noclaims []*v1.PersistentVolumeClaim var noevents = []string{} var noerrors = []pvtesting.ReactorError{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 01 09:54:00 UTC 2023 - 38.3K bytes - Viewed (0)