• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 7278281894
88%

Build:
DEFAULT BRANCH: master
Ran 20 Dec 2023 04:49PM UTC
Jobs 1
Files 508
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Dec 2023 04:40PM UTC coverage: 86.82% (-0.05%) from 86.865%
7278281894

push

github

Totktonada
config: read cluster config parts from env/file

Fixes #9506

@TarantoolBot document
Title: config.context: define cluster config parts in env/file

Example:

```yaml
config:
  context:
    replicator_password:
      from: file
      file: secrets/replicator_password.txt
      rstrip: true
    client_password:
      from: file
      file: secrets/client_password.txt
      rstrip: true

credentials:
  users:
    replicator:
      password: '{{ context.replicator_password }}'
      roles: [replication]
    client:
      password: '{{ context.client_password }}'
      roles: [super]
```

The new `config.context` section allows a user to define its own
variables, whose content resides in an environment variable or a file.

The primary usage is to extract passwords from the configuration.

All the variables are defined in `config.context` section as keys. Each
key is a record with the following fields.

* `from`: either `env` or `file`
* `file`: a file path
* `env`: an environment variable name
* `rstrip`: whether to strip whitespace characters from the end of the
   data (it strips newlines too)

A relative file path is interpreted as relative to `process.work_dir`.

`from` is mandatory, `file` is mandatory when `from` is `file`, `env` is
mandatory when `from` is `env`, `rstrip` is optional.

If there is no given file or no given environment variable, an error of
a configuration applying is reported.

66186 of 118449 branches covered (0.0%)

98360 of 113292 relevant lines covered (86.82%)

2645488.14 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7278281894.1 20 Dec 2023 04:49PM UTC 0
86.82
GitHub Action Run
Source Files on build 7278281894
Detailed source file information is not available for this build.
  • Back to Repo
  • 830578c7 on github
  • Prev Build on master (#7277711204)
  • Next Build on master (#7280457908)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc