Skip to content

EVEREST-1899 Replace REST-based Kubernetes client with controller-runtime.Client #1173

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

Merged
merged 35 commits into from
Apr 16, 2025
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
25eeac6
EVEREST-1899 Replace REST-based Kubernetes client with controller-run…
maxkondr Mar 7, 2025
c485564
Adjust functional tests
maxkondr Mar 13, 2025
101bd37
Merge branch 'main' into EVEREST-1899-controller-client
maxkondr Mar 13, 2025
e014aaf
Fix tools
maxkondr Mar 13, 2025
3ed45a7
Fix DeleteDatabaseClusterBackup method declaration
maxkondr Mar 15, 2025
046176c
Merge branch 'main' into EVEREST-1899-controller-client
maxkondr Mar 15, 2025
d53649b
Remove absolute code
maxkondr Mar 15, 2025
c1f34c1
Merge branch 'main' into EVEREST-1899-controller-client
percona-robot Mar 17, 2025
52009dd
Merge branch 'main' into EVEREST-1899-controller-client
percona-robot Mar 18, 2025
40745b0
Merge branch 'main' into EVEREST-1899-controller-client
percona-robot Mar 18, 2025
3c1f0ab
Merge branch 'main' into EVEREST-1899-controller-client
maxkondr Mar 18, 2025
8d4c98a
Update go.mod
maxkondr Mar 18, 2025
f268753
EVEREST-1899 Review fixes
maxkondr Mar 18, 2025
ab5470a
EVEREST-1899 Linter fixes
maxkondr Mar 18, 2025
a64e53f
Merge branch 'main' into EVEREST-1899-controller-client
maxkondr Mar 19, 2025
cfe812e
Merge branch 'main' into EVEREST-1899-controller-client
percona-robot Mar 19, 2025
309a2d4
EVEREST-1899 Review fixes
maxkondr Mar 19, 2025
9f62915
EVEREST-1899 Review fixes
maxkondr Mar 19, 2025
3e3e020
Merge branch 'main' into EVEREST-1899-controller-client
percona-robot Mar 20, 2025
4a200ab
Merge branch 'main' into EVEREST-1899-controller-client
percona-robot Mar 20, 2025
9563e23
Merge branch 'main' into EVEREST-1899-controller-client
percona-robot Mar 20, 2025
a649fa8
Merge branch 'main' into EVEREST-1899-controller-client
percona-robot Mar 21, 2025
3ab6f5f
EVEREST-1899 Fix merge issues
maxkondr Mar 21, 2025
c80e925
EVEREST-1899 Review fixes
maxkondr Mar 21, 2025
80ee2e6
EVEREST-1899 Fix formatting
maxkondr Mar 21, 2025
8ec88d5
Merge branch 'main' into EVEREST-1899-controller-client
percona-robot Mar 21, 2025
1a7e235
Merge branch 'main' into EVEREST-1899-controller-client
percona-robot Mar 21, 2025
908f3b7
Merge branch 'main' into EVEREST-1899-controller-client
percona-robot Mar 21, 2025
1b8871c
Merge branch 'main' into EVEREST-1899-controller-client
percona-robot Mar 24, 2025
03b7998
Merge branch 'main' into EVEREST-1899-controller-client
percona-robot Mar 24, 2025
86bf1f8
Merge branch 'main' into EVEREST-1899-controller-client
maxkondr Apr 8, 2025
56a1cb1
Merge branch 'main' into EVEREST-1899-controller-client
percona-robot Apr 8, 2025
320583a
Merge branch 'main' into EVEREST-1899-controller-client
percona-robot Apr 8, 2025
e4435de
Merge branch 'main' into EVEREST-1899-controller-client
maxkondr Apr 15, 2025
1d1e134
Update go.sum
maxkondr Apr 16, 2025
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
2 changes: 1 addition & 1 deletion commands/settings/rbac/can.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func settingsRBACCanPreRunE(cmd *cobra.Command, args []string) error { //nolint:
}

func settingsRBACCanRun(cmd *cobra.Command, args []string) {
var k *kubernetes.Kubernetes
var k kubernetes.KubernetesConnector
if rbacCanPolicyFilePath == "" {
// check over policy in Everest deployment (ConfigMap).
var l *zap.SugaredLogger
Expand Down
2 changes: 1 addition & 1 deletion commands/settings/rbac/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func settingsRBACValidatePreRun(cmd *cobra.Command, _ []string) { //nolint:reviv
}

func settingsRBACValidateRun(cmd *cobra.Command, _ []string) {
var k *kubernetes.Kubernetes
var k kubernetes.KubernetesConnector
if rbacValidatePolicyFilePath == "" {
// check over policy in Everest deployment (ConfigMap).
var l *zap.SugaredLogger
Expand Down
2 changes: 1 addition & 1 deletion commands/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func versionRunE(cmd *cobra.Command, _ []string) error { //nolint:revive
cmdLogger := logger.GetLogger().With("component", "version")

if !clientOnlyFlag {
k, err := utils.NewKubeclient(cmdLogger, rootCmdFlags.KubeconfigPath)
k, err := utils.NewKubeConnector(cmdLogger, rootCmdFlags.KubeconfigPath)
if err != nil {
return err
}
Expand Down
21 changes: 11 additions & 10 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ require (
github.com/oapi-codegen/echo-middleware v1.0.2
github.com/oapi-codegen/runtime v1.1.1
github.com/operator-framework/api v0.27.0
github.com/operator-framework/operator-lifecycle-manager v0.27.0
github.com/percona/everest-operator v0.6.0-dev1.0.20250311105525-f41867ec50fc
github.com/percona/percona-helm-charts/charts/everest v0.0.0-20250303201303-d0a9b3ab002d
github.com/rodaine/table v1.3.0
Expand Down Expand Up @@ -64,7 +63,6 @@ require (
)

require (
cel.dev/expr v0.18.0 // indirect
dario.cat/mergo v1.0.1 // indirect
filippo.io/edwards25519 v1.1.0 // indirect
github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24 // indirect
Expand All @@ -77,14 +75,16 @@ require (
github.com/Masterminds/semver/v3 v3.3.0 // indirect
github.com/Masterminds/sprig/v3 v3.3.0 // indirect
github.com/Masterminds/squirrel v1.5.4 // indirect
github.com/antlr4-go/antlr/v4 v4.13.0 // indirect
github.com/Microsoft/hcsshim v0.12.0-rc.0 // indirect
github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
github.com/atotto/clipboard v0.1.4 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/bmatcuk/doublestar/v4 v4.6.1 // indirect
github.com/bugsnag/bugsnag-go v1.5.3 // indirect
github.com/bugsnag/panicwrap v1.2.0 // indirect
github.com/cert-manager/cert-manager v1.16.2 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/chai2010/gettext-go v1.0.2 // indirect
Expand All @@ -104,6 +104,7 @@ require (
github.com/docker/docker-credential-helpers v0.8.0 // indirect
github.com/docker/go-connections v0.5.0 // indirect
github.com/docker/go-metrics v0.0.1 // indirect
github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7 // indirect
github.com/emicklei/go-restful/v3 v3.12.1 // indirect
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
github.com/evanphx/json-patch v5.9.0+incompatible // indirect
Expand All @@ -112,6 +113,7 @@ require (
github.com/fatih/color v1.18.0 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/flosch/pongo2/v6 v6.0.0 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
github.com/go-errors/errors v1.5.0 // indirect
github.com/go-gorp/gorp/v3 v3.1.0 // indirect
Expand All @@ -125,11 +127,11 @@ require (
github.com/go-test/deep v1.1.0 // indirect
github.com/gobwas/glob v0.2.3 // indirect
github.com/goccy/go-json v0.10.3 // indirect
github.com/gofrs/uuid v3.3.0+incompatible // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/btree v1.1.3 // indirect
github.com/google/cel-go v0.22.0 // indirect
github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
Expand All @@ -139,8 +141,6 @@ require (
github.com/gosuri/uitable v0.0.4 // indirect
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.24.0 // indirect
github.com/h2non/filetype v1.1.3 // indirect
github.com/h2non/go-is-svg v0.0.0-20160927212452-35e8c4b0612c // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/huandu/xstrings v1.5.0 // indirect
Expand All @@ -150,6 +150,7 @@ require (
github.com/jmoiron/sqlx v1.4.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 // indirect
github.com/klauspost/compress v1.17.11 // indirect
github.com/klauspost/pgzip v1.2.6 // indirect
github.com/labstack/gommon v0.4.2 // indirect
Expand Down Expand Up @@ -184,10 +185,8 @@ require (
github.com/muesli/termenv v0.15.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
github.com/onsi/gomega v1.36.2 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.1.0 // indirect
github.com/operator-framework/operator-registry v1.35.0 // indirect
github.com/percona/percona-backup-mongodb v1.8.1-0.20241212160532-0157f87a7eee // indirect
github.com/percona/percona-postgresql-operator v0.0.0-20241007204305-35d61aa5aebd // indirect
github.com/percona/percona-server-mongodb-operator v1.19.1 // indirect
Expand All @@ -209,7 +208,6 @@ require (
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/spf13/cast v1.7.0 // indirect
github.com/spf13/pflag v1.0.6 // indirect
github.com/stoewer/go-strcase v1.3.0 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/ugorji/go/codec v1.2.12 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
Expand All @@ -223,18 +221,21 @@ require (
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
github.com/xlab/treeprint v1.2.0 // indirect
github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78 // indirect
github.com/yvasiyarov/go-metrics v0.0.0-20150112132944-c25f46c4b940 // indirect
github.com/yvasiyarov/gorelic v0.0.7 // indirect
github.com/yvasiyarov/newrelic_platform_go v0.0.0-20160601141957-9c099fbc30e9 // indirect
go.mongodb.org/mongo-driver v1.17.1 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.55.0 // indirect
go.opentelemetry.io/otel v1.31.0 // indirect
go.opentelemetry.io/otel/metric v1.31.0 // indirect
go.opentelemetry.io/otel/trace v1.31.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
golang.org/x/net v0.35.0 // indirect
golang.org/x/oauth2 v0.24.0 // indirect
golang.org/x/sync v0.12.0 // indirect
golang.org/x/sys v0.31.0 // indirect
golang.org/x/text v0.23.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20241118233622-e639e219e697 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241118233622-e639e219e697 // indirect
google.golang.org/grpc v1.69.2 // indirect
Expand Down
Loading
Loading