Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor go module name to match repo #87

Merged
merged 2 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cmd/alluxio/alluxio/alluxio.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
ctrl "sigs.k8s.io/controller-runtime"

alluxiov1alpha1 "github.com/alluxio/k8s-operator/api/v1alpha1"
"github.com/alluxio/k8s-operator/pkg/alluxiocluster"
"github.com/alluxio/k8s-operator/pkg/logger"
alluxiov1alpha1 "github.com/Alluxio/k8s-operator/api/v1alpha1"
"github.com/Alluxio/k8s-operator/pkg/alluxiocluster"
"github.com/Alluxio/k8s-operator/pkg/logger"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions cmd/alluxio/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ package main
import (
"os"

"github.com/alluxio/k8s-operator/cmd/alluxio/alluxio"
"github.com/alluxio/k8s-operator/pkg/logger"
"github.com/Alluxio/k8s-operator/cmd/alluxio/alluxio"
"github.com/Alluxio/k8s-operator/pkg/logger"
)

func main() {
Expand Down
12 changes: 6 additions & 6 deletions cmd/dataset/dataset/dataset.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ import (
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
ctrl "sigs.k8s.io/controller-runtime"

alluxiov1alpha1 "github.com/alluxio/k8s-operator/api/v1alpha1"
"github.com/alluxio/k8s-operator/pkg/dataset"
"github.com/alluxio/k8s-operator/pkg/load"
"github.com/alluxio/k8s-operator/pkg/logger"
"github.com/alluxio/k8s-operator/pkg/unload"
"github.com/alluxio/k8s-operator/pkg/update"
alluxiov1alpha1 "github.com/Alluxio/k8s-operator/api/v1alpha1"
"github.com/Alluxio/k8s-operator/pkg/dataset"
"github.com/Alluxio/k8s-operator/pkg/load"
"github.com/Alluxio/k8s-operator/pkg/logger"
"github.com/Alluxio/k8s-operator/pkg/unload"
"github.com/Alluxio/k8s-operator/pkg/update"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions cmd/dataset/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ package main
import (
"os"

"github.com/alluxio/k8s-operator/cmd/dataset/dataset"
"github.com/alluxio/k8s-operator/pkg/logger"
"github.com/Alluxio/k8s-operator/cmd/dataset/dataset"
"github.com/Alluxio/k8s-operator/pkg/logger"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion csi/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/golang/glog"
"github.com/spf13/cobra"

"github.com/alluxio/csi/alluxio"
"github.com/Alluxio/csi/alluxio"
)

var (
Expand Down
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/alluxio/k8s-operator
module github.com/Alluxio/k8s-operator

go 1.19

Expand Down
6 changes: 3 additions & 3 deletions pkg/alluxiocluster/alluxiocluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"

alluxiov1alpha1 "github.com/alluxio/k8s-operator/api/v1alpha1"
"github.com/alluxio/k8s-operator/pkg/finalizer"
"github.com/alluxio/k8s-operator/pkg/logger"
alluxiov1alpha1 "github.com/Alluxio/k8s-operator/api/v1alpha1"
"github.com/Alluxio/k8s-operator/pkg/finalizer"
"github.com/Alluxio/k8s-operator/pkg/logger"
)

// AlluxioClusterReconciler reconciles a AlluxioCluster object
Expand Down
4 changes: 2 additions & 2 deletions pkg/alluxiocluster/create_alluxiocluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (

"sigs.k8s.io/yaml"

"github.com/alluxio/k8s-operator/pkg/logger"
"github.com/alluxio/k8s-operator/pkg/utils"
"github.com/Alluxio/k8s-operator/pkg/logger"
"github.com/Alluxio/k8s-operator/pkg/utils"
)

const chartPath = "/opt/charts/alluxio"
Expand Down
4 changes: 2 additions & 2 deletions pkg/alluxiocluster/delete_alluxiocluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (

"k8s.io/apimachinery/pkg/types"

"github.com/alluxio/k8s-operator/pkg/logger"
"github.com/alluxio/k8s-operator/pkg/utils"
"github.com/Alluxio/k8s-operator/pkg/logger"
"github.com/Alluxio/k8s-operator/pkg/utils"
)

func DeleteAlluxioClusterIfExist(namespacedName types.NamespacedName) error {
Expand Down
8 changes: 4 additions & 4 deletions pkg/alluxiocluster/update_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import (
"k8s.io/apimachinery/pkg/types"
ctrl "sigs.k8s.io/controller-runtime"

alluxiov1alpha1 "github.com/alluxio/k8s-operator/api/v1alpha1"
"github.com/alluxio/k8s-operator/pkg/dataset"
"github.com/alluxio/k8s-operator/pkg/logger"
"github.com/alluxio/k8s-operator/pkg/utils"
alluxiov1alpha1 "github.com/Alluxio/k8s-operator/api/v1alpha1"
"github.com/Alluxio/k8s-operator/pkg/dataset"
"github.com/Alluxio/k8s-operator/pkg/logger"
"github.com/Alluxio/k8s-operator/pkg/utils"
)

func UpdateStatus(alluxioClusterCtx AlluxioClusterReconcileReqCtx) (ctrl.Result, error) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/dataset/dataset_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"

alluxiov1alpha1 "github.com/alluxio/k8s-operator/api/v1alpha1"
"github.com/alluxio/k8s-operator/pkg/logger"
alluxiov1alpha1 "github.com/Alluxio/k8s-operator/api/v1alpha1"
"github.com/Alluxio/k8s-operator/pkg/logger"
)

// DatasetReconciler reconciles a Dataset object
Expand Down
2 changes: 1 addition & 1 deletion pkg/dataset/delete_dataset.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ package dataset
import (
ctrl "sigs.k8s.io/controller-runtime"

"github.com/alluxio/k8s-operator/pkg/logger"
"github.com/Alluxio/k8s-operator/pkg/logger"
)

func DeleteDatasetIfExist(req ctrl.Request) (ctrl.Result, error) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/dataset/update_dataset_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (

ctrl "sigs.k8s.io/controller-runtime"

alluxiov1alpha1 "github.com/alluxio/k8s-operator/api/v1alpha1"
"github.com/alluxio/k8s-operator/pkg/logger"
alluxiov1alpha1 "github.com/Alluxio/k8s-operator/api/v1alpha1"
"github.com/Alluxio/k8s-operator/pkg/logger"
)

func UpdateDatasetStatus(ctx DatasetReconcilerReqCtx) (ctrl.Result, error) {
Expand Down
6 changes: 3 additions & 3 deletions pkg/load/create_load_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
"k8s.io/client-go/kubernetes/scheme"
ctrl "sigs.k8s.io/controller-runtime"

alluxiov1alpha1 "github.com/alluxio/k8s-operator/api/v1alpha1"
"github.com/alluxio/k8s-operator/pkg/logger"
"github.com/alluxio/k8s-operator/pkg/utils"
alluxiov1alpha1 "github.com/Alluxio/k8s-operator/api/v1alpha1"
"github.com/Alluxio/k8s-operator/pkg/logger"
"github.com/Alluxio/k8s-operator/pkg/utils"
)

func (r *LoadReconciler) createLoadJob(ctx LoadReconcilerReqCtx) (ctrl.Result, error) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/load/delete_load_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/alluxio/k8s-operator/pkg/logger"
"github.com/Alluxio/k8s-operator/pkg/logger"
)

func (r *LoadReconciler) deleteJob(ctx LoadReconcilerReqCtx) (ctrl.Result, error) {
Expand Down
6 changes: 3 additions & 3 deletions pkg/load/load_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"

alluxiov1alpha1 "github.com/alluxio/k8s-operator/api/v1alpha1"
"github.com/alluxio/k8s-operator/pkg/logger"
"github.com/alluxio/k8s-operator/pkg/utils"
alluxiov1alpha1 "github.com/Alluxio/k8s-operator/api/v1alpha1"
"github.com/Alluxio/k8s-operator/pkg/logger"
"github.com/Alluxio/k8s-operator/pkg/utils"
)

type LoadReconciler struct {
Expand Down
6 changes: 3 additions & 3 deletions pkg/unload/unload.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"

alluxiov1alpha1 "github.com/alluxio/k8s-operator/api/v1alpha1"
"github.com/alluxio/k8s-operator/pkg/logger"
"github.com/alluxio/k8s-operator/pkg/utils"
alluxiov1alpha1 "github.com/Alluxio/k8s-operator/api/v1alpha1"
"github.com/Alluxio/k8s-operator/pkg/logger"
"github.com/Alluxio/k8s-operator/pkg/utils"
)

func (r *UnloadReconciler) unload(ctx UnloadReconcilerReqCtx) (ctrl.Result, error) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/unload/unload_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
client "sigs.k8s.io/controller-runtime/pkg/client"

alluxiov1alpha1 "github.com/alluxio/k8s-operator/api/v1alpha1"
"github.com/alluxio/k8s-operator/pkg/logger"
alluxiov1alpha1 "github.com/Alluxio/k8s-operator/api/v1alpha1"
"github.com/Alluxio/k8s-operator/pkg/logger"
)

type UnloadReconciler struct {
Expand Down
6 changes: 3 additions & 3 deletions pkg/update/create_update_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
"k8s.io/client-go/kubernetes/scheme"
ctrl "sigs.k8s.io/controller-runtime"

alluxiov1alpha1 "github.com/alluxio/k8s-operator/api/v1alpha1"
"github.com/alluxio/k8s-operator/pkg/logger"
"github.com/alluxio/k8s-operator/pkg/utils"
alluxiov1alpha1 "github.com/Alluxio/k8s-operator/api/v1alpha1"
"github.com/Alluxio/k8s-operator/pkg/logger"
"github.com/Alluxio/k8s-operator/pkg/utils"
)

func (r *UpdateReconciler) createUpdateJob(ctx UpdateReconcilerReqCtx) (ctrl.Result, error) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/update/delete_update_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/alluxio/k8s-operator/pkg/logger"
"github.com/Alluxio/k8s-operator/pkg/logger"
)

func (r *UpdateReconciler) deleteJob(ctx UpdateReconcilerReqCtx) (ctrl.Result, error) {
Expand Down
6 changes: 3 additions & 3 deletions pkg/update/update_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"

alluxiov1alpha1 "github.com/alluxio/k8s-operator/api/v1alpha1"
"github.com/alluxio/k8s-operator/pkg/logger"
"github.com/alluxio/k8s-operator/pkg/utils"
alluxiov1alpha1 "github.com/Alluxio/k8s-operator/api/v1alpha1"
"github.com/Alluxio/k8s-operator/pkg/logger"
"github.com/Alluxio/k8s-operator/pkg/utils"
)

type UpdateReconciler struct {
Expand Down
4 changes: 2 additions & 2 deletions pkg/utils/component_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"k8s.io/apimachinery/pkg/types"
"sigs.k8s.io/controller-runtime/pkg/client"

alluxiov1alpha1 "github.com/alluxio/k8s-operator/api/v1alpha1"
"github.com/alluxio/k8s-operator/pkg/logger"
alluxiov1alpha1 "github.com/Alluxio/k8s-operator/api/v1alpha1"
"github.com/Alluxio/k8s-operator/pkg/logger"
)

type ComponentStatusReqCtx struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ package utils
import (
"os/exec"

"github.com/alluxio/k8s-operator/pkg/logger"
"github.com/Alluxio/k8s-operator/pkg/logger"
)

type HelmContext struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/kube_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"

"github.com/alluxio/k8s-operator/pkg/logger"
"github.com/Alluxio/k8s-operator/pkg/logger"
)

func GetK8sClient() (*kubernetes.Clientset, error) {
Expand Down