Skip to content

Commit

Permalink
Merge branch 'master' of github.com:k8sdb/cli into rbac
Browse files Browse the repository at this point in the history
# Conflicts:
#	glide.lock
#	pkg/describer/k8sdb_describer.go
#	pkg/printer/resource_printer.go
#	vendor/github.com/k8sdb/apimachinery/api/helpers.go
#	vendor/github.com/k8sdb/apimachinery/pkg/storage/osm.go
#	vendor/k8s.io/kubernetes/pkg/version/base.go
  • Loading branch information
shahriar committed Jul 7, 2017
2 parents ea96e05 + 920d083 commit a018aad
Show file tree
Hide file tree
Showing 19 changed files with 7 additions and 3,200 deletions.
9 changes: 1 addition & 8 deletions glide.lock

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

6 changes: 3 additions & 3 deletions pkg/describer/k8sdb_describer.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,13 +321,13 @@ func listSnapshots(snapshotList *tapi.SnapshotList, out io.Writer) {
fmt.Fprint(w, " Name\tBucket\tStartTime\tCompletionTime\tPhase\n")
fmt.Fprint(w, " ----\t------\t---------\t--------------\t-----\n")
for _, e := range snapshotList.Items {
container, err := e.Spec.SnapshotStorageSpec.Location()
location, err := e.Spec.SnapshotStorageSpec.Location()
if err != nil {
container = statusUnknown
location = "<invalid>"
}
fmt.Fprintf(w, " %s\t%s\t%s\t%s\t%s\n",
e.Name,
container,
location,
timeToString(e.Status.StartTime),
timeToString(e.Status.CompletionTime),
e.Status.Phase,
Expand Down
6 changes: 3 additions & 3 deletions pkg/printer/resource_printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,11 @@ func (h *HumanReadablePrinter) printSnapshot(item *tapi.Snapshot, w io.Writer, o
}

if options.Wide {
container, err := item.Spec.SnapshotStorageSpec.Location()
loc, err := item.Spec.SnapshotStorageSpec.Location()
if err != nil {
container = statusUnknown
loc = statusUnknown
}
if _, err := fmt.Fprintf(w, "%s\t", container); err != nil {
if _, err := fmt.Fprintf(w, "%s\t", loc); err != nil {
return err
}
}
Expand Down
19 changes: 0 additions & 19 deletions vendor/github.com/appscode/go/wait/doc.go

This file was deleted.

Loading

0 comments on commit a018aad

Please sign in to comment.