Skip to content

Commit

Permalink
Rename spotahome repo url to saremox
Browse files Browse the repository at this point in the history
  • Loading branch information
Saremox committed Apr 8, 2024
1 parent 5a672e4 commit 7b7396f
Show file tree
Hide file tree
Showing 61 changed files with 163 additions and 163 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ifneq ($(shell git status --porcelain),)
endif


PROJECT_PACKAGE := github.com/spotahome/redis-operator
PROJECT_PACKAGE := github.com/saremox/redis-operator
CODEGEN_IMAGE := ghcr.io/slok/kube-code-generator:v1.27.0
PORT := 9710

Expand All @@ -56,7 +56,7 @@ DEV_DIR := docker/development
APP_DIR := docker/app

# workdir
WORKDIR := /go/src/github.com/spotahome/redis-operator
WORKDIR := /go/src/github.com/saremox/redis-operator

# The default action of this Makefile is to build the development docker image
.PHONY: default
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# redis-operator

[![Build Status](https://github.com/spotahome/redis-operator/actions/workflows/ci.yaml/badge.svg?branch=master)](https://github.com/spotahome/redis-operator)
[![Go Report Card](https://goreportcard.com/badge/github.com/spotahome/redis-operator)](https://goreportcard.com/report/github.com/spotahome/redis-operator)
[![Build Status](https://github.com/saremox/redis-operator/actions/workflows/ci.yaml/badge.svg?branch=master)](https://github.com/saremox/redis-operator)
[![Go Report Card](https://goreportcard.com/badge/github.com/saremox/redis-operator)](https://goreportcard.com/report/github.com/saremox/redis-operator)

Redis Operator creates/configures/manages redis-failovers atop Kubernetes.

Expand Down Expand Up @@ -60,7 +60,7 @@ but it also comes with a few presets (in the form of overlays) supporting the mo
To install the operator with default settings and every necessary resource (including RBAC, service account, default resource limits, etc), install the `default` overlay:

```shell
kustomize build github.com/spotahome/redis-operator/manifests/kustomize/overlays/default
kustomize build github.com/saremox/redis-operator/manifests/kustomize/overlays/default
```

If you would like to customize RBAC or the service account used, you can install the `minimal` overlay.
Expand All @@ -70,7 +70,7 @@ Finally, you can install the `full` overlay if you want everything this operator
It's always a good practice to pin the version of the operator in your configuration to make sure you are not surprised by changes on the latest development branch:

```shell
kustomize build github.com/spotahome/redis-operator/manifests/kustomize/overlays/default?ref=v1.2.4
kustomize build github.com/saremox/redis-operator/manifests/kustomize/overlays/default?ref=v1.2.4
```

You can easily create your own config by creating a `kustomization.yaml` file
Expand All @@ -86,7 +86,7 @@ commonLabels:
foo: bar

resources:
- github.com/spotahome/redis-operator/manifests/kustomize/overlays/full
- github.com/saremox/redis-operator/manifests/kustomize/overlays/full
```
Take a look at the manifests inside [manifests/kustomize](manifests/kustomize) for more details.
Expand Down Expand Up @@ -351,6 +351,6 @@ kubectl delete redisfailover <NAME>
[![Redis Operator Image](https://quay.io/repository/spotahome/redis-operator/status "Redis Operator Image")](https://quay.io/repository/spotahome/redis-operator)
## Documentation

For the code documentation, you can lookup on the [GoDoc](https://godoc.org/github.com/spotahome/redis-operator).
For the code documentation, you can lookup on the [GoDoc](https://godoc.org/github.com/saremox/redis-operator).

Also, you can check more deeply information on the [docs folder](docs).
2 changes: 1 addition & 1 deletion api/redisfailover/v1/register.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package v1

import (
"github.com/spotahome/redis-operator/api/redisfailover"
"github.com/saremox/redis-operator/api/redisfailover"

apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
4 changes: 2 additions & 2 deletions charts/redisoperator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ apiVersion: v1
description: A Helm chart for the Spotahome Redis Operator
name: redis-operator
version: 3.3.1
home: https://github.com/spotahome/redis-operator
home: https://github.com/saremox/redis-operator
keywords:
- "golang"
- "operator"
- "cluster"
sources:
- https://github.com/spotahome/redis-operator
- https://github.com/saremox/redis-operator
kubeVersion: ">=1.21.0-0"
2 changes: 1 addition & 1 deletion client/k8s/clientset/versioned/clientset.go

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

6 changes: 3 additions & 3 deletions client/k8s/clientset/versioned/fake/clientset_generated.go

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

2 changes: 1 addition & 1 deletion client/k8s/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 client/k8s/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.

12 changes: 6 additions & 6 deletions cmd/redisoperator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import (
"github.com/prometheus/client_golang/prometheus/promhttp"
_ "k8s.io/client-go/plugin/pkg/client/auth/oidc"

"github.com/spotahome/redis-operator/cmd/utils"
"github.com/spotahome/redis-operator/log"
"github.com/spotahome/redis-operator/metrics"
"github.com/spotahome/redis-operator/operator/redisfailover"
"github.com/spotahome/redis-operator/service/k8s"
"github.com/spotahome/redis-operator/service/redis"
"github.com/saremox/redis-operator/cmd/utils"
"github.com/saremox/redis-operator/log"
"github.com/saremox/redis-operator/metrics"
"github.com/saremox/redis-operator/operator/redisfailover"
"github.com/saremox/redis-operator/service/k8s"
"github.com/saremox/redis-operator/service/redis"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"path/filepath"
"regexp"

"github.com/spotahome/redis-operator/operator/redisfailover"
"github.com/saremox/redis-operator/operator/redisfailover"
"k8s.io/client-go/util/homedir"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/utils/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"

redisfailoverclientset "github.com/spotahome/redis-operator/client/k8s/clientset/versioned"
redisfailoverclientset "github.com/saremox/redis-operator/client/k8s/clientset/versioned"
)

// LoadKubernetesConfig loads kubernetes configuration based on flags.
Expand Down
2 changes: 1 addition & 1 deletion docker/development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ RUN addgroup -g $gid rf && \


USER rf
WORKDIR /go/src/github.com/spotahome/redis-operator
WORKDIR /go/src/github.com/saremox/redis-operator
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/spotahome/redis-operator
module github.com/saremox/redis-operator

go 1.22

Expand Down
2 changes: 1 addition & 1 deletion metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"time"

"github.com/prometheus/client_golang/prometheus"
"github.com/saremox/redis-operator/log"
koopercontroller "github.com/spotahome/kooper/v2/controller"
kooperprometheus "github.com/spotahome/kooper/v2/metrics/prometheus"
"github.com/spotahome/redis-operator/log"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion metrics/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/spotahome/redis-operator/metrics"
"github.com/saremox/redis-operator/metrics"
)

func TestPrometheusMetrics(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion mocks/doc.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Package mocks will have all the mocks of the application.
*/
package mocks // import "github.com/spotahome/redis-operator/mocks"
package mocks // import "github.com/saremox/redis-operator/mocks"

// Logger mocks
//go:generate mockery --output log --dir ../log --name Logger
Expand Down
2 changes: 1 addition & 1 deletion mocks/log/Logger.go

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

2 changes: 1 addition & 1 deletion mocks/operator/redisfailover/RedisFailover.go

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

2 changes: 1 addition & 1 deletion mocks/operator/redisfailover/service/RedisFailoverCheck.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 mocks/operator/redisfailover/service/RedisFailoverHeal.go

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

2 changes: 1 addition & 1 deletion mocks/service/k8s/Services.go

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

6 changes: 3 additions & 3 deletions operator/redisfailover/checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ package redisfailover
import (
"context"
"errors"
"github.com/spotahome/redis-operator/service/k8s"
"github.com/saremox/redis-operator/service/k8s"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"strconv"
"time"

redisfailoverv1 "github.com/spotahome/redis-operator/api/redisfailover/v1"
"github.com/spotahome/redis-operator/metrics"
redisfailoverv1 "github.com/saremox/redis-operator/api/redisfailover/v1"
"github.com/saremox/redis-operator/metrics"
)

// UpdateRedisesPods if the running version of pods are equal to the statefulset one
Expand Down
12 changes: 6 additions & 6 deletions operator/redisfailover/checker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package redisfailover_test
import (
"errors"
"fmt"
v1 "github.com/spotahome/redis-operator/api/redisfailover/v1"
v1 "github.com/saremox/redis-operator/api/redisfailover/v1"
"testing"
"time"

Expand All @@ -13,11 +13,11 @@ import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/spotahome/redis-operator/log"
"github.com/spotahome/redis-operator/metrics"
mRFService "github.com/spotahome/redis-operator/mocks/operator/redisfailover/service"
mK8SService "github.com/spotahome/redis-operator/mocks/service/k8s"
rfOperator "github.com/spotahome/redis-operator/operator/redisfailover"
"github.com/saremox/redis-operator/log"
"github.com/saremox/redis-operator/metrics"
mRFService "github.com/saremox/redis-operator/mocks/operator/redisfailover/service"
mK8SService "github.com/saremox/redis-operator/mocks/service/k8s"
rfOperator "github.com/saremox/redis-operator/operator/redisfailover"
)

func TestCheckAndHeal(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions operator/redisfailover/ensurer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package redisfailover
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

redisfailoverv1 "github.com/spotahome/redis-operator/api/redisfailover/v1"
"github.com/spotahome/redis-operator/metrics"
redisfailoverv1 "github.com/saremox/redis-operator/api/redisfailover/v1"
"github.com/saremox/redis-operator/metrics"
)

// Ensure is called to ensure all of the resources associated with a RedisFailover are created
Expand Down
12 changes: 6 additions & 6 deletions operator/redisfailover/ensurer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"github.com/stretchr/testify/mock"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

redisfailoverv1 "github.com/spotahome/redis-operator/api/redisfailover/v1"
"github.com/spotahome/redis-operator/log"
"github.com/spotahome/redis-operator/metrics"
mRFService "github.com/spotahome/redis-operator/mocks/operator/redisfailover/service"
mK8SService "github.com/spotahome/redis-operator/mocks/service/k8s"
rfOperator "github.com/spotahome/redis-operator/operator/redisfailover"
redisfailoverv1 "github.com/saremox/redis-operator/api/redisfailover/v1"
"github.com/saremox/redis-operator/log"
"github.com/saremox/redis-operator/metrics"
mRFService "github.com/saremox/redis-operator/mocks/operator/redisfailover/service"
mK8SService "github.com/saremox/redis-operator/mocks/service/k8s"
rfOperator "github.com/saremox/redis-operator/operator/redisfailover"
)

const (
Expand Down
12 changes: 6 additions & 6 deletions operator/redisfailover/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ import (
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/tools/cache"

redisfailoverv1 "github.com/spotahome/redis-operator/api/redisfailover/v1"
"github.com/spotahome/redis-operator/log"
"github.com/spotahome/redis-operator/metrics"
rfservice "github.com/spotahome/redis-operator/operator/redisfailover/service"
"github.com/spotahome/redis-operator/service/k8s"
"github.com/spotahome/redis-operator/service/redis"
redisfailoverv1 "github.com/saremox/redis-operator/api/redisfailover/v1"
"github.com/saremox/redis-operator/log"
"github.com/saremox/redis-operator/metrics"
rfservice "github.com/saremox/redis-operator/operator/redisfailover/service"
"github.com/saremox/redis-operator/service/k8s"
"github.com/saremox/redis-operator/service/redis"
)

const (
Expand Down
Loading

0 comments on commit 7b7396f

Please sign in to comment.