Skip to content
Open
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 .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ linters-settings:
sections:
- standard
- default
- prefix(github.com/percona)
- prefix(github.com/superfly)

depguard:
rules:
Expand All @@ -43,14 +43,14 @@ linters-settings:
- pkg: testing/*
desc: The "testing" packages should be used only in tests.

- pkg: github.com/percona/percona-postgresql-operator/internal/testing/*
- pkg: github.com/superfly/percona-postgresql-operator/internal/testing/*
desc: The "internal/testing" packages should be used only in tests.

exhaustive:
default-signifies-exhaustive: true

goimports:
local-prefixes: github.com/percona/percona-postgresql-operator
local-prefixes: github.com/superfly/percona-postgresql-operator

gomodguard:
blocked:
Expand Down
2 changes: 1 addition & 1 deletion cmd/extension-installer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"path"

"github.com/percona/percona-postgresql-operator/percona/extensions"
"github.com/superfly/percona-postgresql-operator/percona/extensions"
)

func main() {
Expand Down
25 changes: 25 additions & 0 deletions cmd/pgbackrest-server/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package pgbackrestserver

import (
"fmt"
"net/http"

"github.com/gorilla/mux"

Check failure on line 7 in cmd/pgbackrest-server/main.go

View workflow job for this annotation

GitHub Actions / runner / suggester / golangci-lint

File is not properly formatted (goimports)
"github.com/superfly/percona-postgresql-operator/internal/pgbackrest-server/api"
)

func main() {

Check failure on line 11 in cmd/pgbackrest-server/main.go

View workflow job for this annotation

GitHub Actions / runner / suggester / golangci-lint

func `main` is unused (unused)
r := mux.NewRouter()
r = r.PathPrefix("/pgbackrest").Subrouter()

// Endpoints
r.HandleFunc("/info", api.InfoCommandHandler).Methods("POST")
r.HandleFunc("/backup", api.BackupCommandHandler).Methods("POST")
r.HandleFunc("/restore", api.RestoreCommandHandler).Methods("POST")

http.Handle("/", r)
err := http.ListenAndServe(":4422", nil)

Check failure on line 21 in cmd/pgbackrest-server/main.go

View workflow job for this annotation

GitHub Actions / runner / suggester / golangci-lint

G114: Use of net/http serve function that has no support for setting timeouts (gosec)
if err != nil {
panic(fmt.Sprintf("server failed: %v", err))
}
}
38 changes: 19 additions & 19 deletions cmd/postgres-operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,25 @@ import (
"sigs.k8s.io/controller-runtime/pkg/log/zap"
"sigs.k8s.io/controller-runtime/pkg/manager"

"github.com/percona/percona-postgresql-operator/internal/controller/pgupgrade"
"github.com/percona/percona-postgresql-operator/internal/controller/postgrescluster"
"github.com/percona/percona-postgresql-operator/internal/controller/runtime"
"github.com/percona/percona-postgresql-operator/internal/controller/standalone_pgadmin"
"github.com/percona/percona-postgresql-operator/internal/feature"
"github.com/percona/percona-postgresql-operator/internal/initialize"
"github.com/percona/percona-postgresql-operator/internal/logging"
"github.com/percona/percona-postgresql-operator/internal/naming"
"github.com/percona/percona-postgresql-operator/internal/upgradecheck"
perconaController "github.com/percona/percona-postgresql-operator/percona/controller"
"github.com/percona/percona-postgresql-operator/percona/controller/pgbackup"
"github.com/percona/percona-postgresql-operator/percona/controller/pgcluster"
"github.com/percona/percona-postgresql-operator/percona/controller/pgrestore"
perconaPGUpgrade "github.com/percona/percona-postgresql-operator/percona/controller/pgupgrade"
"github.com/percona/percona-postgresql-operator/percona/k8s"
perconaRuntime "github.com/percona/percona-postgresql-operator/percona/runtime"
"github.com/percona/percona-postgresql-operator/percona/utils/registry"
v2 "github.com/percona/percona-postgresql-operator/pkg/apis/pgv2.percona.com/v2"
"github.com/percona/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
"github.com/superfly/percona-postgresql-operator/internal/controller/pgupgrade"
"github.com/superfly/percona-postgresql-operator/internal/controller/postgrescluster"
"github.com/superfly/percona-postgresql-operator/internal/controller/runtime"
"github.com/superfly/percona-postgresql-operator/internal/controller/standalone_pgadmin"
"github.com/superfly/percona-postgresql-operator/internal/feature"
"github.com/superfly/percona-postgresql-operator/internal/initialize"
"github.com/superfly/percona-postgresql-operator/internal/logging"
"github.com/superfly/percona-postgresql-operator/internal/naming"
"github.com/superfly/percona-postgresql-operator/internal/upgradecheck"
perconaController "github.com/superfly/percona-postgresql-operator/percona/controller"
"github.com/superfly/percona-postgresql-operator/percona/controller/pgbackup"
"github.com/superfly/percona-postgresql-operator/percona/controller/pgcluster"
"github.com/superfly/percona-postgresql-operator/percona/controller/pgrestore"
perconaPGUpgrade "github.com/superfly/percona-postgresql-operator/percona/controller/pgupgrade"
"github.com/superfly/percona-postgresql-operator/percona/k8s"
perconaRuntime "github.com/superfly/percona-postgresql-operator/percona/runtime"
"github.com/superfly/percona-postgresql-operator/percona/utils/registry"
v2 "github.com/superfly/percona-postgresql-operator/pkg/apis/pgv2.percona.com/v2"
"github.com/superfly/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
)

var versionString string
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/percona/percona-postgresql-operator
module github.com/superfly/percona-postgresql-operator

go 1.23.4

Expand All @@ -12,6 +12,8 @@ require (
github.com/go-openapi/validate v0.24.0
github.com/google/go-cmp v0.6.0
github.com/google/uuid v1.6.0
github.com/gorilla/mux v1.8.1
github.com/hashicorp/go-cleanhttp v0.5.2
github.com/hashicorp/go-version v1.7.0
github.com/kubernetes-csi/external-snapshotter/client/v8 v8.2.0
github.com/onsi/ginkgo/v2 v2.22.2
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,16 @@ github.com/google/pprof v0.0.0-20241210010833-40e02aabc2ad h1:a6HEuzUHeKH6hwfN/Z
github.com/google/pprof v0.0.0-20241210010833-40e02aabc2ad/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144=
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=
github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ=
github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc=
github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDaL56wXCB/5+wF6uHfaI=
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vbp88Yd8NsDy6rZz+RcrMPxvld8=
github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.1 h1:e9Rjr40Z98/clHv5Yg79Is0NtosR5LXRvdr7o/6NwbA=
github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.1/go.mod h1:tIxuGz/9mpox++sgp9fJjHO0+q1X9/UOWd798aAm22M=
github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48=
github.com/hashicorp/go-version v1.7.0 h1:5tqGy27NaOTB8yJKUZELlFAS/LTKJkrmONwQKeRZfjY=
github.com/hashicorp/go-version v1.7.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
github.com/iancoleman/orderedmap v0.3.0 h1:5cbR2grmZR/DiVt+VJopEhtVs9YGInGIxAoMJn+Ichc=
Expand Down
2 changes: 1 addition & 1 deletion internal/bridge/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"k8s.io/apimachinery/pkg/util/uuid"
"k8s.io/apimachinery/pkg/util/wait"

"github.com/percona/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
"github.com/superfly/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
)

const defaultAPI = "https://api.crunchybridge.com"
Expand Down
2 changes: 1 addition & 1 deletion internal/bridge/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"gotest.tools/v3/assert"
"k8s.io/apimachinery/pkg/util/intstr"

"github.com/percona/percona-postgresql-operator/internal/initialize"
"github.com/superfly/percona-postgresql-operator/internal/initialize"
)

var testApiKey = "9012"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ import (
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
"sigs.k8s.io/controller-runtime/pkg/event"

"github.com/percona/percona-postgresql-operator/internal/bridge"
"github.com/percona/percona-postgresql-operator/internal/controller/runtime"
pgoRuntime "github.com/percona/percona-postgresql-operator/internal/controller/runtime"
"github.com/percona/percona-postgresql-operator/internal/naming"
"github.com/percona/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
"github.com/superfly/percona-postgresql-operator/internal/bridge"
"github.com/superfly/percona-postgresql-operator/internal/controller/runtime"
pgoRuntime "github.com/superfly/percona-postgresql-operator/internal/controller/runtime"
"github.com/superfly/percona-postgresql-operator/internal/naming"
"github.com/superfly/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
)

// CrunchyBridgeClusterReconciler reconciles a CrunchyBridgeCluster object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/percona/percona-postgresql-operator/internal/bridge"
"github.com/percona/percona-postgresql-operator/internal/initialize"
"github.com/percona/percona-postgresql-operator/internal/naming"
"github.com/percona/percona-postgresql-operator/internal/testing/cmp"
"github.com/percona/percona-postgresql-operator/internal/testing/require"
"github.com/percona/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
"github.com/superfly/percona-postgresql-operator/internal/bridge"
"github.com/superfly/percona-postgresql-operator/internal/initialize"
"github.com/superfly/percona-postgresql-operator/internal/naming"
"github.com/superfly/percona-postgresql-operator/internal/testing/cmp"
"github.com/superfly/percona-postgresql-operator/internal/testing/require"
"github.com/superfly/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
)

var testTeamId = "5678"
Expand Down
6 changes: 3 additions & 3 deletions internal/bridge/crunchybridgecluster/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"

"github.com/percona/percona-postgresql-operator/internal/controller/runtime"
"github.com/percona/percona-postgresql-operator/internal/initialize"
"github.com/percona/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
"github.com/superfly/percona-postgresql-operator/internal/controller/runtime"
"github.com/superfly/percona-postgresql-operator/internal/initialize"
"github.com/superfly/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
)

const finalizer = "crunchybridgecluster.postgres-operator.crunchydata.com/finalizer"
Expand Down
4 changes: 2 additions & 2 deletions internal/bridge/crunchybridgecluster/delete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"

"github.com/percona/percona-postgresql-operator/internal/bridge"
"github.com/percona/percona-postgresql-operator/internal/testing/require"
"github.com/superfly/percona-postgresql-operator/internal/bridge"
"github.com/superfly/percona-postgresql-operator/internal/testing/require"
)

func TestHandleDeleteCluster(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions internal/bridge/crunchybridgecluster/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/yaml"

"github.com/percona/percona-postgresql-operator/internal/bridge"
"github.com/percona/percona-postgresql-operator/internal/initialize"
"github.com/percona/percona-postgresql-operator/internal/testing/require"
"github.com/percona/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
"github.com/superfly/percona-postgresql-operator/internal/bridge"
"github.com/superfly/percona-postgresql-operator/internal/initialize"
"github.com/superfly/percona-postgresql-operator/internal/testing/require"
"github.com/superfly/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
)

// Scale extends d according to PGO_TEST_TIMEOUT_SCALE.
Expand Down
6 changes: 3 additions & 3 deletions internal/bridge/crunchybridgecluster/mock_bridge_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (

"k8s.io/apimachinery/pkg/util/intstr"

"github.com/percona/percona-postgresql-operator/internal/bridge"
"github.com/percona/percona-postgresql-operator/internal/initialize"
"github.com/superfly/percona-postgresql-operator/internal/bridge"
"github.com/superfly/percona-postgresql-operator/internal/initialize"

"github.com/percona/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
"github.com/superfly/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
)

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

"github.com/percona/percona-postgresql-operator/internal/bridge"
"github.com/percona/percona-postgresql-operator/internal/naming"
"github.com/percona/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
"github.com/superfly/percona-postgresql-operator/internal/bridge"
"github.com/superfly/percona-postgresql-operator/internal/naming"
"github.com/superfly/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
)

// generatePostgresRoleSecret returns a Secret containing a password and
Expand Down
6 changes: 3 additions & 3 deletions internal/bridge/crunchybridgecluster/postgres_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import (
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/percona/percona-postgresql-operator/internal/bridge"
"github.com/percona/percona-postgresql-operator/internal/testing/require"
"github.com/percona/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
"github.com/superfly/percona-postgresql-operator/internal/bridge"
"github.com/superfly/percona-postgresql-operator/internal/testing/require"
"github.com/superfly/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
)

func TestGeneratePostgresRoleSecret(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/bridge/crunchybridgecluster/watches.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/handler"
"sigs.k8s.io/controller-runtime/pkg/reconcile"

"github.com/percona/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
"github.com/superfly/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
)

// watchForRelatedSecret handles create/update/delete events for secrets,
Expand Down
2 changes: 1 addition & 1 deletion internal/bridge/crunchybridgecluster/watches_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
corev1 "k8s.io/api/core/v1"
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/percona/percona-postgresql-operator/internal/testing/require"
"github.com/superfly/percona-postgresql-operator/internal/testing/require"
)

func TestFindCrunchyBridgeClustersForSecret(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions internal/bridge/installation.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import (
"sigs.k8s.io/controller-runtime/pkg/reconcile"
"sigs.k8s.io/yaml"

"github.com/percona/percona-postgresql-operator/internal/controller/runtime"
"github.com/percona/percona-postgresql-operator/internal/logging"
"github.com/percona/percona-postgresql-operator/internal/naming"
"github.com/superfly/percona-postgresql-operator/internal/controller/runtime"
"github.com/superfly/percona-postgresql-operator/internal/logging"
"github.com/superfly/percona-postgresql-operator/internal/naming"
)

// self is a singleton Installation. See [InstallationReconciler].
Expand Down
4 changes: 2 additions & 2 deletions internal/bridge/installation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/yaml"

"github.com/percona/percona-postgresql-operator/internal/controller/runtime"
"github.com/percona/percona-postgresql-operator/internal/testing/cmp"
"github.com/superfly/percona-postgresql-operator/internal/controller/runtime"
"github.com/superfly/percona-postgresql-operator/internal/testing/cmp"
)

func TestExtractSecretContract(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"os"

"github.com/percona/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
"github.com/superfly/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
)

// defaultFromEnv reads the environment variable key when value is empty.
Expand Down
2 changes: 1 addition & 1 deletion internal/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"gotest.tools/v3/assert"
"sigs.k8s.io/yaml"

"github.com/percona/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
"github.com/superfly/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
)

func TestFetchKeyCommand(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/controller/pgupgrade/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"

"github.com/percona/percona-postgresql-operator/internal/initialize"
"github.com/percona/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
"github.com/superfly/percona-postgresql-operator/internal/initialize"
"github.com/superfly/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
)

// Upgrade job
Expand Down
6 changes: 3 additions & 3 deletions internal/controller/pgupgrade/jobs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import (
"k8s.io/apimachinery/pkg/api/resource"
"sigs.k8s.io/yaml"

"github.com/percona/percona-postgresql-operator/internal/initialize"
"github.com/percona/percona-postgresql-operator/internal/testing/cmp"
"github.com/percona/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
"github.com/superfly/percona-postgresql-operator/internal/initialize"
"github.com/superfly/percona-postgresql-operator/internal/testing/cmp"
"github.com/superfly/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
)

func TestGenerateUpgradeJob(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/pgupgrade/labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package pgupgrade

import (
"github.com/percona/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
"github.com/superfly/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions internal/controller/pgupgrade/pgupgrade_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import (
"sigs.k8s.io/controller-runtime/pkg/handler"
"sigs.k8s.io/controller-runtime/pkg/reconcile"

"github.com/percona/percona-postgresql-operator/internal/config"
"github.com/percona/percona-postgresql-operator/internal/controller/runtime"
"github.com/percona/percona-postgresql-operator/internal/registration"
"github.com/percona/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
"github.com/superfly/percona-postgresql-operator/internal/config"
"github.com/superfly/percona-postgresql-operator/internal/controller/runtime"
"github.com/superfly/percona-postgresql-operator/internal/registration"
"github.com/superfly/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions internal/controller/pgupgrade/registration.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ package pgupgrade
import (
"k8s.io/apimachinery/pkg/api/meta"

"github.com/percona/percona-postgresql-operator/internal/registration"
"github.com/percona/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
"github.com/superfly/percona-postgresql-operator/internal/registration"
"github.com/superfly/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
)

func (r *PGUpgradeReconciler) UpgradeAuthorized(upgrade *v1beta1.PGUpgrade) bool {
Expand Down
Loading
Loading