Skip to content
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

Migration to API version v1beta2 #67

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Migration to API version v1beta2 #67

wants to merge 14 commits into from

Conversation

allanger
Copy link
Member

@allanger allanger commented Oct 12, 2023

Well, it's a pretty big PR

Some breaking changes are introduced here, most important ones are

  • GSQL instances support are gone
  • database no longer creates configmaps
  • templatedSecrets are not supported anymore
  • Database spec is re-structured
  • Backups are removed

// when the Database resource is removed from Kubernetes
DeletionProtected bool `json:"deletionProtected"`
Postgres Postgres `json:"postgres,omitempty"`
// Mysql Mysql `json:"mysql,omitempty"`
Copy link

Choose a reason for hiding this comment

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

for later?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep

// Is db-operator able to connect to the database server
Connected bool `json:"connected"`
// A database server url that will be used for creating databases
URL string `json:"url,omitempty"`
Copy link

Choose a reason for hiding this comment

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

what is this doing? Status and comment with creating confuse me a little.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's just a URL of a database, a comment is probably confusing, I will change

go.mod Outdated
@@ -7,12 +7,12 @@ toolchain go1.22.4
replace github.com/imdario/mergo => github.com/imdario/mergo v0.3.16

require (
bou.ke/monkey v1.0.2
bou.ke/monkey v1.0.2 // indirect
Copy link

Choose a reason for hiding this comment

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

go mod tidy? could not found any monkey patching in this branch.

Copy link
Member Author

Choose a reason for hiding this comment

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

Should be gone now

log.Error(err, "can't get port information from the instanceRef")
return nil, nil, err
}
func FetchDbInstanceData(ctx context.Context) {
Copy link

Choose a reason for hiding this comment

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

to keep the interface, or a todo missing?

Copy link
Member Author

Choose a reason for hiding this comment

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

I wanted to separate the database helper code into database and instance too, but then I thought that it should be another PR.
I will remove that function

Nikolai Rodionov and others added 4 commits November 7, 2024 18:30
Google instance are removed as well as a lot of different things that I
would like to move to Databases or other resources.
Some minor refactoring mostly, also `go mod tidy` and linters
Since none of devs seem to use Lima, the config is not maintained
@allanger allanger changed the title WIP: Migration to API version v1beta2 Migration to API version v1beta2 Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants