Skip to content

Commit

Permalink
fixed go get
Browse files Browse the repository at this point in the history
  • Loading branch information
sbueringer committed Sep 14, 2018
1 parent cc36fa2 commit b03e629
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ before_script:
- sudo apt-get install moreutils -y

script:
- bazel build //cmd:cmd
- bazel build //cmd/kubectl-os:kubectl-os
#TODO enable again- go test -race -coverprofile=coverage.txt -covermode=atomic

cache:
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@

[![Travis](https://img.shields.io/travis/sbueringer/kubectl-openstack-plugin.svg)](https://travis-ci.org/sbueringer/kubectl-openstack-plugin)[![Codecov](https://img.shields.io/codecov/c/github/sbueringer/kubectl-openstack-plugin.svg)](https://codecov.io/gh/sbueringer/kubectl-openstack-plugin)[![CodeFactor](https://www.codefactor.io/repository/github/sbueringer/kubectl-openstack-plugin/badge)](https://www.codefactor.io/repository/github/sbueringer/kubectl-openstack-plugin)[![GoReportCard](https://goreportcard.com/badge/github.com/sbueringer/kubectl-openstack-plugin?style=plastic)](https://goreportcard.com/report/github.com/sbueringer/kubectl-openstack-plugin)[![GitHub release](https://img.shields.io/github/release/sbueringer/kubectl-openstack-plugin.svg)](https://github.com/sbueringer/kubectl-openstack-plugin/releases)

based on https://github.com/kubernetes/kubernetes/tree/master/staging/src/k8s.io/sample-cli-plugin
based on [k8s.io/sample-cli-plugin](https://github.com/kubernetes/kubernetes/tree/master/staging/src/k8s.io/sample-cli-plugin)

# Installation



TODO:
* enable output via go template like json path (from both openstack & kube object)
Expand Down
4 changes: 2 additions & 2 deletions cmd/BUILD.bazel → cmd/kubectl-os/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "go_default_library",
srcs = ["kubectl-os.go"],
importpath = "github.com/sbueringer/kubectl-openstack-plugin/cmd",
importpath = "github.com/sbueringer/kubectl-openstack-plugin/cmd/kubectl-os",
visibility = ["//visibility:private"],
deps = [
"//pkg/cmd:go_default_library",
Expand All @@ -12,7 +12,7 @@ go_library(
)

go_binary(
name = "cmd",
name = "kubectl-os",
embed = [":go_default_library"],
pure = "on",
visibility = ["//visibility:public"],
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ then
fi

bazel run //:gazelle
bazel run //cmd:cmd -- "$@"
bazel run //cmd/kubectl-os:kubectl-os -- "$@"

0 comments on commit b03e629

Please sign in to comment.