Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 6,087 for namespace1 (1.49 sec)

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

    	b := newDefaultBuilderWith(fakeClientWith("", t, map[string]string{
    		"/namespaces/test/pods/foo":     runtime.EncodeOrDie(corev1Codec, &pods.Items[0]),
    		"/namespaces/test/pods/baz":     runtime.EncodeOrDie(corev1Codec, &pods.Items[1]),
    		"/namespaces/test/services/foo": runtime.EncodeOrDie(corev1Codec, &svcs.Items[0]),
    		"/namespaces/test/services/baz": runtime.EncodeOrDie(corev1Codec, &svcs.Items[0]),
    	})).
    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. staging/src/k8s.io/cli-runtime/pkg/resource/visitor.go

    		}
    		if len(info.Namespace) == 0 {
    			info.Namespace = namespace
    			UpdateObjectNamespace(info, nil)
    			return nil
    		}
    		if info.Namespace != namespace {
    			return fmt.Errorf("the namespace from the provided object %q does not match the namespace %q. You must pass '--namespace=%s' to perform this operation.", info.Namespace, namespace, info.Namespace)
    		}
    		return nil
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 10:17:56 UTC 2023
    - 21.3K bytes
    - Viewed (0)
  3. pkg/config/analysis/analyzers/util/hosts_test.go

    	// FQDN, cross namespace, all namespaces scope
    	g.Expect(NewScopedFqdn("*", "other", "foo.default.svc.cluster.local")).To(Equal(ScopedFqdn("*/foo.default.svc.cluster.local")))
    
    	// short name, same namespace, local scope
    	g.Expect(NewScopedFqdn("default", "default", "foo")).To(Equal(ScopedFqdn("default/foo.default.svc.cluster.local")))
    	// short name, same namespace, all namespaces scope
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/ops/gen/cpp/renderers/namespace_renderer.cc

           it != context_.cpp_config.namespaces.rend(); ++it) {
        CodeLine("}  // namespace " + *it);
      }
    }
    
    }  // namespace cpp
    }  // namespace generator
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 05:51:40 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. pilot/pkg/config/kube/gateway/controller.go

    		c.state = IstioResources{}
    		return nil
    	}
    
    	nsl := c.namespaces.List("", klabels.Everything())
    	namespaces := make(map[string]*corev1.Namespace, len(nsl))
    	for _, ns := range nsl {
    		namespaces[ns.Name] = ns
    	}
    	input.Namespaces = namespaces
    
    	if c.credentialsController != nil {
    		credentials, err := c.credentialsController.ForCluster(c.cluster)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 05:26:03 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  6. plugin/pkg/admission/namespace/autoprovision/admission_test.go

    		t.Errorf("unexpected create namespace action")
    	}
    }
    
    func TestAdmissionWithLatentCache(t *testing.T) {
    	namespace := "test"
    	mockClient := newMockClientForTest([]string{})
    	mockClient.AddReactor("create", "namespaces", func(action core.Action) (bool, runtime.Object, error) {
    		return true, nil, errors.NewAlreadyExists(api.Resource("namespaces"), namespace)
    	})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  7. pkg/client/tests/fake_client_test.go

    		testNamespace("nsA"),
    		testPod("nsA", "pod-1"),
    	)
    
    	_, err := tc.CoreV1().Namespaces().Create(context.TODO(), testNamespace("nsB"), metav1.CreateOptions{})
    	if err != nil {
    		t.Fatalf("Namespaces.Create: %s", err)
    	}
    
    	allNS, err := tc.CoreV1().Namespaces().List(context.TODO(), metav1.ListOptions{})
    	if err != nil {
    		t.Fatalf("Namespaces.List: %s", err)
    	}
    	if actual, expected := len(allNS.Items), 2; expected != actual {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Feb 08 17:30:21 UTC 2020
    - 5.6K bytes
    - Viewed (0)
  8. pkg/controlplane/controller/systemnamespaces/system_namespaces_controller_test.go

    				{"create", "namespaces"},
    				{"create", "namespaces"},
    				{"create", "namespaces"},
    				{"create", "namespaces"},
    			},
    		},
    		{
    			name:       "one system namespace",
    			namespaces: []string{metav1.NamespaceSystem},
    			actions: [][]string{
    				{"create", "namespaces"},
    				{"create", "namespaces"},
    				{"create", "namespaces"},
    			},
    		},
    		{
    			name:       "two system namespaces",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 12:19:56 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. pkg/registry/core/namespace/storage/storage_test.go

    	}
    	actual := object.(*api.Namespace)
    	if actual.Name != namespace.Name {
    		t.Errorf("unexpected namespace: %#v", actual)
    	}
    	if len(actual.UID) == 0 {
    		t.Errorf("expected namespace UID to be set: %#v", actual)
    	}
    	if actual.Status.Phase != api.NamespaceActive {
    		t.Errorf("expected namespace phase to be set to active, but %v", actual.Status.Phase)
    	}
    }
    
    func TestDelete(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 17 05:13:34 UTC 2022
    - 19.8K bytes
    - Viewed (0)
  10. pkg/controlplane/controller/systemnamespaces/system_namespaces_controller.go

    		// the namespace already exists
    		return nil
    	}
    	newNs := &v1.Namespace{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      ns,
    			Namespace: "",
    		},
    	}
    	_, err := c.client.CoreV1().Namespaces().Create(context.TODO(), newNs, metav1.CreateOptions{})
    	if err != nil && errors.IsAlreadyExists(err) {
    		err = nil
    	}
    	return err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 12:19:56 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top