Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 5,422 for nameslice (0.12 sec)

  1. staging/src/k8s.io/apimachinery/pkg/types/namespacedname.go

    	return struct {
    		Name      string `json:"name"`
    		Namespace string `json:"namespace,omitempty"`
    	}{
    		Name:      n.Name,
    		Namespace: n.Namespace,
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 10:47:59 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. plugin/pkg/admission/namespace/exists/admission_test.go

    		Spec: api.PodSpec{
    			Volumes:    []api.Volume{{Name: "vol"}},
    			Containers: []api.Container{{Name: "ctr", Image: "image"}},
    		},
    	}
    }
    
    // TestAdmissionNamespaceExists verifies pod is admitted only if namespace exists.
    func TestAdmissionNamespaceExists(t *testing.T) {
    	namespace := "test"
    	mockClient := newMockClientForTest([]string{namespace})
    	handler, informerFactory, err := newHandlerForTest(mockClient)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/namespace/matcher_test.go

    	"k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/namespace"
    )
    
    type fakeNamespaceLister struct {
    	namespaces map[string]*corev1.Namespace
    }
    
    func (f fakeNamespaceLister) List(selector labels.Selector) (ret []*corev1.Namespace, err error) {
    	return nil, nil
    }
    func (f fakeNamespaceLister) Get(name string) (*corev1.Namespace, error) {
    	ns, ok := f.namespaces[name]
    	if ok {
    		return ns, nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 26 00:41:14 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  4. pkg/test/framework/components/authz/server.go

    	"istio.io/istio/pkg/test/framework/components/namespace"
    	"istio.io/istio/pkg/test/framework/resource"
    )
    
    // Server for custom authz.
    type Server interface {
    	Namespace() namespace.Instance
    
    	// Providers returns the list of Provider instances.
    	Providers() []Provider
    }
    
    // New creates a new authz Server.
    func New(ctx resource.Context, ns namespace.Instance) (Server, error) {
    	return newKubeServer(ctx, ns)
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 14 23:39:05 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  5. pkg/config/analysis/analyzers/testdata/virtualservice_destinationhosts.yaml

      name: cross-namespace
      namespace: istio-system
    spec:
      hosts: [reviews]
      http:
        - route:
            - destination:
                # Should not generate error because the this host exists, just not in our namespace
                host: reviews.default.svc.cluster.local
    ---
    apiVersion: v1
    kind: Service
    metadata:
      name: details
      namespace: default
      annotations:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 21 21:37:53 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  6. plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/controller-role-bindings.yaml

      roleRef:
        apiGroup: rbac.authorization.k8s.io
        kind: ClusterRole
        name: system:controller:namespace-controller
      subjects:
      - kind: ServiceAccount
        name: namespace-controller
        namespace: kube-system
    - apiVersion: rbac.authorization.k8s.io/v1
      kind: ClusterRoleBinding
      metadata:
        annotations:
          rbac.authorization.kubernetes.io/autoupdate: "true"
        creationTimestamp: null
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  7. istioctl/pkg/cli/context_test.go

    	ns := handleNamespace("test", "default")
    	if ns != "test" {
    		t.Fatalf("Get the incorrect namespace: %q back", ns)
    	}
    
    	tests := []struct {
    		description      string
    		namespace        string
    		defaultNamespace string
    		wantNamespace    string
    	}{
    		{
    			description:      "return test namespace",
    			namespace:        "test",
    			defaultNamespace: "default",
    			wantNamespace:    "test",
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 09 18:17:49 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. pilot/pkg/model/push_context.go

    		ps.gatewayIndex.namespace = make(map[string][]config.Config)
    		for _, gatewayConfig := range gatewayConfigs {
    			if _, exists := ps.gatewayIndex.namespace[gatewayConfig.Namespace]; !exists {
    				ps.gatewayIndex.namespace[gatewayConfig.Namespace] = make([]config.Config, 0)
    			}
    			ps.gatewayIndex.namespace[gatewayConfig.Namespace] = append(ps.gatewayIndex.namespace[gatewayConfig.Namespace], gatewayConfig)
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 09:02:11 UTC 2024
    - 91.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/cli-runtime/pkg/resource/helper.go

    	return m
    }
    
    // Subresource sets the helper to access (<resource>/[ns/<namespace>/]<name>/<subresource>)
    func (m *Helper) WithSubresource(subresource string) *Helper {
    	m.Subresource = subresource
    	return m
    }
    
    func (m *Helper) Get(namespace, name string) (runtime.Object, error) {
    	req := m.RESTClient.Get().
    		NamespaceIfScoped(namespace, m.NamespaceScoped).
    		Resource(m.Resource).
    		Name(name).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 26 03:45:13 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  10. pkg/controlplane/reconcilers/endpointsadapter.go

    	}
    }
    
    // Get takes the name and namespace of the Endpoints resource, and returns a
    // corresponding Endpoints object if it exists, and an error if there is any.
    func (adapter *EndpointsAdapter) Get(namespace, name string, getOpts metav1.GetOptions) (*corev1.Endpoints, error) {
    	return adapter.endpointClient.Endpoints(namespace).Get(context.TODO(), name, getOpts)
    }
    
    // Create accepts a namespace and Endpoints object and creates the Endpoints
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 27 12:46:23 UTC 2022
    - 7.8K bytes
    - Viewed (0)
Back to top