[Grafana] Fix uid for the grafana user

The correct uid for the grafana user is 472 (see official docs).

Change-Id: I54c210e21ae2f10c9f0929764466d3c504b777ce
This commit is contained in:
vs422h (Vladimir Sigunov) 2022-12-28 13:54:46 -05:00
parent 0aad6d05f0
commit 8232476426
4 changed files with 15 additions and 8 deletions

View File

@ -15,7 +15,7 @@ apiVersion: v1
appVersion: v8.5.10 appVersion: v8.5.10
description: OpenStack-Helm Grafana description: OpenStack-Helm Grafana
name: grafana name: grafana
version: 0.1.16 version: 0.1.17
home: https://grafana.com/ home: https://grafana.com/
sources: sources:
- https://github.com/grafana/grafana - https://github.com/grafana/grafana

View File

@ -14,7 +14,7 @@ limitations under the License.
*/}} */}}
echo "Attempting to update Grafana admin user password" echo "Attempting to update Grafana admin user password"
grafana-cli admin reset-admin-password --homepath "/usr/share/grafana" --config /etc/grafana/grafana.ini ${GF_SECURITY_ADMIN_PASSWORD} grafana-cli --homepath "/usr/share/grafana" --config /etc/grafana/grafana.ini admin reset-admin-password ${GF_SECURITY_ADMIN_PASSWORD}
if [ "$?" == 1 ]; then if [ "$?" == 1 ]; then
echo "The Grafana admin user does not exist yet, so no need to update password" echo "The Grafana admin user does not exist yet, so no need to update password"

View File

@ -49,14 +49,16 @@ pod:
security_context: security_context:
dashboard: dashboard:
pod: pod:
runAsUser: 104 # The correct grafana uid = 472
runAsUser: 472
container: container:
grafana: grafana:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
readOnlyRootFilesystem: true readOnlyRootFilesystem: true
db_init: db_init:
pod: pod:
runAsUser: 104 # The correct grafana uid = 472
runAsUser: 472
container: container:
grafana_db_init_session: grafana_db_init_session:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
@ -66,28 +68,32 @@ pod:
readOnlyRootFilesystem: true readOnlyRootFilesystem: true
db_session_sync: db_session_sync:
pod: pod:
runAsUser: 104 # The correct grafana uid = 472
runAsUser: 472
container: container:
grafana_db_session_sync: grafana_db_session_sync:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
readOnlyRootFilesystem: true readOnlyRootFilesystem: true
set_admin_user: set_admin_user:
pod: pod:
runAsUser: 104 # The correct grafana uid = 472
runAsUser: 472
container: container:
grafana_set_admin_password: grafana_set_admin_password:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
readOnlyRootFilesystem: true readOnlyRootFilesystem: true
run_migrator: run_migrator:
pod: pod:
runAsUser: 104 # The correct grafana uid = 472
runAsUser: 472
container: container:
grafana_set_admin_password: grafana_set_admin_password:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
readOnlyRootFilesystem: true readOnlyRootFilesystem: true
test: test:
pod: pod:
runAsUser: 104 # The correct grafana uid = 472
runAsUser: 472
container: container:
helm_tests: helm_tests:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false

View File

@ -17,4 +17,5 @@ grafana:
- 0.1.14 Add run migrator job - 0.1.14 Add run migrator job
- 0.1.15 Added OCI registry authentication - 0.1.15 Added OCI registry authentication
- 0.1.16 Grafana 8.5.10 with unified alerting - 0.1.16 Grafana 8.5.10 with unified alerting
- 0.1.17 Fix uid for the user grafana
... ...