Skip to content

Commit

Permalink
chore(k8s_sonarqube): upgrade chart (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiteshnayak305 authored Jan 24, 2025
1 parent f3c6746 commit 8ee83bf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
18 changes: 8 additions & 10 deletions roles/k8s_sonarqube/files/sonarqube_postgresql_values.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# Copyright VMware, Inc.
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0

## @section Global parameters
Expand Down Expand Up @@ -37,18 +37,17 @@ primary:
name: primary

## PostgreSQL Primary resource requests and limits
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
## @param primary.resources.limits The resources limits for the PostgreSQL Primary containers
## @param primary.resources.requests.memory The requested memory for the PostgreSQL Primary containers
## @param primary.resources.requests.cpu The requested cpu for the PostgreSQL Primary containers
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
## @param primary.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if primary.resources is set (primary.resources is recommended for production).
## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
##
resources:
limits:
cpu: 150m
memory: 250Mi
cpu: 500m
memory: 512Mi
requests:
cpu: 100m
memory: 128Mi
cpu: 200m
memory: 256Mi

## @param primary.affinity Affinity for PostgreSQL primary pods assignment
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
Expand Down Expand Up @@ -105,7 +104,6 @@ volumePermissions:

## @section Metrics Parameters
##

metrics:
## @param metrics.enabled Start a prometheus exporter
##
Expand Down
6 changes: 4 additions & 2 deletions roles/k8s_sonarqube/files/sonarqube_values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ community:

image:
repository: docker.io/hiteshnayak305/sonarqube
# (DEPRECATED) The "image.tag" parameter will be set to be empty as default.
tag: ""

# will be used as default for ingress path and probes path, will be injected in .Values.env as SONAR_WEB_CONTEXT
# if .Values.env.SONAR_WEB_CONTEXT is set, this value will be ignored
Expand Down Expand Up @@ -110,6 +108,10 @@ env:
- name: SONAR_SEARCH_JAVAADDITIONALOPTS
value: "-Dnode.store.allow_mmap=false"

## a monitoring passcode needs to be defined in order to get reasonable probe results
# not setting the monitoring passcode will result in a deployment that will never be ready
monitoringPasscode: "sonarPass"

## We usually don't make specific resource recommendations, as they are heavily dependant on
## the usage of SonarQube and the surrounding infrastructure.
## Those default are based on the default Web -Xmx1G -Xms128m and CE -Xmx2G -Xms128m and Search -Xmx2G -Xms2G settings of SQ sub processes
Expand Down
6 changes: 3 additions & 3 deletions roles/k8s_sonarqube/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
mode: "0777"
changed_when: false

- name: Deploy version 12 of postgresql chart
- name: Deploy version 16 of postgresql chart
kubernetes.core.helm:
name: sonarqube-postgresql
chart_ref: bitnami/postgresql
chart_version: 12.12.10
chart_version: 16.4.5
update_repo_cache: true
release_namespace: sonarqube-system
create_namespace: false
Expand Down Expand Up @@ -73,7 +73,7 @@
kubernetes.core.helm:
name: sonarqube
chart_ref: sonarqube/sonarqube
chart_version: 10.8.1
chart_version: 2025.1.0
update_repo_cache: true
release_namespace: sonarqube-system
create_namespace: false
Expand Down

0 comments on commit 8ee83bf

Please sign in to comment.