Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for NamespaceName (0.16 sec)

  1. pkg/test/framework/components/echo/match/matchers.go

    			}
    		}
    		return false
    	}
    }
    
    // Namespace matches instances within the given namespace name.
    func Namespace(n namespace.Instance) Matcher {
    	return NamespaceName(n.Name())
    }
    
    // NamespaceName matches instances within the given namespace name.
    func NamespaceName(ns string) Matcher {
    	return func(i echo.Instance) bool {
    		return i.Config().Namespace.Name() == ns
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. plugin/pkg/admission/podnodeselector/admission.go

    	}
    
    	return nil
    }
    
    func (p *Plugin) getNamespaceNodeSelectorMap(namespaceName string) (labels.Set, error) {
    	namespace, err := p.namespaceLister.Get(namespaceName)
    	if errors.IsNotFound(err) {
    		namespace, err = p.defaultGetNamespace(namespaceName)
    		if err != nil {
    			if errors.IsNotFound(err) {
    				return nil, err
    			}
    			return nil, errors.NewInternalError(err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  3. pkg/test/framework/components/echo/instances.go

    type Instances []Instance
    
    func (i Instances) ServiceName() string {
    	return i.Config().Service
    }
    
    func (i Instances) NamespaceName() string {
    	return i.Config().NamespaceName()
    }
    
    func (i Instances) ServiceAccountName() string {
    	return i.Config().ServiceAccountName()
    }
    
    func (i Instances) ClusterLocalFQDN() string {
    	return i.Config().ClusterLocalFQDN()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 25 18:26:17 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. pkg/test/framework/components/echo/match/matchers_test.go

    	cfg := echo.Config(f)
    	_ = cfg.FillDefaults(nil)
    	return cfg
    }
    
    func (f fakeInstance) ServiceName() string {
    	return f.Config().Service
    }
    
    func (f fakeInstance) NamespaceName() string {
    	return f.Config().NamespaceName()
    }
    
    func (f fakeInstance) ServiceAccountName() string {
    	return f.Config().ServiceAccountName()
    }
    
    func (f fakeInstance) ClusterLocalFQDN() string {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/quota/v1/resources.go

    	return result
    }
    
    // CalculateUsage calculates and returns the requested ResourceList usage.
    // If an error is returned, usage only contains the resources which encountered no calculation errors.
    func CalculateUsage(namespaceName string, scopes []corev1.ResourceQuotaScope, hardLimits corev1.ResourceList, registry Registry, scopeSelector *corev1.ScopeSelector) (corev1.ResourceList, error) {
    	// find the intersection between the hard resources on the quota
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 06 23:11:22 UTC 2021
    - 8.7K bytes
    - Viewed (0)
  6. tests/integration/security/cacert_rotation/main_test.go

    	podID, err := getPodID(i)
    	if err != nil {
    		t.Fatalf("Could not get Pod ID: %v", err)
    	}
    	podName := fmt.Sprintf("%s.%s", podID, i.NamespaceName())
    	out, errOut, err := ctl.Invoke([]string{"pc", "s", podName, "-o", "json"})
    	if err != nil || errOut != "" {
    		t.Errorf("failed to retrieve pod secret from %s, err: %v errOut: %s", podName, err, errOut)
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top