Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,489 for nameslice (0.27 sec)

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

    			return nil
    		}
    		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)
  2. pkg/apis/rbac/validation/validation_test.go

    			F: "roleRef.kind",
    		},
    		"zero-length namespace": {
    			A: rbac.RoleBinding{
    				ObjectMeta: metav1.ObjectMeta{Name: "default"},
    				RoleRef:    rbac.RoleRef{APIGroup: rbac.GroupName, Kind: "Role", Name: "valid"},
    			},
    			T: field.ErrorTypeRequired,
    			F: "metadata.namespace",
    		},
    		"zero-length name": {
    			A: rbac.RoleBinding{
    				ObjectMeta: metav1.ObjectMeta{Namespace: metav1.NamespaceDefault},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 07:48:42 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  3. plugin/pkg/auth/authorizer/node/graph.go

    // namedVertex implements graph.Node and remembers the type, namespace, and name of its related API object
    type namedVertex struct {
    	name       string
    	namespace  string
    	id         int
    	vertexType vertexType
    }
    
    func newNamedVertex(vertexType vertexType, namespace, name string, id int) *namedVertex {
    	return &namedVertex{
    		vertexType: vertexType,
    		name:       name,
    		namespace:  namespace,
    		id:         id,
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  4. pkg/test/framework/components/echo/config.go

    )
    
    // Config defines the options for creating an Echo component.
    // nolint: maligned
    type Config struct {
    	// Namespace of the echo Instance. If not provided, a default namespace "apps" is used.
    	Namespace namespace.Instance
    
    	// DefaultHostHeader overrides the default Host header for calls (`service.namespace.svc.cluster.local`)
    	DefaultHostHeader string
    
    	// Domain of the echo Instance. If not provided, a default will be selected.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 12:26:52 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  5. pkg/serviceaccount/claims_test.go

    	sa := core.ServiceAccount{
    		ObjectMeta: metav1.ObjectMeta{
    			Namespace: "myns",
    			Name:      "mysvcacct",
    			UID:       "mysvcacct-uid",
    		},
    	}
    	pod := &core.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Namespace: "myns",
    			Name:      "mypod",
    			UID:       "mypod-uid",
    		},
    	}
    	sec := &core.Secret{
    		ObjectMeta: metav1.ObjectMeta{
    			Namespace: "myns",
    			Name:      "mysecret",
    			UID:       "mysecret-uid",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  6. pkg/registry/core/namespace/storage/storage.go

    		PredicateFunc:             namespace.MatchNamespace,
    		DefaultQualifiedResource:  api.Resource("namespaces"),
    		SingularQualifiedResource: api.Resource("namespace"),
    
    		CreateStrategy:      namespace.Strategy,
    		UpdateStrategy:      namespace.Strategy,
    		DeleteStrategy:      namespace.Strategy,
    		ResetFieldsStrategy: namespace.Strategy,
    		ReturnDeletedObject: true,
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:19 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  7. pkg/controller/serviceaccount/tokens_controller.go

    		retry, err = e.deleteTokens(sa)
    		if err != nil {
    			logger.Error(err, "Error deleting serviceaccount tokens", "namespace", saInfo.namespace, "serviceaccount", saInfo.name)
    		}
    	}
    }
    
    func (e *TokensController) syncSecret(ctx context.Context) {
    	key, quit := e.syncSecretQueue.Get()
    	if quit {
    		return
    	}
    	defer e.syncSecretQueue.Done(key)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/kube/controller/ambient/waypoints.go

    	}
    
    	// try fetching the namespace-defined waypoint
    	namespace := ptr.OrEmpty[*v1.Namespace](krt.FetchOne[*v1.Namespace](ctx, Namespaces, krt.FilterKey(o.Namespace)))
    	// this probably should never be nil. How would o exist in a namespace we know nothing about? maybe edge case of starting the controller or ns delete?
    	if namespace != nil {
    		// toss isNone, we don't need to know /why/ we got nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 18:02:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  9. pkg/kube/kclient/client.go

    }
    
    // keyFunc is the internal API key function that returns "namespace"/"name" or
    // "name" if "namespace" is empty
    func keyFunc(name, namespace string) string {
    	if len(namespace) == 0 {
    		return name
    	}
    	return namespace + "/" + name
    }
    
    func ToOpts(c kube.Client, gvr schema.GroupVersionResource, filter Filter) kubetypes.InformerOptions {
    	ns := filter.Namespace
    	if !istiogvr.IsClusterScoped(gvr) && ns == "" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 07:14:28 UTC 2024
    - 13K bytes
    - Viewed (0)
  10. pilot/pkg/credentials/kube/secrets_test.go

    			name:            "tls-mtls-split-crl",
    			namespace:       "default",
    			cert:            "tls-mtls-split-crl-cert",
    			key:             "tls-mtls-split-crl-key",
    			expectedCAError: "found secret, but didn't have expected keys cacert or ca.crt; found: tls.crt, tls.key",
    		},
    		{
    			name:            "generic",
    			namespace:       "wrong-namespace",
    			expectedError:   `secret wrong-namespace/generic not found`,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 19:18:21 UTC 2024
    - 18.4K bytes
    - Viewed (0)
Back to top