runtime-config-helper
To create a new config (needs access to the secrets project in gcloud): ``` gcloud beta runtime-config configs create 'projectname-production' gcloud beta runtime-config configs create 'projectname-staging' ```
Last updated 9 months ago by kamshak .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install runtime-config-helper 
SYNC missed versions from official npm registry.

Easy HTTP Interface to get Runtime Configuration for CI.

To create a new config (needs access to the secrets project in gcloud):

gcloud beta runtime-config configs create 'projectname-production'
gcloud beta runtime-config configs create 'projectname-staging'

To set variables (Variable names will be transformed from lowercase to uppercase, separated by underscores):

gcloud beta runtime-config configs variables set \
    my-variable-name my-value \
    --is-text --config-name projectname-staging

Will make MY_VARIABLE_NAME=my-value available.

Meant to be consumed like this:

export `curl -H "Accept: text/x-shell-export" https://secrets-service/${PROJECT}/staging -H "Authorization: ${GCP_SERVICE_ACC}"`

Endpoints

Reading Configuration in ENV compatible format

/projects/<projectname>

Authorization: <JSON Service Account>

Returns: All stored variables. Pass Accept: text/x-shell-export header to get the variables as shell escaped, space separated variables

Current Tags

  • 1.0.9                                ...           latest (9 months ago)

9 Versions

  • 1.0.9                                ...           9 months ago
  • 1.0.8                                ...           9 months ago
  • 1.0.7                                ...           9 months ago
  • 1.0.6                                ...           9 months ago
  • 1.0.5                                ...           9 months ago
  • 1.0.4                                ...           9 months ago
  • 1.0.3                                ...           9 months ago
  • 1.0.2                                ...           9 months ago
  • 1.0.1                                ...           9 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dev Dependencies (19)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |