// GetK8sRootDir returns the root directory for kubernetes, if present in the gopath. func GetK8sRootDir() (string, error) { … } // GetCAdvisorRootDir returns the root directory for cAdvisor, if present in the gopath. func GetCAdvisorRootDir() (string, error) { … } // RootDir gets the on-disk kubernetes source directory, returning an error is none is found func RootDir() (string, error) { … } // GetK8sBuildOutputDir returns the build output directory for k8s // For dockerized build, targetArch (eg: 'linux/arm64', 'linux/amd64') must be explicitly specified // For non dockerized build, targetArch is ignored func GetK8sBuildOutputDir(isDockerizedBuild bool, targetArch string) (string, error) { … }