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

postgres: get version of postgreslet #191

Open
FrankEppink opened this issue Jul 4, 2022 · 4 comments
Open

postgres: get version of postgreslet #191

FrankEppink opened this issue Jul 4, 2022 · 4 comments

Comments

@FrankEppink
Copy link

postgres: get version of postgreslet

note that this issue applies to the version of the postgreslet itself and NOT to the version of the postgres database

@eberlep
Copy link
Collaborator

eberlep commented Jul 21, 2022

The postgreslet is a piece of glue code that connects the postgres-operator and the cloud-api.

The cloudctl postgres version command shows all major versions allowed by the cloud-api.

I think what you want is the complete version string, including the bugfix release. This information is however not present on the Cloud-API level but only ever exists within the configured Spilo Image used by the Postgres-Operator in the respective postgres partition. And even if it were accessible, the cloudctl postgres command never accesses the service cluster, so it is impossible to access such information anyway. And even then, we would have to show a list per postgres partition, which would blow up pretty fast anyway.

Closing this issue.

@eberlep eberlep closed this as completed Jul 21, 2022
@eberlep
Copy link
Collaborator

eberlep commented Jul 21, 2022

The only way I could think of would be returning it via the status, so it would show up in cloudctl postgres list. But that would too require that information to be available somehow...

@FrankEppink
Copy link
Author

I think this is a misunderstanding, this issue is about the version of the postgreslet i.e. of the glue code, NOT about the version of the postgres database. The version of the postgreslet depends on the cluster or the partition so it would be given on cluster/partition level i.e. the cluster/partition would need to be an input parameter to the issues command like

cloudctl postgreslet version <cluster-name>

@eberlep
Copy link
Collaborator

eberlep commented Jul 22, 2022

Sorry, I got that wrong then.

But the same problem still remains: the Cloud-API has no access to the partition, and right now we also have to place to actually store that information.

Reopening the issue anyway so we can think about it a bit more.

@eberlep eberlep reopened this Jul 22, 2022
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

No branches or pull requests

2 participants