Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Grim (0.15 sec)

  1. cni/pkg/plugin/plugin_dryrun_test.go

    	parts := strings.Split(string(b), "COMMIT")
    	tables := make(map[string]string)
    	for _, table := range parts {
    		// If table is not empty, get table name from the first line
    		lines := strings.Split(strings.Trim(table, "\n"), "\n")
    		if len(lines) >= 1 && strings.HasPrefix(lines[0], "* ") {
    			tableName := lines[0][2:]
    			lines = append(lines, "COMMIT")
    			tables[tableName] = strings.Join(lines, "\n")
    		}
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  2. cni/pkg/repair/repair_test.go

    		podmap[pod.Name] = ""
    		for key, value := range pod.Labels {
    			podmap[pod.Name] = strings.Join([]string{podmap[pod.Name], fmt.Sprintf("%s=%s", key, value)}, ",")
    		}
    		podmap[pod.Name] = strings.Trim(podmap[pod.Name], " ,")
    	}
    	return
    }
    
    func TestLabelPods(t *testing.T) {
    	tests := []struct {
    		name       string
    		client     kube.Client
    		config     config.RepairConfig
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 24 03:31:28 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  3. istioctl/pkg/validate/validate_test.go

    			}
    		})
    	}
    }
    
    func buildMultiDocConfig(docs []string) string {
    	var b strings.Builder
    	for _, r := range docs {
    		if r != "" {
    			b.WriteString(strings.Trim(r, " \t\n"))
    		}
    		b.WriteString("\n---\n")
    	}
    	return b.String()
    }
    
    func createTestFile(t *testing.T, data string) (string, io.Closer) {
    	t.Helper()
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jul 25 08:08:36 GMT 2023
    - 21.5K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/podcgroupns.go

    	// - /../../pod2c48913c-b29f-11e7-9350-020968147796/9bca8d63d5fa610783847915bcff0ecac1273e5b4bed3f6fa1b07350e0135961
    	// - 0::/../crio-45490e76e0878aaa4d9808f7d2eefba37f093c3efbba9838b6d8ab804d9bd814.scope
    	// First trim off any .scope suffix. This allows for a cleaner regex since
    	// we don't have to muck with greediness. TrimSuffix is no-copy so this
    	// is cheap.
    	cgroupPath = strings.TrimSuffix(cgroupPath, ".scope")
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 11K bytes
    - Viewed (0)
Back to top