Skip to content

Commit

Permalink
Merge pull request #2 from cloud-bulldozer/quay
Browse files Browse the repository at this point in the history
Modify quay URL
  • Loading branch information
rsevilla87 committed Sep 3, 2020
2 parents 4cf7994 + eb646fc commit 23482fa
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Kube-burner is a tool aimed to stress a kubernetes cluster. An overview of its b
In case you want to start tinkering with `kube-burner` now:

- You can find the binaries in the [releases section of this repository](https://github.com/cloud-bulldozer/kube-burner/releases).
- There's also a container image available at [quay](https://quay.io/repository/rsevilla/kube-burner?tab=tags).
- There's also a container image available at [quay](https://quay.io/repository/cloud-bulldozer/kube-burner?tab=tags).
- A valid example of a configuration file can be found at [./examples/cfg.yml](./examples/cfg.yml)


Expand Down
2 changes: 1 addition & 1 deletion cmd/kube-burner.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ func init() {

func steps(uuid string, p *prometheus.Prometheus) {
var indexer *indexers.Indexer
executorList := burner.NewExecutorList(uuid)
if config.ConfigSpec.GlobalConfig.IndexerConfig.Enabled {
indexer = indexers.NewIndexer(config.ConfigSpec.GlobalConfig.IndexerConfig)
}
executorList := burner.NewExecutorList(uuid)
for _, job := range executorList {
log.Infof("Triggering job: %s with UUID %s", job.Config.Name, uuid)
job.Cleanup()
Expand Down
7 changes: 5 additions & 2 deletions pkg/indexers/elastic.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@ func (esIndexer *Elastic) new(esConfig config.IndexerConfig) {
log.Errorf("Error creating the ES client: %s", err)
}
r, err := ESClient.Ping()
if err != nil || r.StatusCode != 200 {
log.Fatalf("ES connection error: %s %d", err, r.StatusCode)
if err != nil {
log.Fatalf("ES connection error: %s", err)
}
if r.StatusCode != 200 {
log.Fatalf("Unexpected ES status code: %d", r.StatusCode)
}
esIndexer.client = ESClient
}
Expand Down
8 changes: 4 additions & 4 deletions pkg/prometheus/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ import (
"strings"
"time"

api "github.com/prometheus/client_golang/api"
apiv1 "github.com/prometheus/client_golang/api/prometheus/v1"
"github.com/prometheus/common/model"
"github.com/cloud-bulldozer/kube-burner/log"
"github.com/cloud-bulldozer/kube-burner/pkg/config"
"github.com/cloud-bulldozer/kube-burner/pkg/indexers"
api "github.com/prometheus/client_golang/api"
apiv1 "github.com/prometheus/client_golang/api/prometheus/v1"
"github.com/prometheus/common/model"
"gopkg.in/yaml.v3"
)

Expand Down Expand Up @@ -90,7 +90,7 @@ func NewPrometheusClient(url, token, username, password, metricsProfile, uuid st
step: prometheusStep,
uuid: uuid,
}
log.Info("Initializing prometheus client")
log.Info("👽 Initializing prometheus client")
cfg := api.Config{
Address: url,
RoundTripper: authTransport{
Expand Down

0 comments on commit 23482fa

Please sign in to comment.