Skip to content

Commit

Permalink
change go mod declare path
Browse files Browse the repository at this point in the history
  • Loading branch information
toughnoah committed Aug 4, 2021
1 parent f4110c8 commit 76635ca
Show file tree
Hide file tree
Showing 20 changed files with 31 additions and 1,002 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
go-version: 1.15

- name: Test
run: go test $(go list ./... | grep -v elastalert/controllers/test/e2e) -race -coverprofile=coverage.txt -covermode=atomic -gcflags=-l
run: go test $(go list ./... | grep -v github.com/toughnoah/elastalert-operator/controllers/test/e2e) -race -coverprofile=coverage.txt -covermode=atomic -gcflags=-l
- name: "upload test coverage report"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ resources:
domain: noah.domain
group: es
kind: Elastalert
path: elastalert/api/v1alpha1
path: github.com/toughnoah/elastalert-operator/api/v1alpha1
version: v1alpha1
version: "3"
6 changes: 3 additions & 3 deletions controllers/deployment_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package controllers

import (
"context"
"elastalert/api/v1alpha1"
"elastalert/controllers/observer"
"elastalert/controllers/podspec"
"errors"
"github.com/bouk/monkey"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/toughnoah/elastalert-operator/api/v1alpha1"
"github.com/toughnoah/elastalert-operator/controllers/observer"
"github.com/toughnoah/elastalert-operator/controllers/podspec"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
k8serrors "k8s.io/apimachinery/pkg/api/errors"
Expand Down
6 changes: 3 additions & 3 deletions controllers/deployment_controllers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package controllers

import (
"context"
esv1alpha1 "elastalert/api/v1alpha1"
ob "elastalert/controllers/observer"
"elastalert/controllers/podspec"
esv1alpha1 "github.com/toughnoah/elastalert-operator/api/v1alpha1"
ob "github.com/toughnoah/elastalert-operator/controllers/observer"
"github.com/toughnoah/elastalert-operator/controllers/podspec"
appsv1 "k8s.io/api/apps/v1"
k8serrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/runtime"
Expand Down
8 changes: 4 additions & 4 deletions controllers/elastalert_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ package controllers

import (
"context"
esv1alpha1 "elastalert/api/v1alpha1"
"elastalert/controllers/event"
ob "elastalert/controllers/observer"
"elastalert/controllers/podspec"
esv1alpha1 "github.com/toughnoah/elastalert-operator/api/v1alpha1"
"github.com/toughnoah/elastalert-operator/controllers/event"
ob "github.com/toughnoah/elastalert-operator/controllers/observer"
"github.com/toughnoah/elastalert-operator/controllers/podspec"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
k8serrors "k8s.io/apimachinery/pkg/api/errors"
Expand Down
6 changes: 3 additions & 3 deletions controllers/elastalert_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ package controllers

import (
"context"
"elastalert/api/v1alpha1"
ob "elastalert/controllers/observer"
"elastalert/controllers/podspec"
"errors"
"fmt"
"github.com/bouk/monkey"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/toughnoah/elastalert-operator/api/v1alpha1"
ob "github.com/toughnoah/elastalert-operator/controllers/observer"
"github.com/toughnoah/elastalert-operator/controllers/podspec"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
k8serrors "k8s.io/apimachinery/pkg/api/errors"
Expand Down
6 changes: 3 additions & 3 deletions controllers/observer/observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package observer

import (
"context"
esv1alpha1 "elastalert/api/v1alpha1"
"elastalert/controllers/event"
"elastalert/controllers/podspec"
"fmt"
esv1alpha1 "github.com/toughnoah/elastalert-operator/api/v1alpha1"
"github.com/toughnoah/elastalert-operator/controllers/event"
"github.com/toughnoah/elastalert-operator/controllers/podspec"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/meta"
Expand Down
2 changes: 1 addition & 1 deletion controllers/observer/observer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package observer

import (
"context"
"elastalert/api/v1alpha1"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/toughnoah/elastalert-operator/api/v1alpha1"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
Expand Down
2 changes: 1 addition & 1 deletion controllers/podspec/configmap.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package podspec

import (
esv1alpha1 "elastalert/api/v1alpha1"
"errors"
"fmt"
esv1alpha1 "github.com/toughnoah/elastalert-operator/api/v1alpha1"
"gopkg.in/yaml.v2"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
2 changes: 1 addition & 1 deletion controllers/podspec/configmap_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package podspec

import (
esv1alpha1 "elastalert/api/v1alpha1"
"github.com/stretchr/testify/require"
esv1alpha1 "github.com/toughnoah/elastalert-operator/api/v1alpha1"
"gopkg.in/yaml.v2"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
2 changes: 1 addition & 1 deletion controllers/podspec/deployment.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package podspec

import (
"elastalert/api/v1alpha1"
"github.com/toughnoah/elastalert-operator/api/v1alpha1"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
2 changes: 1 addition & 1 deletion controllers/podspec/deployment_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package podspec

import (
"elastalert/api/v1alpha1"
"github.com/bouk/monkey"
"github.com/stretchr/testify/require"
"github.com/toughnoah/elastalert-operator/api/v1alpha1"
appsv1 "k8s.io/api/apps/v1"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
Expand Down
2 changes: 1 addition & 1 deletion controllers/podspec/podtemplate.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package podspec

import (
"elastalert/api/v1alpha1"
"github.com/toughnoah/elastalert-operator/api/v1alpha1"
corev1 "k8s.io/api/core/v1"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion controllers/podspec/secert_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package podspec

import (
"elastalert/api/v1alpha1"
"github.com/stretchr/testify/require"
"github.com/toughnoah/elastalert-operator/api/v1alpha1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes/scheme"
Expand Down
2 changes: 1 addition & 1 deletion controllers/podspec/secret.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package podspec

import (
esv1alpha1 "elastalert/api/v1alpha1"
esv1alpha1 "github.com/toughnoah/elastalert-operator/api/v1alpha1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
Expand Down
2 changes: 1 addition & 1 deletion controllers/test/e2e/deploy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package e2e
import (
"bytes"
"context"
"elastalert/api/v1alpha1"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/toughnoah/elastalert-operator/api/v1alpha1"
"gopkg.in/yaml.v2"
appsv1 "k8s.io/api/apps/v1"
v1 "k8s.io/api/core/v1"
Expand Down
2 changes: 1 addition & 1 deletion controllers/test/e2e/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
logf "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/log/zap"

esv1alpha1 "elastalert/api/v1alpha1"
esv1alpha1 "github.com/toughnoah/elastalert-operator/api/v1alpha1"
//+kubebuilder:scaffold:imports
)

Expand Down
40 changes: 0 additions & 40 deletions go.mod

This file was deleted.

Loading

0 comments on commit 76635ca

Please sign in to comment.