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

Add the possibility of to save the data with hostpath. #605

Open
wants to merge 37 commits into
base: master
Choose a base branch
from

Conversation

jbazp
Copy link

@jbazp jbazp commented Dec 11, 2024

Sonarqube will not have more than one instance at a time, I want it to always run on a node and within that node save the information with hostpath, I do not want PVC or PV, I want to directly access the host disk to save it and it will go very quickly , easy and without intermediaries (Storage Provider).

Please ensure your pull request adheres to the following guidelines:

  • Document your Changes in the CHANGELOG.md file of the respected chart as well as the Chart.yaml

@davividal
Copy link
Collaborator

davividal commented Dec 23, 2024

Hi @jbazp.

Thank you for your contribution. It looks like a cool improvement.

Could you please rebase your branch against the current master and provide a testing values.yaml under tests/unit-compatibility-test/sonarqube?

EDIT: when adding your testing values.yaml, make sure that you have pre-commit configured or run .cirrus/generate_helm_fixtures.sh manually.

Can you also replicate this to the sonarqube-dce chart?

@davividal davividal self-requested a review December 23, 2024 10:30
@davividal davividal self-assigned this Dec 23, 2024
@jbazp
Copy link
Author

jbazp commented Dec 27, 2024

Hi @davividal! I made the changes you requested me, Can you check again?

Copy link
Collaborator

@davividal davividal left a comment

Choose a reason for hiding this comment

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

How did you generate both tests/unit-compatibility-test/fixtures/sonarqube-dce/host-path-values.yaml and tests/unit-compatibility-test/fixtures/sonarqube/host-path-values.yaml?

They look like a copy of tests/dynamic-compatibility-test/sonarqube-dce/all-values.yaml and tests/dynamic-compatibility-test/sonarqube/all-values.yaml.
Did you run the .cirrus/generate_helm_fixtures.sh script?

@@ -1,6 +1,9 @@
# SonarQube Chart Changelog
All changes to this chart will be documented in this file.

## [2025.1.1]
* Add the possibility of to save the data with hostpath.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This must be under the 2025.1.0 version.

@@ -2,7 +2,7 @@ apiVersion: v2
name: sonarqube-dce
description: SonarQube is a self-managed, automatic code review tool that systematically helps you deliver clean code. As a core element of our Sonar solution, SonarQube integrates into your existing workflow and detects issues in your code to help you perform continuous code inspections of your projects. The tool analyses 30+ different programming languages and integrates into your CI pipeline and DevOps platform to ensure that your code meets high-quality standards.
type: application
version: 2025.1.0
version: 2025.1.1
Copy link
Collaborator

Choose a reason for hiding this comment

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

This must remain as 2025.1.0.

Copy link
Author

@jbazp jbazp Dec 27, 2024

Choose a reason for hiding this comment

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

done!

@jbazp
Copy link
Author

jbazp commented Dec 27, 2024

Yes!

First, I created the values.yaml files:

  • tests/unit-compatibility-test/sonarqube/host-path-values.yaml]
  • tests/unit-compatibility-test/sonarqube-dce/host-path-values.yaml

And finally, I ran .cirrus/generate_helm_fixtures.sh locally and it genereted me the following files:

  • tests/unit-compatibility-test/fixtures/sonarqube/host-path-values.yaml
  • tests/unit-compatibility-test/fixtures/sonarqube-dce/host-path-values.yaml

@jbazp
Copy link
Author

jbazp commented Jan 8, 2025

Hi @davividal! Do you need anything else?

Copy link
Collaborator

@davividal davividal left a comment

Choose a reason for hiding this comment

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

One last fix before I can merge this. :)

charts/sonarqube/CHANGELOG.md Outdated Show resolved Hide resolved
@davividal
Copy link
Collaborator

@jbazp can you rebase from master, please?

# Conflicts:
#	charts/sonarqube-dce/CHANGELOG.md
#	charts/sonarqube/CHANGELOG.md
@jbazp
Copy link
Author

jbazp commented Jan 9, 2025

@davividal I did the rebase.

@jbazp
Copy link
Author

jbazp commented Jan 13, 2025

Hi @davividal ! Can you merge the PR? Otherwise I have to do rebase constantly.

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.

3 participants