Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable test to fix kubectl skew tests #51137

Merged
merged 1 commit into from Aug 25, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions test/e2e/kubectl.go
Expand Up @@ -206,6 +206,17 @@ var _ = framework.KubeDescribe("Kubectl alpha client", func() {

It("should create a ScheduledJob", func() {
framework.SkipIfMissingResource(f.ClientPool, ScheduledJobGroupVersionResource, f.Namespace.Name)
serverVersion, err := c.Discovery().ServerVersion()
if err != nil {
framework.Failf("Failed to get server version: %v", err)
}
sv, err := utilversion.ParseSemantic(serverVersion.GitVersion)
if err != nil {
framework.Failf("Failed to parse server version: %v", err)
}
if !sv.LessThan(utilversion.MustParseSemantic("v1.8.0")) {
framework.Skipf("scheduledjob/v2alpha1 generator not supported on cluster starting in 1.8")
}

schedule := "*/5 * * * ?"
framework.RunKubectlOrDie("run", sjName, "--restart=OnFailure", "--generator=scheduledjob/v2alpha1",
Expand Down