Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
0ea5904c
Commit
0ea5904c
authored
Oct 24, 2016
by
Mike Danese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename test/e2e_node/build/ to builder/
parent
27116c68
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
12 deletions
+12
-12
BUILD
test/e2e_node/builder/BUILD
+0
-0
build.go
test/e2e_node/builder/build.go
+1
-1
remote.go
test/e2e_node/remote/remote.go
+5
-5
run_local.go
test/e2e_node/runner/local/run_local.go
+3
-3
services.go
test/e2e_node/services/services.go
+3
-3
No files found.
test/e2e_node/build/BUILD
→
test/e2e_node/build
er
/BUILD
View file @
0ea5904c
File moved
test/e2e_node/build/build.go
→
test/e2e_node/build
er
/build.go
View file @
0ea5904c
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
package
build
package
build
er
import
(
import
(
"flag"
"flag"
...
...
test/e2e_node/remote/remote.go
View file @
0ea5904c
...
@@ -31,7 +31,7 @@ import (
...
@@ -31,7 +31,7 @@ import (
"github.com/golang/glog"
"github.com/golang/glog"
utilerrors
"k8s.io/kubernetes/pkg/util/errors"
utilerrors
"k8s.io/kubernetes/pkg/util/errors"
"k8s.io/kubernetes/test/e2e_node/build"
"k8s.io/kubernetes/test/e2e_node/build
er
"
)
)
var
sshOptions
=
flag
.
String
(
"ssh-options"
,
""
,
"Commandline options passed to ssh."
)
var
sshOptions
=
flag
.
String
(
"ssh-options"
,
""
,
"Commandline options passed to ssh."
)
...
@@ -83,12 +83,12 @@ func GetHostnameOrIp(hostname string) string {
...
@@ -83,12 +83,12 @@ func GetHostnameOrIp(hostname string) string {
// the binaries k8s required for node e2e tests
// the binaries k8s required for node e2e tests
func
CreateTestArchive
()
(
string
,
error
)
{
func
CreateTestArchive
()
(
string
,
error
)
{
// Build the executables
// Build the executables
if
err
:=
build
.
BuildGo
();
err
!=
nil
{
if
err
:=
build
er
.
BuildGo
();
err
!=
nil
{
return
""
,
fmt
.
Errorf
(
"failed to build the depedencies: %v"
,
err
)
return
""
,
fmt
.
Errorf
(
"failed to build the depedencies: %v"
,
err
)
}
}
// Make sure we can find the newly built binaries
// Make sure we can find the newly built binaries
buildOutputDir
,
err
:=
build
.
GetK8sBuildOutputDir
()
buildOutputDir
,
err
:=
build
er
.
GetK8sBuildOutputDir
()
if
err
!=
nil
{
if
err
!=
nil
{
return
""
,
fmt
.
Errorf
(
"failed to locate kubernetes build output directory %v"
,
err
)
return
""
,
fmt
.
Errorf
(
"failed to locate kubernetes build output directory %v"
,
err
)
}
}
...
@@ -114,7 +114,7 @@ func CreateTestArchive() (string, error) {
...
@@ -114,7 +114,7 @@ func CreateTestArchive() (string, error) {
}
}
// Include the GCI mounter in the deployed tarball
// Include the GCI mounter in the deployed tarball
k8sDir
,
err
:=
build
.
GetK8sRootDir
()
k8sDir
,
err
:=
build
er
.
GetK8sRootDir
()
if
err
!=
nil
{
if
err
!=
nil
{
return
""
,
fmt
.
Errorf
(
"Could not find K8s root dir! Err: %v"
,
err
)
return
""
,
fmt
.
Errorf
(
"Could not find K8s root dir! Err: %v"
,
err
)
}
}
...
@@ -244,7 +244,7 @@ func RunRemote(archive string, host string, cleanup bool, junitFilePrefix string
...
@@ -244,7 +244,7 @@ func RunRemote(archive string, host string, cleanup bool, junitFilePrefix string
// We do this here because the local var `tmp` tells us which /tmp/gcloud-e2e-%d is relevant to the current test run.
// We do this here because the local var `tmp` tells us which /tmp/gcloud-e2e-%d is relevant to the current test run.
// Determine if the GCI mounter script exists locally.
// Determine if the GCI mounter script exists locally.
k8sDir
,
err
:=
build
.
GetK8sRootDir
()
k8sDir
,
err
:=
build
er
.
GetK8sRootDir
()
if
err
!=
nil
{
if
err
!=
nil
{
return
""
,
false
,
fmt
.
Errorf
(
"Could not find K8s root dir! Err: %v"
,
err
)
return
""
,
false
,
fmt
.
Errorf
(
"Could not find K8s root dir! Err: %v"
,
err
)
}
}
...
...
test/e2e_node/runner/local/run_local.go
View file @
0ea5904c
...
@@ -23,7 +23,7 @@ import (
...
@@ -23,7 +23,7 @@ import (
"path/filepath"
"path/filepath"
"strings"
"strings"
"k8s.io/kubernetes/test/e2e_node/build"
"k8s.io/kubernetes/test/e2e_node/build
er
"
"github.com/golang/glog"
"github.com/golang/glog"
)
)
...
@@ -37,13 +37,13 @@ func main() {
...
@@ -37,13 +37,13 @@ func main() {
// Build dependencies - ginkgo, kubelet and apiserver.
// Build dependencies - ginkgo, kubelet and apiserver.
if
*
buildDependencies
{
if
*
buildDependencies
{
if
err
:=
build
.
BuildGo
();
err
!=
nil
{
if
err
:=
build
er
.
BuildGo
();
err
!=
nil
{
glog
.
Fatalf
(
"Failed to build the dependencies: %v"
,
err
)
glog
.
Fatalf
(
"Failed to build the dependencies: %v"
,
err
)
}
}
}
}
// Run node e2e test
// Run node e2e test
outputDir
,
err
:=
build
.
GetK8sBuildOutputDir
()
outputDir
,
err
:=
build
er
.
GetK8sBuildOutputDir
()
if
err
!=
nil
{
if
err
!=
nil
{
glog
.
Fatalf
(
"Failed to get build output directory: %v"
,
err
)
glog
.
Fatalf
(
"Failed to get build output directory: %v"
,
err
)
}
}
...
...
test/e2e_node/services/services.go
View file @
0ea5904c
...
@@ -31,7 +31,7 @@ import (
...
@@ -31,7 +31,7 @@ import (
utilconfig
"k8s.io/kubernetes/pkg/util/config"
utilconfig
"k8s.io/kubernetes/pkg/util/config"
"k8s.io/kubernetes/test/e2e/framework"
"k8s.io/kubernetes/test/e2e/framework"
"k8s.io/kubernetes/test/e2e_node/build"
"k8s.io/kubernetes/test/e2e_node/build
er
"
)
)
// E2EServices starts and stops e2e services in a separate process. The test
// E2EServices starts and stops e2e services in a separate process. The test
...
@@ -179,7 +179,7 @@ func (e *E2EServices) startKubelet() (*server, error) {
...
@@ -179,7 +179,7 @@ func (e *E2EServices) startKubelet() (*server, error) {
// Since kubelet will typically be run as a service it also makes more
// Since kubelet will typically be run as a service it also makes more
// sense to test it that way
// sense to test it that way
unitName
:=
fmt
.
Sprintf
(
"kubelet-%d.service"
,
rand
.
Int31
())
unitName
:=
fmt
.
Sprintf
(
"kubelet-%d.service"
,
rand
.
Int31
())
cmdArgs
=
append
(
cmdArgs
,
systemdRun
,
"--unit="
+
unitName
,
"--remain-after-exit"
,
build
.
GetKubeletServerBin
())
cmdArgs
=
append
(
cmdArgs
,
systemdRun
,
"--unit="
+
unitName
,
"--remain-after-exit"
,
build
er
.
GetKubeletServerBin
())
killCommand
=
exec
.
Command
(
"sudo"
,
"systemctl"
,
"kill"
,
unitName
)
killCommand
=
exec
.
Command
(
"sudo"
,
"systemctl"
,
"kill"
,
unitName
)
restartCommand
=
exec
.
Command
(
"sudo"
,
"systemctl"
,
"restart"
,
unitName
)
restartCommand
=
exec
.
Command
(
"sudo"
,
"systemctl"
,
"restart"
,
unitName
)
e
.
logFiles
[
"kubelet.log"
]
=
logFileData
{
e
.
logFiles
[
"kubelet.log"
]
=
logFileData
{
...
@@ -187,7 +187,7 @@ func (e *E2EServices) startKubelet() (*server, error) {
...
@@ -187,7 +187,7 @@ func (e *E2EServices) startKubelet() (*server, error) {
}
}
framework
.
TestContext
.
EvictionHard
=
adjustConfigForSystemd
(
framework
.
TestContext
.
EvictionHard
)
framework
.
TestContext
.
EvictionHard
=
adjustConfigForSystemd
(
framework
.
TestContext
.
EvictionHard
)
}
else
{
}
else
{
cmdArgs
=
append
(
cmdArgs
,
build
.
GetKubeletServerBin
())
cmdArgs
=
append
(
cmdArgs
,
build
er
.
GetKubeletServerBin
())
cmdArgs
=
append
(
cmdArgs
,
cmdArgs
=
append
(
cmdArgs
,
"--runtime-cgroups=/docker-daemon"
,
"--runtime-cgroups=/docker-daemon"
,
"--kubelet-cgroups=/kubelet"
,
"--kubelet-cgroups=/kubelet"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment