Skip to content

Commit

Permalink
rename dir apis to api
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusfm committed May 8, 2023
1 parent 3111726 commit 5f289e7
Show file tree
Hide file tree
Showing 36 changed files with 33 additions and 31 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ COPY go.sum go.sum
RUN go mod download

COPY main.go main.go
COPY apis/ apis/
COPY api/ api/
COPY controllers/ controllers/
COPY pkg/ pkg/

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions controllers/zora/cluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"reflect"
"time"

"github.com/undistro/zora/pkg/saas"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
Expand All @@ -33,7 +32,9 @@ import (
ctrllog "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/predicate"

"github.com/undistro/zora/apis/zora/v1alpha1"
"github.com/undistro/zora/pkg/saas"

"github.com/undistro/zora/api/zora/v1alpha1"
"github.com/undistro/zora/pkg/discovery"
"github.com/undistro/zora/pkg/kubeconfig"
)
Expand Down
2 changes: 1 addition & 1 deletion controllers/zora/clusterscan_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import (

"github.com/undistro/zora/pkg/saas"

"github.com/undistro/zora/apis/zora/v1alpha1"
"github.com/undistro/zora/api/zora/v1alpha1"
"github.com/undistro/zora/pkg/kubeconfig"
"github.com/undistro/zora/pkg/plugins/cronjobs"
"github.com/undistro/zora/pkg/plugins/errparse"
Expand Down
2 changes: 1 addition & 1 deletion controllers/zora/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
logf "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/log/zap"

zorav1alpha1 "github.com/undistro/zora/apis/zora/v1alpha1"
zorav1alpha1 "github.com/undistro/zora/api/zora/v1alpha1"
//+kubebuilder:scaffold:imports
)

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/healthz"
"sigs.k8s.io/controller-runtime/pkg/log/zap"

zorav1alpha1 "github.com/undistro/zora/apis/zora/v1alpha1"
zorav1alpha1 "github.com/undistro/zora/api/zora/v1alpha1"
zoracontrollers "github.com/undistro/zora/controllers/zora"
//+kubebuilder:scaffold:imports
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/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 pkg/clientset/versioned/scheme/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 pkg/clientset/versioned/typed/zora/v1alpha1/cluster.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 pkg/clientset/versioned/typed/zora/v1alpha1/clusterscan.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.

2 changes: 1 addition & 1 deletion pkg/clientset/versioned/typed/zora/v1alpha1/zora_client.go

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

2 changes: 1 addition & 1 deletion pkg/payloads/v1alpha1/clusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/undistro/zora/apis/zora/v1alpha1"
"github.com/undistro/zora/api/zora/v1alpha1"
"github.com/undistro/zora/pkg/formats"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/payloads/v1alpha1/clusters_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/google/go-cmp/cmp"
"sigs.k8s.io/yaml"

"github.com/undistro/zora/apis/zora/v1alpha1"
"github.com/undistro/zora/api/zora/v1alpha1"
)

func TestNewCluster(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/payloads/v1alpha1/issues.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package v1alpha1
import (
"strings"

"github.com/undistro/zora/apis/zora/v1alpha1"
"github.com/undistro/zora/api/zora/v1alpha1"
)

type Issue struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/payloads/v1alpha1/issues_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/google/go-cmp/cmp"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/undistro/zora/apis/zora/v1alpha1"
"github.com/undistro/zora/api/zora/v1alpha1"
)

func TestNewResourcedIssue(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugins/cronjobs/cronjob.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"k8s.io/utils/pointer"
ctrl "sigs.k8s.io/controller-runtime"

"github.com/undistro/zora/apis/zora/v1alpha1"
"github.com/undistro/zora/api/zora/v1alpha1"
"github.com/undistro/zora/pkg/kubeconfig"
)

Expand Down
5 changes: 3 additions & 2 deletions pkg/saas/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ package saas
import (
"context"

"github.com/undistro/zora/apis/zora/v1alpha1"
payloads "github.com/undistro/zora/pkg/payloads/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
ctrlClient "sigs.k8s.io/controller-runtime/pkg/client"

"github.com/undistro/zora/api/zora/v1alpha1"
payloads "github.com/undistro/zora/pkg/payloads/v1alpha1"
)

type ClusterHook func(ctx context.Context, cluster *v1alpha1.Cluster) error
Expand Down
2 changes: 1 addition & 1 deletion pkg/worker/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

"github.com/go-logr/logr"

zorav1a1 "github.com/undistro/zora/apis/zora/v1alpha1"
zorav1a1 "github.com/undistro/zora/api/zora/v1alpha1"
"github.com/undistro/zora/pkg/worker/report/marvin"
"github.com/undistro/zora/pkg/worker/report/popeye"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/worker/report/marvin/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"github.com/go-logr/logr"

"github.com/undistro/zora/apis/zora/v1alpha1"
"github.com/undistro/zora/api/zora/v1alpha1"
)

var marvinToZoraSeverity = map[string]v1alpha1.ClusterIssueSeverity{
Expand Down
2 changes: 1 addition & 1 deletion pkg/worker/report/marvin/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/go-logr/logr"
"github.com/google/go-cmp/cmp"

"github.com/undistro/zora/apis/zora/v1alpha1"
"github.com/undistro/zora/api/zora/v1alpha1"
)

func TestParse(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/worker/report/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

"github.com/go-logr/logr"

zorav1a1 "github.com/undistro/zora/apis/zora/v1alpha1"
zorav1a1 "github.com/undistro/zora/api/zora/v1alpha1"
"github.com/undistro/zora/pkg/worker/config"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
2 changes: 1 addition & 1 deletion pkg/worker/report/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"

zorav1a1 "github.com/undistro/zora/apis/zora/v1alpha1"
zorav1a1 "github.com/undistro/zora/api/zora/v1alpha1"
"github.com/undistro/zora/pkg/worker/config"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/worker/report/popeye/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

"github.com/go-logr/logr"

zorav1a1 "github.com/undistro/zora/apis/zora/v1alpha1"
zorav1a1 "github.com/undistro/zora/api/zora/v1alpha1"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion pkg/worker/report/popeye/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/go-logr/logr"
"github.com/google/go-cmp/cmp"

zorav1a1 "github.com/undistro/zora/apis/zora/v1alpha1"
zorav1a1 "github.com/undistro/zora/api/zora/v1alpha1"
)

func TestPrepareIdAndMsg(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/worker/report/popeye/parse_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

package popeye

import zorav1a1 "github.com/undistro/zora/apis/zora/v1alpha1"
import zorav1a1 "github.com/undistro/zora/api/zora/v1alpha1"

var (
// LevelToIssueSeverity maps Popeye's <Level> type to Zora's
Expand Down
2 changes: 1 addition & 1 deletion pkg/worker/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
ctrl "sigs.k8s.io/controller-runtime"

zorav1a1 "github.com/undistro/zora/apis/zora/v1alpha1"
zorav1a1 "github.com/undistro/zora/api/zora/v1alpha1"
"github.com/undistro/zora/pkg/clientset/versioned"
"github.com/undistro/zora/pkg/worker/config"
"github.com/undistro/zora/pkg/worker/report"
Expand Down

0 comments on commit 5f289e7

Please sign in to comment.