grafana / helm-charts

Apache License 2.0
1.63k stars 2.26k forks source link

Provision dashboards from private github repos #2535

Open PeteMac88 opened 1 year ago

PeteMac88 commented 1 year ago

Hey, in the values file, there is an example of how to provision dashboards for private repos by inserting a token into the values e.g.

local-dashboard-bitbucket:
  #     url: https://example.com/repository/test-bitbucket.json
  #     bearerToken: ''

I there a possibility to provide the bearerToken as a secret because I do not want to commit this info into our gitops repo?

xinity commented 1 week ago

hello @PeteMac88 i've managed to handle this on my end. here is what i've done:

and you are good to go :)

i've almost improve the download experience to add more logging and avoid the token to leak in the logs of the init-container, PR opened here: https://github.com/grafana/helm-charts/pull/3350