Skip to content
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

Support for multiple yaml documents in topic config #26

Closed
mattrobenolt opened this issue Sep 22, 2020 · 1 comment
Closed

Support for multiple yaml documents in topic config #26

mattrobenolt opened this issue Sep 22, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@mattrobenolt
Copy link

mattrobenolt commented Sep 22, 2020

It'd be nice to be able to apply a single say, topics.yaml file that was 1 file with the yaml document separator.

Such as (using the example data in the repo):

meta:
  name: topic-default
  cluster: local-cluster
  environment: local-env
  region: local-region
  description: |
    Topic that uses default (any) strategy for assigning partition brokers.

spec:
  partitions: 3
  replicationFactor: 2
  retentionMinutes: 100
  placement:
    strategy: any
  settings:
    cleanup.policy: delete
    max.message.bytes: 5542880
---
meta:
  name: topic-static
  cluster: local-cluster
  environment: local-env
  region: local-region
  description: |
    Topic that uses static broker assignments.

spec:
  partitions: 10
  replicationFactor: 2
  retentionMinutes: 290
  placement:
    strategy: static
    staticAssignments:
      - [3, 4]
      - [5, 6]
      - [2, 1]
      - [2, 3]
      - [5, 1]
      - [2, 1]
      - [1, 3]
      - [2, 4]
      - [1, 3]
      - [2, 4]
---
meta:
  name: topic-in-rack
  cluster: local-cluster
  environment: local-env
  region: local-region
  description: |
    Topic that uses in-rack strategy for assigning brokers.

spec:
  partitions: 9
  replicationFactor: 2
  retentionMinutes: 100
  placement:
    strategy: in-rack
@yolken-segment
Copy link
Contributor

Fixed in #29.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants