mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 21:19:28 -06:00
24 lines
513 B
Plaintext
24 lines
513 B
Plaintext
|
pull_secret = 'dockerconfigjson'
|
||
|
github_token = 'github_token'
|
||
|
|
||
|
def from_secret(secret):
|
||
|
return {
|
||
|
'from_secret': secret
|
||
|
}
|
||
|
|
||
|
def vault_secret(name, path, key):
|
||
|
return {
|
||
|
'kind': 'secret',
|
||
|
'name': name,
|
||
|
'get': {
|
||
|
'path': path,
|
||
|
'name': key,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
def secrets():
|
||
|
return [
|
||
|
vault_secret(pull_secret, 'secret/data/common/gcr', '.dockerconfigjson'),
|
||
|
vault_secret(github_token, 'infra/data/ci/github/grafanabot', 'pat')
|
||
|
]
|