-
Notifications
You must be signed in to change notification settings - Fork 10
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
base: main
Are you sure you want to change the base?
Conversation
3398b16
to
be62534
Compare
295bd19
to
de29ea4
Compare
// when the Database resource is removed from Kubernetes | ||
DeletionProtected bool `json:"deletionProtected"` | ||
Postgres Postgres `json:"postgres,omitempty"` | ||
// Mysql Mysql `json:"mysql,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for later?
There was a problem hiding this comment.
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"` |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
f25bb70
to
ed07c0f
Compare
0a07a06
to
96b5ca4
Compare
TemplatedSecrets are replaced with credentials.secrets, so they should be gone
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
Well, it's a pretty big PR
Some breaking changes are introduced here, most important ones are