Skip to content

Commit 2141eb1

Browse files
authored
Merge pull request #15 from squareops/release-3.0.1
Release 3.0.1
2 parents 1f0aa2d + c4953a3 commit 2141eb1

File tree

15 files changed

+166
-39
lines changed

15 files changed

+166
-39
lines changed

IAM.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ description: Allows describing GKE clusters
4444
stage: GA
4545
includedPermissions:
4646
- container.clusters.get
47-
```
47+
```

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,32 @@ The module deploys a Sonarqube instance on a Kubernetes cluster. Sonarqube is an
1212

1313
| Sonarqube Helm Chart Version | K8s supported version (EKS, AKS & GKE) |
1414
| :-----: | :--- |
15-
| **1.0.30** | **1.23,1.24,1.25,1.26,1.27** |
15+
| **1.0.30** | **1.23,1.24,1.25,1.26,1.27,1.28,1.29,1.30** |
1616

1717

1818
## Usage Example
1919

2020
```hcl
2121
module "sonarqube" {
22-
source = "https://github.com/sq-ia/terraform-kubernetes-sonarqube.git"
22+
source = "https://github.com/squareops/terraform-kubernetes-sonarqube.git"
2323
sonarqube_config = {
2424
hostname = "sonarqube.squareops.in"
25-
exporter_enable = false
26-
sonarqube_volume_size = "5Gi"
25+
values_yaml = file("./helm/values.yaml")
2726
storage_class_name = "gp2"
27+
sonarqube_volume_size = "5Gi"
28+
postgresql_volume_size = "20Gi"
29+
grafana_monitoring_enabled = false
2830
postgresql_password_external = ""
2931
postgresql_external_server_url = ""
30-
postgresql_volume_size = "20Gi"
3132
}
3233
}
33-
3434
```
35-
- Refer [AWS examples](https://github.com/sq-ia/terraform-kubernetes-sonarqube/tree/main/examples/complete/aws) for more details.
36-
- Refer [Azure examples](https://github.com/sq-ia/terraform-kubernetes-sonarqube/tree/main/examples/complete/azure) for more details.
37-
- Refer [GCP examples](https://github.com/sq-ia/terraform-kubernetes-sonarqube/tree/main/examples/complete/gcp) for more details.
35+
- Refer [AWS examples](https://github.com/squareops/terraform-kubernetes-sonarqube/tree/main/examples/complete/aws) for more details.
36+
- Refer [Azure examples](https://github.com/squareops/terraform-kubernetes-sonarqube/tree/main/examples/complete/azure) for more details.
37+
- Refer [GCP examples](https://github.com/squareops/terraform-kubernetes-sonarqube/tree/main/examples/complete/gcp) for more details.
3838

3939
## IAM Permissions
40-
The required IAM permissions to create resources from this module can be found [here](https://github.com/sq-ia/terraform-kubernetes-sonarqube/blob/main/IAM.md)
40+
The required IAM permissions to create resources from this module can be found [here](https://github.com/squareops/terraform-kubernetes-sonarqube/blob/main/IAM.md)
4141

4242
## Important Notes
4343
1. In order to enable the exporter, it is required to deploy Prometheus/Grafana first.
@@ -79,15 +79,15 @@ No modules.
7979

8080
| Name | Description | Type | Default | Required |
8181
|------|-------------|------|---------|:--------:|
82-
| <a name="input_chart_version"></a> [chart\_version](#input\_chart\_version) | Version of the Jenkins chart that will be used to deploy Jenkins application. | `string` | `"1.0.30"` | no |
82+
| <a name="input_chart_version"></a> [chart\_version](#input\_chart\_version) | Version of the Jenkins chart that will be used to deploy Jenkins application. | `string` | `"10.6.1"` | no |
8383
| <a name="input_namespace"></a> [namespace](#input\_namespace) | Name of the Kubernetes namespace where the Jenkins deployment will be deployed. | `string` | `"sonarqube"` | no |
8484
| <a name="input_sonarqube_config"></a> [sonarqube\_config](#input\_sonarqube\_config) | Specify the configuration settings for Sonarqube, including the hostname, storage options, and custom YAML values. | `any` | <pre>{<br> "grafana_monitoring_enabled": false,<br> "hostname": "",<br> "postgresql_external_server_url": "",<br> "postgresql_password_external": "",<br> "postgresql_volume_size": "",<br> "sonarqube_volume_size": "",<br> "storage_class_name": "",<br> "values_yaml": ""<br>}</pre> | no |
8585

8686
## Outputs
8787

8888
| Name | Description |
8989
|------|-------------|
90-
| <a name="output_sonarqube"></a> [sonarqube](#output\_sonarqube) | Sonarqube\_Info |
90+
| <a name="output_sonarqube"></a> [sonarqube](#output\_sonarqube) | Sonarqube Credentials |
9191
| <a name="output_sonarqube_postgresql_password"></a> [sonarqube\_postgresql\_password](#output\_sonarqube\_postgresql\_password) | Password for the PostgreSQL database deployed with SonarQube |
9292
| <a name="output_sonarqube_postgresql_username"></a> [sonarqube\_postgresql\_username](#output\_sonarqube\_postgresql\_username) | Username for the PostgreSQL database deployed with SonarQube |
9393
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
@@ -96,7 +96,7 @@ No modules.
9696

9797
To report an issue with a project:
9898

99-
1. Check the repository's [issue tracker](https://github.com/sq-ia/terraform-kubernetes-sonarqube/issues) on GitHub
99+
1. Check the repository's [issue tracker](https://github.com/squareops/terraform-kubernetes-sonarqube/issues) on GitHub
100100
2. Search to see if the issue has already been reported
101101
3. If you can't find an answer to your question in the documentation or issue tracker, you can ask a question by creating a new issue. Be sure to provide enough context and details so others can understand your problem.
102102

@@ -108,7 +108,7 @@ Apache License, Version 2.0, January 2004 (http://www.apache.org/licenses/).
108108

109109
To support a GitHub project by liking it, you can follow these steps:
110110

111-
1. Visit the repository: Navigate to the [GitHub repository](https://github.com/sq-ia/terraform-kubernetes-sonarqube).
111+
1. Visit the repository: Navigate to the [GitHub repository](https://github.com/squareops/terraform-kubernetes-sonarqube).
112112

113113
2. Click the "Star" button: On the repository page, you'll see a "Star" button in the upper right corner. Clicking on it will star the repository, indicating your support for the project.
114114

examples/complete/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ No requirements.
2323

2424
| Name | Source | Version |
2525
|------|--------|---------|
26-
| <a name="module_sonarqube"></a> [sonarqube](#module\_sonarqube) | https://github.com/sq-ia/terraform-kubernetes-sonarqube.git | n/a |
26+
| <a name="module_sonarqube"></a> [sonarqube](#module\_sonarqube) | https://github.com/squareops/terraform-kubernetes-sonarqube.git | n/a |
2727

2828
## Resources
2929

examples/complete/aws/README.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ No requirements.
1414

1515
| Name | Source | Version |
1616
|------|--------|---------|
17-
| <a name="module_sonarqube"></a> [sonarqube](#module\_sonarqube) | https://github.com/sq-ia/terraform-kubernetes-sonarqube.git | n/a |
17+
| <a name="module_sonarqube"></a> [sonarqube](#module\_sonarqube) | https://github.com/squareops/terraform-kubernetes-sonarqube.git | n/a |
1818

1919
## Resources
2020

@@ -34,4 +34,40 @@ No inputs.
3434
| <a name="output_postgresql_password"></a> [postgresql\_password](#output\_postgresql\_password) | Password for the PostgreSQL database deployed with SonarQube |
3535
| <a name="output_postgresql_username"></a> [postgresql\_username](#output\_postgresql\_username) | Username for the PostgreSQL database deployed with SonarQube |
3636
| <a name="output_sonarqube"></a> [sonarqube](#output\_sonarqube) | Sonarqube\_Info |
37-
<!-- END_TF_DOCS -->
37+
<!-- END_TF_DOCS -->
38+
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
39+
## Requirements
40+
41+
No requirements.
42+
43+
## Providers
44+
45+
| Name | Version |
46+
|------|---------|
47+
| <a name="provider_aws"></a> [aws](#provider\_aws) | n/a |
48+
49+
## Modules
50+
51+
| Name | Source | Version |
52+
|------|--------|---------|
53+
| <a name="module_sonarqube"></a> [sonarqube](#module\_sonarqube) | squareops/sonarqube/kubernetes | 3.0.1 |
54+
55+
## Resources
56+
57+
| Name | Type |
58+
|------|------|
59+
| [aws_eks_cluster.cluster](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/eks_cluster) | data source |
60+
| [aws_eks_cluster_auth.cluster](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/eks_cluster_auth) | data source |
61+
62+
## Inputs
63+
64+
No inputs.
65+
66+
## Outputs
67+
68+
| Name | Description |
69+
|------|-------------|
70+
| <a name="output_postgresql_password"></a> [postgresql\_password](#output\_postgresql\_password) | Password for the PostgreSQL database deployed with SonarQube |
71+
| <a name="output_postgresql_username"></a> [postgresql\_username](#output\_postgresql\_username) | Username for the PostgreSQL database deployed with SonarQube |
72+
| <a name="output_sonarqube"></a> [sonarqube](#output\_sonarqube) | Sonarqube\_Info |
73+
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
resources:
22
limits:
3-
cpu: 1000m
4-
memory: 4Gi
3+
cpu: 500m
4+
memory: 2Gi
55
requests:
6-
cpu: 100m
7-
memory: 1.75Gi
6+
cpu: 200m
7+
memory: 1.5Gi
8+
affinity:
9+
nodeAffinity:
10+
requiredDuringSchedulingIgnoredDuringExecution:
11+
nodeSelectorTerms:
12+
- matchExpressions:
13+
- key: "Addons-Services"
14+
operator: In
15+
values:
16+
- "true"

examples/complete/aws/main.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
locals {
2-
name = "sonarqube"
3-
region = "us-east-2"
4-
environment = "prod"
2+
name = ""
3+
region = ""
4+
environment = ""
55
additional_tags = {
66
Owner = "organization_name"
77
Expires = "Never"
@@ -10,7 +10,8 @@ locals {
1010
}
1111

1212
module "sonarqube" {
13-
source = "https://github.com/sq-ia/terraform-kubernetes-sonarqube.git"
13+
source = "squareops/sonarqube/kubernetes"
14+
version = "3.0.1"
1415
sonarqube_config = {
1516
hostname = "sonarqube.squareops.in"
1617
values_yaml = file("./helm/values.yaml")

examples/complete/azure/README.md

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ No requirements.
1515

1616
| Name | Source | Version |
1717
|------|--------|---------|
18-
| <a name="module_sonarqube"></a> [sonarqube](#module\_sonarqube) | https://github.com/sq-ia/terraform-kubernetes-sonarqube.git | n/a |
18+
| <a name="module_sonarqube"></a> [sonarqube](#module\_sonarqube) | https://github.com/squareops/terraform-kubernetes-sonarqube.git | n/a |
1919

2020
## Resources
2121

@@ -34,4 +34,39 @@ No inputs.
3434
| <a name="output_postgresql_password"></a> [postgresql\_password](#output\_postgresql\_password) | Password for the PostgreSQL database deployed with SonarQube |
3535
| <a name="output_postgresql_username"></a> [postgresql\_username](#output\_postgresql\_username) | Username for the PostgreSQL database deployed with SonarQube |
3636
| <a name="output_sonarqube"></a> [sonarqube](#output\_sonarqube) | Sonarqube\_Info |
37-
<!-- END_TF_DOCS -->
37+
<!-- END_TF_DOCS -->
38+
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
39+
## Requirements
40+
41+
No requirements.
42+
43+
## Providers
44+
45+
| Name | Version |
46+
|------|---------|
47+
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | n/a |
48+
49+
## Modules
50+
51+
| Name | Source | Version |
52+
|------|--------|---------|
53+
| <a name="module_sonarqube"></a> [sonarqube](#module\_sonarqube) | squareops/sonarqube/kubernetes | 3.0.1 |
54+
55+
## Resources
56+
57+
| Name | Type |
58+
|------|------|
59+
| [azurerm_kubernetes_cluster.primary](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/kubernetes_cluster) | data source |
60+
61+
## Inputs
62+
63+
No inputs.
64+
65+
## Outputs
66+
67+
| Name | Description |
68+
|------|-------------|
69+
| <a name="output_postgresql_password"></a> [postgresql\_password](#output\_postgresql\_password) | Password for the PostgreSQL database deployed with SonarQube |
70+
| <a name="output_postgresql_username"></a> [postgresql\_username](#output\_postgresql\_username) | Username for the PostgreSQL database deployed with SonarQube |
71+
| <a name="output_sonarqube"></a> [sonarqube](#output\_sonarqube) | Sonarqube\_Info |
72+
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

examples/complete/azure/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ locals {
1010
}
1111

1212
module "sonarqube" {
13-
source = "https://github.com/sq-ia/terraform-kubernetes-sonarqube.git"
13+
source = "squareops/sonarqube/kubernetes"
14+
version = "3.0.1"
1415
sonarqube_config = {
1516
hostname = "sonarqube.skaf.squareops.in"
1617
values_yaml = file("./helm/values.yaml")

examples/complete/gcp/README.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ No requirements.
1414

1515
| Name | Source | Version |
1616
|------|--------|---------|
17-
| <a name="module_sonarqube"></a> [sonarqube](#module\_sonarqube) | https://github.com/sq-ia/terraform-kubernetes-sonarqube.git | n/a |
17+
| <a name="module_sonarqube"></a> [sonarqube](#module\_sonarqube) | https://github.com/squareops/terraform-kubernetes-sonarqube.git | n/a |
1818

1919
## Resources
2020

@@ -34,4 +34,40 @@ No inputs.
3434
| <a name="output_postgresql_password"></a> [postgresql\_password](#output\_postgresql\_password) | Password for the PostgreSQL database deployed with SonarQube |
3535
| <a name="output_postgresql_username"></a> [postgresql\_username](#output\_postgresql\_username) | Username for the PostgreSQL database deployed with SonarQube |
3636
| <a name="output_sonarqube"></a> [sonarqube](#output\_sonarqube) | Sonarqube\_Info |
37-
<!-- END_TF_DOCS -->
37+
<!-- END_TF_DOCS -->
38+
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
39+
## Requirements
40+
41+
No requirements.
42+
43+
## Providers
44+
45+
| Name | Version |
46+
|------|---------|
47+
| <a name="provider_google"></a> [google](#provider\_google) | n/a |
48+
49+
## Modules
50+
51+
| Name | Source | Version |
52+
|------|--------|---------|
53+
| <a name="module_sonarqube"></a> [sonarqube](#module\_sonarqube) | squareops/sonarqube/kubernetes | 3.0.1 |
54+
55+
## Resources
56+
57+
| Name | Type |
58+
|------|------|
59+
| [google_client_config.default](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/client_config) | data source |
60+
| [google_container_cluster.primary](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/container_cluster) | data source |
61+
62+
## Inputs
63+
64+
No inputs.
65+
66+
## Outputs
67+
68+
| Name | Description |
69+
|------|-------------|
70+
| <a name="output_postgresql_password"></a> [postgresql\_password](#output\_postgresql\_password) | Password for the PostgreSQL database deployed with SonarQube |
71+
| <a name="output_postgresql_username"></a> [postgresql\_username](#output\_postgresql\_username) | Username for the PostgreSQL database deployed with SonarQube |
72+
| <a name="output_sonarqube"></a> [sonarqube](#output\_sonarqube) | Sonarqube\_Info |
73+
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

examples/complete/gcp/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ locals {
1010
}
1111

1212
module "sonarqube" {
13-
source = "https://github.com/sq-ia/terraform-kubernetes-sonarqube.git"
13+
source = "squareops/sonarqube/kubernetes"
14+
version = "3.0.1"
1415
sonarqube_config = {
1516
hostname = "sonarqube.squareops.in"
1617
values_yaml = file("./helm/values.yaml")

0 commit comments

Comments
 (0)