Merge "[Grafana] Fix uid for the grafana user"

This commit is contained in:
Zuul 2023-01-05 07:23:50 +00:00 committed by Gerrit Code Review
commit 6515808db5
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
...