Skip to content

Commit

Permalink
PR test2 (kube-burner#2)
Browse files Browse the repository at this point in the history
* Update travis-ci

Signed-off-by: Raul Sevilla <[email protected]>

* Update clean goal

Signed-off-by: Raul Sevilla <[email protected]>
  • Loading branch information
rsevilla87 authored Aug 18, 2020
1 parent 1a792d6 commit 56d52d3
Show file tree
Hide file tree
Showing 2,248 changed files with 852,387 additions and 74 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
*.test
*.out
bin
vendor
dist
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ go:
- 1.13
- 1.14
- 1.15
sript:
- make build

jobs:
include:
- stage: lint
script:
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.30.0
- make lint
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,11 @@ $(BIN_DIR)/$(BIN_NAME): $(SOURCES)
@echo "GOPATH=${GOPATH}"
CGO_ENABLED=$(CGO) go build -ldflags "-X github.com/rsevilla87/kube-burner/version.GitCommit=${GIT_COMMIT}${GIT_DIRTY} -X github.com/rsevilla87/kube-burner/version.BuildDate=${BUILD_DATE}" -o $(BIN_DIR)/${BIN_NAME}

lint:
./bin/golangci-lint run

clean:
@test ! -e bin/${BIN_NAME} || rm $(BIN_DIR)/${BIN_NAME}
test ! -e bin/${BIN_NAME} || rm $(BIN_DIR)/${BIN_NAME}

vendor:
go mod vendor
4 changes: 2 additions & 2 deletions pkg/burner/burner.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const (
jobName = "JobName"
replica = "Replica"
jobIteration = "Iteration"
uuid = "UUID"
UUID = "UUID"
)

var Cfg config.ConfigSpec
Expand Down Expand Up @@ -248,7 +248,7 @@ func (ex *Executor) replicaHandler(obj object, ns string, iteration int, limiter
tData := map[string]interface{}{
jobName: ex.Config.Name,
jobIteration: iteration,
uuid: uuid,
UUID: uuid,
}
for k, v := range obj.inputVars {
tData[k] = v
Expand Down
8 changes: 0 additions & 8 deletions pkg/burner/namespaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,3 @@ func waitForDeleteNamespaces(clientset *kubernetes.Clientset, s *util.Selector)
time.Sleep(1 * time.Second)
}
}

func isDeleted(clientset *kubernetes.Clientset, name string) bool {
_, err := clientset.CoreV1().Namespaces().Get(context.TODO(), name, metav1.GetOptions{})
if errors.IsNotFound(err) {
return true
}
return true
}
58 changes: 0 additions & 58 deletions pkg/prometheus/metrics.go

This file was deleted.

2 changes: 1 addition & 1 deletion pkg/prometheus/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (p *Prometheus) ScrapeMetrics(start, end time.Time, cfg config.ConfigSpec,
log.Debugf("Writing to %s", filename)
f, err := os.Create(filename)
if err != nil {
log.Error("Error creating metrics file %s: %s", filename, err)
log.Errorf("Error creating metrics file %s: %s", filename, err)
}
jsonEnc := json.NewEncoder(f)
jsonEnc.SetIndent("", " ")
Expand Down
15 changes: 15 additions & 0 deletions vendor/github.com/davecgh/go-spew/LICENSE

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

145 changes: 145 additions & 0 deletions vendor/github.com/davecgh/go-spew/spew/bypass.go

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

38 changes: 38 additions & 0 deletions vendor/github.com/davecgh/go-spew/spew/bypasssafe.go

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

Loading

0 comments on commit 56d52d3

Please sign in to comment.