[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
description: OpenStack-Helm Grafana
name: grafana
version: 0.1.16
version: 0.1.17
home: https://grafana.com/
sources:
- https://github.com/grafana/grafana

View File

@ -14,7 +14,7 @@ limitations under the License.
*/}}
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
echo "The Grafana admin user does not exist yet, so no need to update password"

View File

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

View File

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