Skip to content

Commit

Permalink
Merge branch 'master' into LintFixes
Browse files Browse the repository at this point in the history
  • Loading branch information
asifdxtreme authored Jun 17, 2019
2 parents 5ecbd07 + 09dcb12 commit 4b7a137
Show file tree
Hide file tree
Showing 18 changed files with 147 additions and 41 deletions.
4 changes: 2 additions & 2 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Some examples of the mechanisms and features that Volcano adds to Kubernetes are
2. Fair-share scheduling
3. Queue scheduling
4. Preemption and reclaims
5. Reservartions and backfills
5. Reservations and backfills
6. Topology-based scheduling
3. Runtime extensions, e.g:
1. Support for specialized continer runtimes like Singularity,
Expand Down
2 changes: 1 addition & 1 deletion docs/design/drf - fairshare.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,5 +175,5 @@ All these plugin would choose some victims respective, and the intersection of t
| queue | namespace | requested | queue assigned | namespace assigned |
| ----- | --------- | --------- | -------------- | ------------------ |
| q1 w1 | ns1 w2 | | 4 cpu | |
| q2 w3 | na1 w2 | 5 cpu | 12 cpu | 3 cpu |
| q2 w3 | ns1 w2 | 5 cpu | 12 cpu | 3 cpu |
| | ns2 w6 | 20 cpu | | 9 cpu |
2 changes: 1 addition & 1 deletion hack/update-gencode.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# Copyright 2019 The Volcano Authors.
# Copyright 2014 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
14 changes: 14 additions & 0 deletions hack/verify-gofmt.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
#!/bin/bash

# Copyright 2014 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

set -o errexit
set -o nounset
set -o pipefail
Expand Down
14 changes: 14 additions & 0 deletions hack/verify-golint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
#!/bin/bash

# Copyright 2014 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

set -o errexit
set -o nounset
set -o pipefail
Expand Down
3 changes: 2 additions & 1 deletion pkg/cli/job/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package job

import (
"fmt"

"github.com/spf13/cobra"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down Expand Up @@ -50,7 +51,7 @@ func DeleteJob() error {
}

if deleteJobFlags.JobName == "" {
err := fmt.Errorf("job name is mandaorty to delete a particular job")
err := fmt.Errorf("job name is mandatory to delete a particular job")
return err
}

Expand Down
3 changes: 2 additions & 1 deletion pkg/cli/job/resume.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package job

import (
"fmt"

"github.com/spf13/cobra"

"volcano.sh/volcano/pkg/apis/batch/v1alpha1"
Expand Down Expand Up @@ -47,7 +48,7 @@ func ResumeJob() error {
return err
}
if resumeJobFlags.JobName == "" {
err := fmt.Errorf("job name is mandaorty to resume a particular job")
err := fmt.Errorf("job name is mandatory to resume a particular job")
return err
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/job/suspend.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func SuspendJob() error {
}

if suspendJobFlags.JobName == "" {
err := fmt.Errorf("job name is mandaorty to suspend a particular job")
err := fmt.Errorf("job name is mandatory to suspend a particular job")
return err
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/job/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func ViewJob() error {
return err
}
if viewJobFlags.JobName == "" {
err := fmt.Errorf("job name (specified by --name or -n) is mandaorty to view a particular job")
err := fmt.Errorf("job name (specified by --name or -n) is mandatory to view a particular job")
return err
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/queue/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func GetQueue() error {
}

if getQueueFlags.Name == "" {
err := fmt.Errorf("name is mandaorty to get the particular queue details")
err := fmt.Errorf("name is mandatory to get the particular queue details")
return err
}

Expand Down
2 changes: 2 additions & 0 deletions pkg/cli/queue/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import (

"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
// Initialize client auth plugin.
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
)

func homeDir() string {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ func jobUnschedulable(ctx *context, job *vkv1.Job, now time.Time) error {
for _, event := range events.Items {
target := event.InvolvedObject
if strings.HasPrefix(target.Name, pg.Name) && target.Namespace == pg.Namespace {
if event.Reason == string("Unschedulable") && event.LastTimestamp.After(now) {
if event.Reason == string("Unschedulable") || event.Reason == string("FailedScheduling") && event.LastTimestamp.After(now) {
return true, nil
}
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4b7a137

Please sign in to comment.