Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for nameMatches (0.22 sec)

  1. operator/cmd/mesh/test-util_test.go

    	o.objMap[h] = obj
    	o.keySlice = append(o.keySlice, h)
    }
    
    // size reports the length of o.
    func (o *ObjectSet) size() int {
    	return len(o.keySlice)
    }
    
    // nameMatches returns a subset of o where objects names match the given regex.
    func (o *ObjectSet) nameMatches(nameRegex string) *ObjectSet {
    	ret := &ObjectSet{}
    	for k, v := range o.objMap {
    		_, _, objName := object.FromHash(k)
    		m, err := regexp.MatchString(nameRegex, objName)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  2. operator/cmd/mesh/manifest-generate_test.go

    		g.Expect(objs.kind(name.ServiceStr).labels("istio=ingressgateway").size()).Should(Equal(3))
    		g.Expect(objs.kind(name.RoleStr).nameMatches(".*gateway.*").size()).Should(Equal(3))
    		g.Expect(objs.kind(name.RoleBindingStr).nameMatches(".*gateway.*").size()).Should(Equal(3))
    		g.Expect(objs.kind(name.SAStr).nameMatches(".*gateway.*").size()).Should(Equal(3))
    
    		dobj := mustGetDeployment(g, objs, "istio-ingressgateway")
    		d := dobj.Unstructured()
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
Back to top