Skip to content

New labels in config schema #4096

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
TarantoolBot opened this issue Mar 18, 2024 · 0 comments · Fixed by #4360
Closed

New labels in config schema #4096

TarantoolBot opened this issue Mar 18, 2024 · 0 comments · Fixed by #4360
Assignees

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented Mar 18, 2024

Related dev. issue(s): tarantool/tarantool#9809

Product: Tarantool
Since: 3.1
Root document:

SME: @ Lord-KA

Details

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.

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'
...

Requested by @ Lord-KA in tarantool/tarantool@6d46a04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants