jdamata / terraform-provider-sonarqube

Terraform provider for managing Sonarqube configuration
GNU General Public License v3.0
62 stars 56 forks source link

Provider versions jdamata/sonarqube >=0.15.12 not compatible with sonarqube Data Center edition #180

Closed Malgosiatobiasz1 closed 1 year ago

Malgosiatobiasz1 commented 1 year ago

Provider versions jdamata/sonarqube >=0.15.12 not compatible with sonarqube Data Center edition. Endpoint api/system/info does not have the Version key used by the provider. May I ask you to improve this? Below version 0.15.11 inclusive provider uses endpoint /api/server/version , then it is compatible with sonarqube-dce, could it be restored?

Malgosiatobiasz1 commented 1 year ago

Hi @jdamata , will provider in versions >=0.15.12 be compatible with sonarqube dce edition? Are you not planning to do anything about it? Thank you in advance for the information.

jdamata commented 1 year ago

What version of Sonarqube Data Center are you running?

This provider supports the LTS version of sonarqube editions and tries to keep up with the latest sonarqube images. We are missing DCE edition in the CI tests so that would be something we should add

Malgosiatobiasz1 commented 1 year ago

Hi, I am using sonarqube-dce 9.9

czw., 27 lip 2023, 17:07 użytkownik Joel Damata @.***> napisał:

What version of Sonarqube Data Center are you running?

— Reply to this email directly, view it on GitHub https://github.com/jdamata/terraform-provider-sonarqube/issues/180#issuecomment-1653815607, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI3PH3HJUT44AK6PJSBDUGTXSJ7ZNANCNFSM6AAAAAA2KIIXJI . You are receiving this because you authored the thread.Message ID: @.***>

Malgosiatobiasz1 commented 1 year ago

Hi @jdamata Can you roughly tell me when I can expect the provider to be updated to support the sonarqube dce edition?

jdamata commented 1 year ago

I haven't had time to look into this recently. I'll try to find some time this weekend to gauge how much work is actually involved

Malgosiatobiasz1 commented 1 year ago

@jdamata thank you very much.

jdamata commented 1 year ago

@Malgosiatobiasz1 took an initial stab to get a sense of the effort here: https://github.com/jdamata/terraform-provider-sonarqube/pull/183/files.

Configuring installed_version and installed_edition should hopefully get you unblocked for using most of the provider. I think there are some api discrepancies with the datacenter edition but hopefully they are not too many.

jdamata commented 1 year ago

All tests actually passed for DCE lts and latest versions: https://github.com/jdamata/terraform-provider-sonarqube/pull/183. You should be good after configuring the provider with installed_version and installed_edition

Malgosiatobiasz1 commented 1 year ago

Thanks a lot @jdamata