Skip to content
Draft
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
37 changes: 4 additions & 33 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ init: cleanup-localbin ## Install development tools
$(MAKE) opm

.PHONY: format
format:
format: ## Format code.
GOOS=$(OS) GOARCH=$(ARCH) go tool gofumpt -l -w .
GOOS=$(OS) GOARCH=$(ARCH) go tool goimports -local github.com/percona/everest-operator -l -w .
GOOS=$(OS) GOARCH=$(ARCH) go tool gci write --skip-generated -s standard -s default -s "prefix(github.com/percona/everest-operator)" .
Expand Down Expand Up @@ -174,42 +174,13 @@ k3d-cluster-down: ## Create a K8S cluster for testing
rm -f ./tests/kubeconfig || true

.PHONY: k3d-upload-image
k3d-upload-image:
k3d-upload-image: ## Upload the everest-operator image to the k3d cluster
k3d image import -c everest-operator-test -m direct $(IMG)

# Cleanup all resources created by the tests
.PHONY: cluster-cleanup
cluster-cleanup:
kubectl delete db --all-namespaces --all --cascade=foreground --ignore-not-found=true || true
@namespaces=$$(kubectl get pxc -A -o jsonpath='{.items[*].metadata.namespace}'); \
for ns in $$namespaces; do \
kubectl -n $$ns get pxc -o name | xargs --no-run-if-empty -I{} kubectl patch -n $$ns {} -p '{"metadata":{"finalizers":null}}' --type=merge; \
done
@namespaces=$$(kubectl get psmdb -A -o jsonpath='{.items[*].metadata.namespace}'); \
for ns in $$namespaces; do \
kubectl -n $$ns get psmdb -o name | xargs --no-run-if-empty -I{} kubectl patch -n $$ns {} -p '{"metadata":{"finalizers":null}}' --type=merge; \
done
@namespaces=$$(kubectl get pg -A -o jsonpath='{.items[*].metadata.namespace}'); \
for ns in $$namespaces; do \
kubectl -n $$ns get pg -o name | xargs --no-run-if-empty -I{} kubectl patch -n $$ns {} -p '{"metadata":{"finalizers":null}}' --type=merge; \
done
@namespaces=$$(kubectl get db -A -o jsonpath='{.items[*].metadata.namespace}'); \
for ns in $$namespaces; do \
kubectl -n $$ns get db -o name | xargs --no-run-if-empty -I{} kubectl patch -n $$ns {} -p '{"metadata":{"finalizers":null}}' --type=merge; \
done
@namespaces=$$(kubectl get db -A -o jsonpath='{.items[*].metadata.namespace}'); \
for ns in $$namespaces; do \
kubectl -n $$ns delete -f ./tests/testdata/minio --ignore-not-found || true; \
done
kubectl delete pvc --all-namespaces --all --ignore-not-found=true || true
kubectl delete backupstorage --all-namespaces --all --ignore-not-found=true || true
kubectl get ns -o name | grep kuttl | xargs --no-run-if-empty kubectl delete || true
kubectl delete ns operators olm --ignore-not-found=true --wait=false || true
sleep 10
kubectl delete apiservice v1.packages.operators.coreos.com --ignore-not-found=true || true
kubectl get crd -o name | grep .coreos.com$ | xargs --no-run-if-empty kubectl delete || true
kubectl get crd -o name | grep .percona.com$ | xargs --no-run-if-empty kubectl delete || true
kubectl delete crd postgresclusters.postgres-operator.crunchydata.com --ignore-not-found=true || true
cluster-cleanup: ## Cleanup all resources created by the tests from the K8S cluster
./scripts/cluster-cleanup.sh

##@ Build

Expand Down
4 changes: 3 additions & 1 deletion api/v1alpha1/databasecluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ const (
ProxyTypeMongos ProxyType = "mongos"
// ProxyTypeHAProxy is a HAProxy proxy type.
ProxyTypeHAProxy ProxyType = "haproxy"
// ProxyTypeRouter is a Router proxy type for Percona Server for MySQL.
ProxyTypeRouter ProxyType = "router"
// ProxyTypeProxySQL is a ProxySQL proxy type.
ProxyTypeProxySQL ProxyType = "proxysql"
// ProxyTypePGBouncer is a PGBouncer proxy type.
Expand Down Expand Up @@ -156,7 +158,7 @@ type Resources struct {
// Engine is the engine configuration.
type Engine struct {
// Type is the engine type
// +kubebuilder:validation:Enum:=pxc;postgresql;psmdb
// +kubebuilder:validation:Enum:=pxc;ps;postgresql;psmdb
Type EngineType `json:"type"`
// Version is the engine version
Version string `json:"version,omitempty"`
Expand Down
16 changes: 9 additions & 7 deletions api/v1alpha1/databaseengine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ const (

// DatabaseEnginePXC represents engine type for PXC clusters.
DatabaseEnginePXC EngineType = "pxc"
// DatabaseEnginePS represents engine type for PS clusters.
DatabaseEnginePS EngineType = "ps"
// DatabaseEnginePSMDB represents engine type for PSMDB clusters.
DatabaseEnginePSMDB EngineType = "psmdb"
// DatabaseEnginePostgresql represents engine type for Postgresql clusters.
Expand Down Expand Up @@ -171,12 +173,12 @@ type OperatorUpgradeStatus struct {
Message string `json:"message,omitempty"`
}

//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:resource:shortName=dbengine;
//+kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type"
//+kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.status"
//+kubebuilder:printcolumn:name="Operator Version",type="string",JSONPath=".status.operatorVersion"
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:shortName=dbengine;
// +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type"
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.status"
// +kubebuilder:printcolumn:name="Operator Version",type="string",JSONPath=".status.operatorVersion"

// DatabaseEngine is the Schema for the databaseengines API.
type DatabaseEngine struct {
Expand All @@ -187,7 +189,7 @@ type DatabaseEngine struct {
Status DatabaseEngineStatus `json:"status,omitempty"`
}

//+kubebuilder:object:root=true
// +kubebuilder:object:root=true

// DatabaseEngineList contains a list of DatabaseEngine.
type DatabaseEngineList struct {
Expand Down
14 changes: 14 additions & 0 deletions bundle/manifests/everest-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,20 @@ spec:
- get
- list
- watch
- apiGroups:
- ps.percona.com
resources:
- perconaservermysqlbackups
- perconaservermysqlrestores
- perconaservermysqls
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- psmdb.percona.com
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ spec:
description: Type is the engine type
enum:
- pxc
- ps
- postgresql
- psmdb
type: string
Expand Down
2 changes: 2 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
pgv2 "github.com/percona/percona-postgresql-operator/pkg/apis/pgv2.percona.com/v2"
crunchyv1beta1 "github.com/percona/percona-postgresql-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
psmdbv1 "github.com/percona/percona-server-mongodb-operator/pkg/apis/psmdb/v1"
psv1 "github.com/percona/percona-server-mysql-operator/api/v1alpha1"
pxcv1 "github.com/percona/percona-xtradb-cluster-operator/pkg/apis/pxc/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
Expand Down Expand Up @@ -112,6 +113,7 @@ func init() {
utilruntime.Must(pgv2.SchemeBuilder.AddToScheme(scheme))
utilruntime.Must(psmdbv1.SchemeBuilder.AddToScheme(scheme))
utilruntime.Must(pxcv1.SchemeBuilder.AddToScheme(scheme))
utilruntime.Must(psv1.SchemeBuilder.AddToScheme(scheme))
utilruntime.Must(crunchyv1beta1.SchemeBuilder.AddToScheme(scheme))
// +kubebuilder:scaffold:scheme
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ spec:
description: Type is the engine type
enum:
- pxc
- ps
- postgresql
- psmdb
type: string
Expand Down
14 changes: 14 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,20 @@ rules:
- get
- list
- watch
- apiGroups:
- ps.percona.com
resources:
- perconaservermysqlbackups
- perconaservermysqlrestores
- perconaservermysqls
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- psmdb.percona.com
resources:
Expand Down
15 changes: 15 additions & 0 deletions deploy/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,7 @@ spec:
description: Type is the engine type
enum:
- pxc
- ps
- postgresql
- psmdb
type: string
Expand Down Expand Up @@ -8797,6 +8798,20 @@ rules:
- get
- list
- watch
- apiGroups:
- ps.percona.com
resources:
- perconaservermysqlbackups
- perconaservermysqlrestores
- perconaservermysqls
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- psmdb.percona.com
resources:
Expand Down
10 changes: 6 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ require (
github.com/percona/percona-backup-mongodb v1.8.1-0.20241212160532-0157f87a7eee
github.com/percona/percona-postgresql-operator v0.0.0-20250313094841-676233c83e26
github.com/percona/percona-server-mongodb-operator v1.19.1
github.com/percona/percona-server-mysql-operator v0.10.0
github.com/percona/percona-xtradb-cluster-operator v1.17.0
github.com/rs/zerolog v1.34.0
github.com/spf13/cobra v1.9.1
Expand Down Expand Up @@ -101,7 +102,7 @@ require (
github.com/catenacyber/perfsprint v0.9.1 // indirect
github.com/ccojocar/zxcvbn-go v1.0.4 // indirect
github.com/cenkalti/backoff/v5 v5.0.2 // indirect
github.com/cert-manager/cert-manager v1.17.1 // indirect
github.com/cert-manager/cert-manager v1.17.2 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/charithe/durationcheck v0.0.10 // indirect
github.com/charmbracelet/colorprofile v0.2.3-0.20250311203215-f60798e515dc // indirect
Expand Down Expand Up @@ -129,7 +130,7 @@ require (
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/firefart/nonamedreturns v1.0.6 // indirect
github.com/flosch/pongo2/v6 v6.0.0 // indirect
github.com/fsnotify/fsnotify v1.8.0 // indirect
github.com/fsnotify/fsnotify v1.9.0 // indirect
github.com/fxamacker/cbor/v2 v2.8.0 // indirect
github.com/fzipp/gocyclo v0.6.0 // indirect
github.com/getkin/kin-openapi v0.132.0 // indirect
Expand All @@ -144,7 +145,7 @@ require (
github.com/go-openapi/jsonpointer v0.21.1 // indirect
github.com/go-openapi/jsonreference v0.21.0 // indirect
github.com/go-openapi/swag v0.23.1 // indirect
github.com/go-sql-driver/mysql v1.9.1 // indirect
github.com/go-sql-driver/mysql v1.9.2 // indirect
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
github.com/go-toolsmith/astcast v1.1.0 // indirect
github.com/go-toolsmith/astcopy v1.1.0 // indirect
Expand Down Expand Up @@ -281,6 +282,7 @@ require (
github.com/reviewdog/go-bitbucket v0.0.0-20201024094602-708c3f6a7de0 // indirect
github.com/reviewdog/reviewdog v0.20.3 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/robfig/cron/v3 v3.0.2-0.20210106135023-bc59245fe10e // indirect
github.com/rogpeppe/go-internal v1.14.1 // indirect
github.com/ryancurrah/gomodguard v1.4.1 // indirect
github.com/ryanrolds/sqlclosecheck v0.5.1 // indirect
Expand Down Expand Up @@ -374,7 +376,7 @@ require (
golang.org/x/text v0.26.0 // indirect
golang.org/x/time v0.12.0 // indirect
golang.org/x/tools v0.34.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.5.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20250603155806-513f23925822 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822 // indirect
google.golang.org/grpc v1.73.0 // indirect
Expand Down
20 changes: 12 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ github.com/ccojocar/zxcvbn-go v1.0.4/go.mod h1:3GxGX+rHmueTUMvm5ium7irpyjmm7ikxY
github.com/cenkalti/backoff/v5 v5.0.2 h1:rIfFVxEf1QsI7E1ZHfp/B4DF/6QBAUhmgkxc0H7Zss8=
github.com/cenkalti/backoff/v5 v5.0.2/go.mod h1:rkhZdG3JZukswDf7f0cwqPNk4K0sa+F97BxZthm/crw=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/cert-manager/cert-manager v1.17.1 h1:Aig+lWMoLsmpGd9TOlTvO4t0Ah3D+/vGB37x/f+ZKt0=
github.com/cert-manager/cert-manager v1.17.1/go.mod h1:zeG4D+AdzqA7hFMNpYCJgcQ2VOfFNBa+Jzm3kAwiDU4=
github.com/cert-manager/cert-manager v1.17.2 h1:QQYTEOsHf/Z3BFzKH2sIILHJwZA5Ut0LYZlHyNViupg=
github.com/cert-manager/cert-manager v1.17.2/go.mod h1:2TmjsTQF8GZqc8fgLhXWCfbA6YwWCUHKxerJNbFh9eU=
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
Expand Down Expand Up @@ -335,8 +335,8 @@ github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHk
github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
github.com/fsnotify/fsnotify v1.8.0 h1:dAwr6QBTBZIkG8roQaJjGof0pp0EeF+tNV7YBP3F/8M=
github.com/fsnotify/fsnotify v1.8.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k=
github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
github.com/fxamacker/cbor/v2 v2.8.0 h1:fFtUGXUzXPHTIUdne5+zzMPTfffl3RD5qYnkY40vtxU=
github.com/fxamacker/cbor/v2 v2.8.0/go.mod h1:vM4b+DJCtHn+zz7h3FFp/hDAI9WNWCsZj23V5ytsSxQ=
github.com/fzipp/gocyclo v0.6.0 h1:lsblElZG7d3ALtGMx9fmxeTKZaLLpU8mET09yN4BBLo=
Expand Down Expand Up @@ -434,8 +434,8 @@ github.com/go-openapi/validate v0.19.2/go.mod h1:1tRCw7m3jtI8eNWEEliiAqUIcBztB2K
github.com/go-openapi/validate v0.19.5/go.mod h1:8DJv2CVJQ6kGNpFW6eV9N3JviE1C85nY1c2z52x1Gk4=
github.com/go-quicktest/qt v1.101.0 h1:O1K29Txy5P2OK0dGo59b7b0LR6wKfIhttaAhHUyn7eI=
github.com/go-quicktest/qt v1.101.0/go.mod h1:14Bz/f7NwaXPtdYEgzsx46kqSxVwTbzVZsDC26tQJow=
github.com/go-sql-driver/mysql v1.9.1 h1:FrjNGn/BsJQjVRuSa8CBrM5BWA9BWoXXat3KrtSb/iI=
github.com/go-sql-driver/mysql v1.9.1/go.mod h1:qn46aNg1333BRMNU69Lq93t8du/dwxI64Gl8i5p1WMU=
github.com/go-sql-driver/mysql v1.9.2 h1:4cNKDYQ1I84SXslGddlsrMhc8k4LeDVj6Ad6WRjiHuU=
github.com/go-sql-driver/mysql v1.9.2/go.mod h1:qn46aNg1333BRMNU69Lq93t8du/dwxI64Gl8i5p1WMU=
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE=
github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI=
Expand Down Expand Up @@ -882,6 +882,8 @@ github.com/percona/percona-postgresql-operator v0.0.0-20250313094841-676233c83e2
github.com/percona/percona-postgresql-operator v0.0.0-20250313094841-676233c83e26/go.mod h1:3D56UIi6Z0Z2gduNUuBcgjd1RNht3N8RKKmR9Wbfu4o=
github.com/percona/percona-server-mongodb-operator v1.19.1 h1:lqIC7V80bZPJwjeYLYl/WA+QVQMHo193uEAx5zyIg84=
github.com/percona/percona-server-mongodb-operator v1.19.1/go.mod h1:BEw28t4Byx7NK3APLDc7KENgYxPyMPcDLN2ylML5Jo4=
github.com/percona/percona-server-mysql-operator v0.10.0 h1:LeSylRqqDQltrIp3VdUHNORr92U7y3fJb1WwukuFF6s=
github.com/percona/percona-server-mysql-operator v0.10.0/go.mod h1:76ei54qt/1KIwBVdaF3DHhW1lUSP8JwKLyEa3/9JmKw=
github.com/percona/percona-xtradb-cluster-operator v1.17.0 h1:TJSWG/C78jthN48NMW5ys5LOPU59lhTzVxtozUNkgqY=
github.com/percona/percona-xtradb-cluster-operator v1.17.0/go.mod h1:6uwWKdJiivkYaknuklbD8GVvJjZSTdpFtEUiVv+3TjM=
github.com/perimeterx/marshmallow v1.1.5 h1:a2LALqQ1BlHM8PZblsDdidgv1mWi1DgC2UmX50IvK2s=
Expand Down Expand Up @@ -960,6 +962,8 @@ github.com/reviewdog/reviewdog v0.20.3/go.mod h1:YAHHBArqeZv7Nf3YXwXvAlgSyjxTA4k
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
github.com/robfig/cron/v3 v3.0.2-0.20210106135023-bc59245fe10e h1:0xChnl3lhHiXbgSJKgChye0D+DvoItkOdkGcwelDXH0=
github.com/robfig/cron/v3 v3.0.2-0.20210106135023-bc59245fe10e/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro=
github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=
Expand Down Expand Up @@ -1541,8 +1545,8 @@ golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8T
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
gomodules.xyz/jsonpatch/v2 v2.0.1/go.mod h1:IhYNNY4jnS53ZnfE4PAmpKtDpTCj1JFXc+3mwe7XcUU=
gomodules.xyz/jsonpatch/v2 v2.4.0 h1:Ci3iUJyx9UeRx7CeFN8ARgGbkESwJK+KB9lLcWxY/Zw=
gomodules.xyz/jsonpatch/v2 v2.4.0/go.mod h1:AH3dM2RI6uoBZxn3LVrfvJ3E0/9dG4cSrbuBJT4moAY=
gomodules.xyz/jsonpatch/v2 v2.5.0 h1:JELs8RLM12qJGXU4u/TO3V25KW8GreMKl9pdkk14RM0=
gomodules.xyz/jsonpatch/v2 v2.5.0/go.mod h1:AH3dM2RI6uoBZxn3LVrfvJ3E0/9dG4cSrbuBJT4moAY=
google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE=
google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M=
google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
Expand Down
6 changes: 6 additions & 0 deletions internal/consts/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,26 @@ const (

// PXCDeploymentName is the name of the Percona XtraDB Cluster operator deployment.
PXCDeploymentName = "percona-xtradb-cluster-operator"
// PSDeploymentName is the name of the Percona Server for MySQL operator deployment.
PSDeploymentName = "percona-server-mysql-operator"
// PSMDBDeploymentName is the name of the Percona Server for MongoDB operator deployment.
PSMDBDeploymentName = "percona-server-mongodb-operator"
// PGDeploymentName is the name of the Percona PostgreSQL operator deployment.
PGDeploymentName = "percona-postgresql-operator"

// PXCAPIGroup is the API group for Percona XtraDB Cluster.
PXCAPIGroup = "pxc.percona.com"
// PSAPIGroup is the API group for Percona Server for MySQL Cluster.
PSAPIGroup = "ps.percona.com"
// PSMDBAPIGroup is the API group for Percona Server for MongoDB.
PSMDBAPIGroup = "psmdb.percona.com"
// PGAPIGroup is the API group for Percona PostgreSQL.
PGAPIGroup = "pgv2.percona.com"

// PerconaXtraDBClusterKind is the kind for Percona XtraDB Cluster.
PerconaXtraDBClusterKind = "PerconaXtraDBCluster"
// PerconaServerMySQLKind is the kind for Percona Server for MySQL Cluster.
PerconaServerMySQLKind = "PerconaServerMySQL"
// PerconaServerMongoDBKind is the kind for Percona Server for MongoDB.
PerconaServerMongoDBKind = "PerconaServerMongoDB"
// PerconaPGClusterKind is the kind for Percona PostgreSQL.
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/common/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ func deleteBackupsForDatabase(
return false, nil
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[golangci-lint] reported by reviewdog 🐶

Suggested change
return false, nil
return false, nil

}

// HandleUpstreamClusterCleanup handles the cleanup of the psdmb objects.
// HandleUpstreamClusterCleanup handles the cleanup of the upstream DB objects.
// Returns true if cleanup is complete.
func HandleUpstreamClusterCleanup(
ctx context.Context,
Expand Down
Loading
Loading