Skip to content

Commit

Permalink
chore: replace references to old github repository (#1339)
Browse files Browse the repository at this point in the history
  • Loading branch information
theSuess authored Dec 11, 2023
1 parent 921a4da commit 8f9d0b4
Show file tree
Hide file tree
Showing 49 changed files with 110 additions and 110 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
make kustomize
# Update image to match the new image and tag
cd deploy/kustomize/base
kustomize edit set image ghcr.io/grafana-operator/grafana-operator=${{ env.GHCR_REPO }}:${{ github.ref_name }}
kustomize edit set image ghcr.io/${{ github.repository }}=${{ env.GHCR_REPO }}:${{ github.ref_name }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
Expand Down Expand Up @@ -98,11 +98,11 @@ jobs:
- name: Build and push
run: |
declare -a arr=("quay.io" "ghcr.io" )
declare -a arr=("quay.io/grafana-operator/grafana-operator" "ghcr.io/${{ github.repository }}" )
for i in "${arr[@]}"
do
export KO_DOCKER_REPO=${i}/grafana-operator/grafana-operator
export KO_DOCKER_REPO=${i}
ko build --sbom=none --bare --platform linux/arm64,linux/arm/v7,linux/amd64 -t ${{ github.ref_name }} \
--image-label org.opencontainers.image.title=grafana-operator \
--image-label org.opencontainers.image.description="An operator for Grafana that installs and manages Grafana instances & Dashboards & Datasources through Kubernetes/OpenShift CRs" \
Expand Down
2 changes: 1 addition & 1 deletion PREPARE_RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ After that you need to run `make helm/docs` which will generate the changes to b
## OLM

After version v5.4.1, we no longer update the image version in this repo, but only upstream in the OLM repos.
This to support disconnected mode, for more information see [PR 1234](https://github.com/grafana-operator/grafana-operator/pull/1234).
This to support disconnected mode, for more information see [PR 1234](https://github.com/grafana/grafana-operator/pull/1234).

After cutting a new release according to the instructions above, run the below instructions in this repo and create a PR to the different upstream repos, there is no need to create a PR to this repo.

Expand Down
10 changes: 5 additions & 5 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins:
manifests.sdk.operatorframework.io/v2: {}
scorecard.sdk.operatorframework.io/v2: {}
projectName: grafana-operator
repo: github.com/grafana-operator/grafana-operator
repo: github.com/grafana/grafana-operator
resources:
- api:
crdVersion: v1
Expand All @@ -14,7 +14,7 @@ resources:
domain: integreatly.org
group: grafana
kind: Grafana
path: github.com/grafana-operator/grafana-operator/api/v1beta1
path: github.com/grafana/grafana-operator/api/v1beta1
version: v1beta1
- api:
crdVersion: v1
Expand All @@ -23,7 +23,7 @@ resources:
domain: integreatly.org
group: grafana
kind: GrafanaDashboard
path: github.com/grafana-operator/grafana-operator/api/v1beta1
path: github.com/grafana/grafana-operator/api/v1beta1
version: v1beta1
- api:
crdVersion: v1
Expand All @@ -32,7 +32,7 @@ resources:
domain: integreatly.org
group: grafana
kind: GrafanaDatasource
path: github.com/grafana-operator/grafana-operator/api/v1beta1
path: github.com/grafana/grafana-operator/api/v1beta1
version: v1beta1
- api:
crdVersion: v1
Expand All @@ -41,6 +41,6 @@ resources:
domain: integreatly.org
group: grafana
kind: GrafanaFolder
path: github.com/grafana-operator/grafana-operator/api/v1beta1
path: github.com/grafana/grafana-operator/api/v1beta1
version: v1beta1
version: "3"
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ We make it possible for you to manage and share your grafana resources through c
easy and scalable way.

Find out more on our official website:
***[grafana-operator.github.io/grafana-operator](https://grafana-operator.github.io/grafana-operator/).***
***[grafana.github.io/grafana-operator](https://grafana-operator.github.io/grafana-operator/).***

## Meet our users!

Expand Down Expand Up @@ -44,7 +44,7 @@ and our current high-profile users aren't enough to convince you, here's some mo
## Get In Touch!

The best way to reach us is to file an issue on
***[Issues Tab](https://github.com/grafana-operator/grafana-operator/issues)***
***[Issues Tab](https://github.com/grafana/grafana-operator/issues)***
or click on the ***[Slack Icon](https://kubernetes.slack.com/archives/C019A1KTYKC)*** below

We're happy to help out in all grafana-operator issues, and if you're not sure, we'll point you in the right direction!
Expand All @@ -67,11 +67,11 @@ For more information on how to contribute to the operator look at [CONTRIBUTING.

## Version Support and Development Mindset

V4 is available on the [v4 branch](https://github.com/grafana-operator/grafana-operator/tree/v4), however, this version
V4 is available on the [v4 branch](https://github.com/grafana/grafana-operator/tree/v4), however, this version
will only receive bug fixes and security updates.

V5 is the current, actively developed and maintained version of the operator, which you can find on the
***[Master Branch](https://github.com/grafana-operator/grafana-operator/tree/master)***.
***[Master Branch](https://github.com/grafana/grafana-operator/tree/master)***.

A more in-depth overview of v5 is available in the [intro blog](docs/blog/v5-intro.md)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ metadata:
createdAt: "2023-11-06T20:49:26Z"
operators.operatorframework.io/builder: operator-sdk-v1.32.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
repository: https://github.com/grafana-operator/grafana-operator
repository: https://github.com/grafana/grafana-operator
support: Community
name: grafana-operator.v5.4.2
namespace: placeholder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
categories: Monitoring
containerImage: ghcr.io/grafana-operator/grafana-operator:v5.5.0
createdAt: "2023-09-12T08:09:00.92Z"
repository: https://github.com/grafana-operator/grafana-operator
repository: https://github.com/grafana/grafana-operator
support: Community
name: grafana-operator.v0.0.0
namespace: placeholder
Expand Down
2 changes: 1 addition & 1 deletion controllers/autodetect/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http/httptest"
"testing"

"github.com/grafana-operator/grafana-operator/v5/controllers/autodetect"
"github.com/grafana/grafana-operator/v5/controllers/autodetect"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
8 changes: 4 additions & 4 deletions controllers/client/grafana_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import (
"net/url"
"time"

"github.com/grafana-operator/grafana-operator/v5/controllers/metrics"
"github.com/grafana/grafana-operator/v5/controllers/metrics"
v1 "k8s.io/api/core/v1"

"github.com/grafana-operator/grafana-operator/v5/api/v1beta1"
"github.com/grafana-operator/grafana-operator/v5/controllers/config"
"github.com/grafana-operator/grafana-operator/v5/controllers/model"
grapi "github.com/grafana/grafana-api-golang-client"
"github.com/grafana/grafana-operator/v5/api/v1beta1"
"github.com/grafana/grafana-operator/v5/controllers/config"
"github.com/grafana/grafana-operator/v5/controllers/model"
"sigs.k8s.io/controller-runtime/pkg/client"
)

Expand Down
4 changes: 2 additions & 2 deletions controllers/controller_shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"context"
"encoding/json"

"github.com/grafana-operator/grafana-operator/v5/api/v1beta1"
"github.com/grafana-operator/grafana-operator/v5/controllers/model"
"github.com/grafana/grafana-operator/v5/api/v1beta1"
"github.com/grafana/grafana-operator/v5/controllers/model"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
Expand Down
12 changes: 6 additions & 6 deletions controllers/dashboard_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ import (

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

"github.com/grafana-operator/grafana-operator/v5/embeds"
"github.com/grafana/grafana-operator/v5/embeds"

"github.com/go-logr/logr"
"github.com/grafana-operator/grafana-operator/v5/api/v1beta1"
client2 "github.com/grafana-operator/grafana-operator/v5/controllers/client"
"github.com/grafana-operator/grafana-operator/v5/controllers/fetchers"
"github.com/grafana-operator/grafana-operator/v5/controllers/metrics"
grapi "github.com/grafana/grafana-api-golang-client"
"github.com/grafana/grafana-operator/v5/api/v1beta1"
client2 "github.com/grafana/grafana-operator/v5/controllers/client"
"github.com/grafana/grafana-operator/v5/controllers/fetchers"
"github.com/grafana/grafana-operator/v5/controllers/metrics"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/client-go/discovery"
Expand Down Expand Up @@ -541,7 +541,7 @@ func (r *GrafanaDashboardReconciler) getDashboardModel(cr *v1beta1.GrafanaDashbo
}

// NOTE: id should never be hardcoded in a dashboard, otherwise grafana will try to update a dashboard by id instead of uid.
// And, in case the id is non-existent, grafana will respond with 404. https://github.com/grafana-operator/grafana-operator/issues/1108
// And, in case the id is non-existent, grafana will respond with 404. https://github.com/grafana/grafana-operator/issues/1108
dashboardModel["id"] = nil

uid, _ := dashboardModel["uid"].(string) //nolint:errcheck
Expand Down
2 changes: 1 addition & 1 deletion controllers/dashboard_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

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

"github.com/grafana-operator/grafana-operator/v5/api/v1beta1"
"github.com/grafana/grafana-operator/v5/api/v1beta1"
"github.com/stretchr/testify/assert"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down
6 changes: 3 additions & 3 deletions controllers/datasource_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ import (
v1 "k8s.io/api/core/v1"

simplejson "github.com/bitly/go-simplejson"
"github.com/grafana-operator/grafana-operator/v5/controllers/metrics"
"github.com/grafana/grafana-operator/v5/controllers/metrics"

"github.com/go-logr/logr"
client2 "github.com/grafana-operator/grafana-operator/v5/controllers/client"
gapi "github.com/grafana/grafana-api-golang-client"
client2 "github.com/grafana/grafana-operator/v5/controllers/client"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/log"

v1beta1 "github.com/grafana-operator/grafana-operator/v5/api/v1beta1"
v1beta1 "github.com/grafana/grafana-operator/v5/api/v1beta1"
)

// GrafanaDatasourceReconciler reconciles a GrafanaDatasource object
Expand Down
2 changes: 1 addition & 1 deletion controllers/fetchers/configmap_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/grafana-operator/grafana-operator/v5/api/v1beta1"
"github.com/grafana/grafana-operator/v5/api/v1beta1"
v1 "k8s.io/api/core/v1"
"sigs.k8s.io/controller-runtime/pkg/client"
)
Expand Down
6 changes: 3 additions & 3 deletions controllers/fetchers/grafana_com_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"fmt"
"net/http"

"github.com/grafana-operator/grafana-operator/v5/api/v1beta1"
client2 "github.com/grafana-operator/grafana-operator/v5/controllers/client"
"github.com/grafana-operator/grafana-operator/v5/controllers/metrics"
"github.com/grafana/grafana-operator/v5/api/v1beta1"
client2 "github.com/grafana/grafana-operator/v5/controllers/client"
"github.com/grafana/grafana-operator/v5/controllers/metrics"
)

const grafanaComDashboardApiUrlRoot = "https://grafana.com/api/dashboards"
Expand Down
2 changes: 1 addition & 1 deletion controllers/fetchers/grafana_com_fetcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package fetchers
import (
"testing"

"github.com/grafana-operator/grafana-operator/v5/api/v1beta1"
"github.com/grafana/grafana-operator/v5/api/v1beta1"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions controllers/fetchers/jsonnet_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import (
"sync"
"time"

"github.com/grafana-operator/grafana-operator/v5/controllers/config"
"github.com/grafana/grafana-operator/v5/controllers/config"

"github.com/google/go-jsonnet"
"github.com/grafana-operator/grafana-operator/v5/api/v1beta1"
"github.com/grafana/grafana-operator/v5/api/v1beta1"
)

// EmbedFSImporter "imports" data from an in-memory embedFS.
Expand Down
6 changes: 3 additions & 3 deletions controllers/fetchers/jsonnet_fetcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (
"strings"
"testing"

"github.com/grafana-operator/grafana-operator/v5/controllers/config"
"github.com/grafana/grafana-operator/v5/controllers/config"
"github.com/stretchr/testify/require"

"github.com/grafana-operator/grafana-operator/v5/api/v1beta1"
"github.com/grafana-operator/grafana-operator/v5/embeds"
"github.com/grafana/grafana-operator/v5/api/v1beta1"
"github.com/grafana/grafana-operator/v5/embeds"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

Expand Down
6 changes: 3 additions & 3 deletions controllers/fetchers/url_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"net/url"
"time"

"github.com/grafana-operator/grafana-operator/v5/api/v1beta1"
client2 "github.com/grafana-operator/grafana-operator/v5/controllers/client"
"github.com/grafana-operator/grafana-operator/v5/controllers/metrics"
"github.com/grafana/grafana-operator/v5/api/v1beta1"
client2 "github.com/grafana/grafana-operator/v5/controllers/client"
"github.com/grafana/grafana-operator/v5/controllers/metrics"

v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down
2 changes: 1 addition & 1 deletion controllers/fetchers/url_fetcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http/httptest"
"testing"

"github.com/grafana-operator/grafana-operator/v5/api/v1beta1"
"github.com/grafana/grafana-operator/v5/api/v1beta1"
"github.com/stretchr/testify/assert"
)

Expand Down
8 changes: 4 additions & 4 deletions controllers/grafana_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
"time"

"github.com/go-logr/logr"
"github.com/grafana-operator/grafana-operator/v5/controllers/metrics"
"github.com/grafana-operator/grafana-operator/v5/controllers/reconcilers"
"github.com/grafana-operator/grafana-operator/v5/controllers/reconcilers/grafana"
"github.com/grafana/grafana-operator/v5/controllers/metrics"
"github.com/grafana/grafana-operator/v5/controllers/reconcilers"
"github.com/grafana/grafana-operator/v5/controllers/reconcilers/grafana"
v1 "k8s.io/api/apps/v1"
v12 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
Expand All @@ -35,7 +35,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/log"

grafanav1beta1 "github.com/grafana-operator/grafana-operator/v5/api/v1beta1"
grafanav1beta1 "github.com/grafana/grafana-operator/v5/api/v1beta1"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions controllers/grafanafolder_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import (
"time"

"github.com/go-logr/logr"
client2 "github.com/grafana-operator/grafana-operator/v5/controllers/client"
"github.com/grafana-operator/grafana-operator/v5/controllers/metrics"
grapi "github.com/grafana/grafana-api-golang-client"
client2 "github.com/grafana/grafana-operator/v5/controllers/client"
"github.com/grafana/grafana-operator/v5/controllers/metrics"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

Expand All @@ -35,7 +35,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/log"

grafanav1beta1 "github.com/grafana-operator/grafana-operator/v5/api/v1beta1"
grafanav1beta1 "github.com/grafana/grafana-operator/v5/api/v1beta1"
)

// GrafanaFolderReconciler reconciles a GrafanaFolder object
Expand Down
2 changes: 1 addition & 1 deletion controllers/model/dashboard_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package model
import (
"fmt"

grafanav1beta1 "github.com/grafana-operator/grafana-operator/v5/api/v1beta1"
grafanav1beta1 "github.com/grafana/grafana-operator/v5/api/v1beta1"
v1 "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/model/grafana_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package model
import (
"fmt"

grafanav1beta1 "github.com/grafana-operator/grafana-operator/v5/api/v1beta1"
grafanav1beta1 "github.com/grafana/grafana-operator/v5/api/v1beta1"
routev1 "github.com/openshift/api/route/v1"
v13 "k8s.io/api/apps/v1"
v1 "k8s.io/api/core/v1"
Expand Down
8 changes: 4 additions & 4 deletions controllers/reconcilers/grafana/admin_secret_reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"context"
"os"

"github.com/grafana-operator/grafana-operator/v5/api/v1beta1"
"github.com/grafana-operator/grafana-operator/v5/controllers/config"
"github.com/grafana-operator/grafana-operator/v5/controllers/model"
"github.com/grafana-operator/grafana-operator/v5/controllers/reconcilers"
"github.com/grafana/grafana-operator/v5/api/v1beta1"
"github.com/grafana/grafana-operator/v5/controllers/config"
"github.com/grafana/grafana-operator/v5/controllers/model"
"github.com/grafana/grafana-operator/v5/controllers/reconcilers"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
Expand Down
4 changes: 2 additions & 2 deletions controllers/reconcilers/grafana/complete_reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package grafana
import (
"context"

"github.com/grafana-operator/grafana-operator/v5/api/v1beta1"
"github.com/grafana-operator/grafana-operator/v5/controllers/reconcilers"
"github.com/grafana/grafana-operator/v5/api/v1beta1"
"github.com/grafana/grafana-operator/v5/controllers/reconcilers"
"k8s.io/apimachinery/pkg/runtime"
"sigs.k8s.io/controller-runtime/pkg/log"
)
Expand Down
Loading

0 comments on commit 8f9d0b4

Please sign in to comment.