Skip to content

Commit

Permalink
NO-JIRA add sonar compatible commit message
Browse files Browse the repository at this point in the history
fix(securityContext sysctl): run the initSysctl initcontainer as root user for setting values
add changelog to chart.yaml
  • Loading branch information
Mikaciu-forvia authored and jCOTINEAU committed Dec 8, 2023
1 parent e7176ff commit 9a24fc4
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion charts/sonarqube-dce/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ All changes to this chart will be documented in this file.
## [10.4.0]
* Update Chart's version to 10.4.0
* Improve the description of deprecated `ApplicationNodes.jvmOpts` and `ApplicationNodes.jvmCeOpts` values
* Run the initSysctl init-container as root to prevent "permission denied" issues

## [10.3.0]
* Upgrade SonarQube to 10.3.0
Expand Down Expand Up @@ -239,7 +240,7 @@ All changes to this chart will be documented in this file.
* added link to community support forum

## [0.1.6]
* fixed wrong scc user reference if name was explicitly set
* fixed wrong scc user reference if name was explicitly set

## [0.1.5]
* fixed serviceaccount logic
Expand Down
2 changes: 2 additions & 0 deletions charts/sonarqube-dce/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ annotations:
description: "Update Chart's version to 10.4.0"
- kind: fixed
description: "Improve the description of deprecated 'ApplicationNodes.jvmOpts' and 'ApplicationNodes.jvmCeOpts' values"
- kind: changed
description: "Run the initSysctl init-container as root to prevent permission denied issues"
artifacthub.io/links: |
- name: support
url: https://community.sonarsource.com/
Expand Down
2 changes: 2 additions & 0 deletions charts/sonarqube-dce/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,8 @@ initSysctl:
securityContext:
# Compatible with podSecurity standard privileged
privileged: true
# if run without root permissions, error "sysctl: permission denied on key xxx, ignoring"
runAsUser: 0
# resources: {}

initFs:
Expand Down
1 change: 1 addition & 0 deletions charts/sonarqube/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ All changes to this chart will be documented in this file.
## [10.4.0]
* Update Chart's version to 10.4.0
* Improve the description of deprecated `jvmOpts` and `jvmCeOpts` values
* Run the initSysctl init-container as root to prevent "permission denied" issues

## [10.3.0]
* Upgrade SonarQube to 10.3.0
Expand Down
2 changes: 2 additions & 0 deletions charts/sonarqube/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ annotations:
description: "Update Chart's version to 10.4.0"
- kind: fixed
description: "Improve the description of deprecated 'jvmOpts' and 'jvmCeOpts' values"
- kind: changed
description: "Run the initSysctl init-container as root to prevent permission denied issues"
artifacthub.io/containsSecurityUpdates: "false"
artifacthub.io/images: |
- name: sonarqube
Expand Down
2 changes: 2 additions & 0 deletions charts/sonarqube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ initSysctl:
securityContext:
# Compatible with podSecurity standard privileged
privileged: true
# if run without root permissions, error "sysctl: permission denied on key xxx, ignoring"
runAsUser: 0
# resources: {}

# This should not be required anymore, used to chown/chmod folder created by faulty CSI driver that are not applying properly POSIX fsgroup.
Expand Down

0 comments on commit 9a24fc4

Please sign in to comment.