Skip to content

Commit

Permalink
fix: rename module to match github url
Browse files Browse the repository at this point in the history
  • Loading branch information
Meroje committed Aug 5, 2022
1 parent 11afd01 commit cfc0ab9
Show file tree
Hide file tree
Showing 22 changed files with 50 additions and 51 deletions.
8 changes: 4 additions & 4 deletions cmd/clean.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"github.com/spf13/cobra"
"k8s.io/utils/clock"

"github.com/bedrockstreaming/prescaling-exporter/generated/client/clientset/versioned"
"github.com/bedrockstreaming/prescaling-exporter/pkg/config"
"github.com/bedrockstreaming/prescaling-exporter/pkg/k8s"
"github.com/bedrockstreaming/prescaling-exporter/pkg/services"
"github.com/BedrockStreaming/prescaling-exporter/generated/client/clientset/versioned"
"github.com/BedrockStreaming/prescaling-exporter/pkg/config"
"github.com/BedrockStreaming/prescaling-exporter/pkg/k8s"
"github.com/BedrockStreaming/prescaling-exporter/pkg/services"
)

var retention int
Expand Down
16 changes: 8 additions & 8 deletions cmd/serv.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import (
"github.com/prometheus/client_golang/prometheus"
"k8s.io/utils/clock"

"github.com/bedrockstreaming/prescaling-exporter/generated/client/clientset/versioned"
"github.com/bedrockstreaming/prescaling-exporter/pkg/config"
"github.com/bedrockstreaming/prescaling-exporter/pkg/exporter"
"github.com/bedrockstreaming/prescaling-exporter/pkg/handlers"
"github.com/bedrockstreaming/prescaling-exporter/pkg/k8s"
"github.com/bedrockstreaming/prescaling-exporter/pkg/prescaling"
"github.com/bedrockstreaming/prescaling-exporter/pkg/server"
"github.com/bedrockstreaming/prescaling-exporter/pkg/services"
"github.com/BedrockStreaming/prescaling-exporter/generated/client/clientset/versioned"
"github.com/BedrockStreaming/prescaling-exporter/pkg/config"
"github.com/BedrockStreaming/prescaling-exporter/pkg/exporter"
"github.com/BedrockStreaming/prescaling-exporter/pkg/handlers"
"github.com/BedrockStreaming/prescaling-exporter/pkg/k8s"
"github.com/BedrockStreaming/prescaling-exporter/pkg/prescaling"
"github.com/BedrockStreaming/prescaling-exporter/pkg/server"
"github.com/BedrockStreaming/prescaling-exporter/pkg/services"

log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion generated/client/clientset/versioned/clientset.go

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.

2 changes: 1 addition & 1 deletion generated/client/clientset/versioned/fake/register.go

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

2 changes: 1 addition & 1 deletion generated/client/clientset/versioned/scheme/register.go

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.

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

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/bedrockstreaming/prescaling-exporter
module github.com/BedrockStreaming/prescaling-exporter

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/bedrockstreaming/prescaling-exporter/cmd"
"github.com/BedrockStreaming/prescaling-exporter/cmd"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions pkg/exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"github.com/prometheus/client_golang/prometheus"
log "github.com/sirupsen/logrus"

"github.com/bedrockstreaming/prescaling-exporter/pkg/prescaling"
"github.com/bedrockstreaming/prescaling-exporter/pkg/utils"
"github.com/BedrockStreaming/prescaling-exporter/pkg/prescaling"
"github.com/BedrockStreaming/prescaling-exporter/pkg/utils"
)

type prescalingCollector struct {
Expand Down
6 changes: 3 additions & 3 deletions pkg/handlers/event_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

v1 "github.com/bedrockstreaming/prescaling-exporter/pkg/apis/prescaling.bedrock.tech/v1"
"github.com/bedrockstreaming/prescaling-exporter/pkg/services"
"github.com/bedrockstreaming/prescaling-exporter/pkg/utils"
v1 "github.com/BedrockStreaming/prescaling-exporter/pkg/apis/prescaling.bedrock.tech/v1"
"github.com/BedrockStreaming/prescaling-exporter/pkg/services"
"github.com/BedrockStreaming/prescaling-exporter/pkg/utils"
)

type CreateDTO struct {
Expand Down
8 changes: 4 additions & 4 deletions pkg/prescaling/desired_scaling.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package prescaling

const (
UPSCALE int = 11
NODOWNSCALE int = 10
DOWNSCALE int = 9
NOSCALE int = 0
UPSCALE int = 11
NODOWNSCALE int = 10
DOWNSCALE int = 9
NOSCALE int = 0
)

func DesiredScaling(eventInRangeTime bool, multiplier int, minReplica int, currentReplica int32) int {
Expand Down
4 changes: 2 additions & 2 deletions pkg/prescaling/get_hpa.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/bedrockstreaming/prescaling-exporter/pkg/config"
"github.com/bedrockstreaming/prescaling-exporter/pkg/utils"
"github.com/BedrockStreaming/prescaling-exporter/pkg/config"
"github.com/BedrockStreaming/prescaling-exporter/pkg/utils"

log "github.com/sirupsen/logrus"
)
Expand Down
6 changes: 3 additions & 3 deletions pkg/prescaling/get_hpa_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

clock "k8s.io/utils/clock/testing"

"github.com/bedrockstreaming/prescaling-exporter/generated/client/clientset/versioned/fake"
"github.com/bedrockstreaming/prescaling-exporter/pkg/k8s"
"github.com/bedrockstreaming/prescaling-exporter/pkg/services"
"github.com/BedrockStreaming/prescaling-exporter/generated/client/clientset/versioned/fake"
"github.com/BedrockStreaming/prescaling-exporter/pkg/k8s"
"github.com/BedrockStreaming/prescaling-exporter/pkg/services"

"github.com/stretchr/testify/assert"
"k8s.io/api/autoscaling/v2beta2"
Expand Down
4 changes: 2 additions & 2 deletions pkg/prescaling/prescaling.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package prescaling

import (
"github.com/bedrockstreaming/prescaling-exporter/pkg/k8s"
"github.com/bedrockstreaming/prescaling-exporter/pkg/services"
"github.com/BedrockStreaming/prescaling-exporter/pkg/k8s"
"github.com/BedrockStreaming/prescaling-exporter/pkg/services"
)

type IPrescaling interface {
Expand Down
6 changes: 3 additions & 3 deletions pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
log "github.com/sirupsen/logrus"
httpSwagger "github.com/swaggo/http-swagger"

_ "github.com/bedrockstreaming/prescaling-exporter/docs"
"github.com/bedrockstreaming/prescaling-exporter/pkg/config"
"github.com/bedrockstreaming/prescaling-exporter/pkg/handlers"
_ "github.com/BedrockStreaming/prescaling-exporter/docs"
"github.com/BedrockStreaming/prescaling-exporter/pkg/config"
"github.com/BedrockStreaming/prescaling-exporter/pkg/handlers"
)

// @title Prescaling API
Expand Down
6 changes: 3 additions & 3 deletions pkg/services/prescaling_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/utils/clock"

prescalingv1 "github.com/bedrockstreaming/prescaling-exporter/generated/client/clientset/versioned/typed/prescaling.bedrock.tech/v1"
v1 "github.com/bedrockstreaming/prescaling-exporter/pkg/apis/prescaling.bedrock.tech/v1"
"github.com/bedrockstreaming/prescaling-exporter/pkg/utils"
prescalingv1 "github.com/BedrockStreaming/prescaling-exporter/generated/client/clientset/versioned/typed/prescaling.bedrock.tech/v1"
v1 "github.com/BedrockStreaming/prescaling-exporter/pkg/apis/prescaling.bedrock.tech/v1"
"github.com/BedrockStreaming/prescaling-exporter/pkg/utils"
)

type PrescalingEventOutput struct {
Expand Down
4 changes: 2 additions & 2 deletions pkg/services/prescaling_event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"k8s.io/utils/clock"
testclock "k8s.io/utils/clock/testing"

prescalingv1 "github.com/bedrockstreaming/prescaling-exporter/generated/client/clientset/versioned/typed/prescaling.bedrock.tech/v1"
"github.com/bedrockstreaming/prescaling-exporter/generated/client/clientset/versioned/typed/prescaling.bedrock.tech/v1/fake"
prescalingv1 "github.com/BedrockStreaming/prescaling-exporter/generated/client/clientset/versioned/typed/prescaling.bedrock.tech/v1"
"github.com/BedrockStreaming/prescaling-exporter/generated/client/clientset/versioned/typed/prescaling.bedrock.tech/v1/fake"
)

func TestNewEventService(t *testing.T) {
Expand Down
1 change: 0 additions & 1 deletion pkg/utils/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ var loc = time.Now().Local().Location()
func TestSetTime(t *testing.T) {

faketime := time.Date(2022, time.March, 2, 21, 0, 0, 0, loc)


testCases := []struct {
name string
Expand Down

0 comments on commit cfc0ab9

Please sign in to comment.