Skip to content
Snippets Groups Projects
Commit 6d46a04c authored by Gleb Kashkin's avatar Gleb Kashkin Committed by Alexander Turenko
Browse files

config: introduce labels to schema

Closes #9809

@TarantoolBot document
Title: New labels in config schema

The new labels are basically maps with string keys and values,
that are merged down to instance level. It means that if a replicaset
and an instance inside it have label with same key and different
value, the actual value is the one instance provided, e.g.

```yaml
groups:
  group-001:
    replicasets:
      replicaset-001:
        labels:
          foo: 'true'
          bar: 'true'
        instances:
          instance-001:
            labels:
              baz: 'true'
              foo: 'false'
```

Results in:

```
./instance-001.iproto> require('config'):get('labels')
---
- baz: 'true'
  foo: 'false'
  bar: 'true'
...
```
parent 26bf1cbc
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment