GithubHelp home page GithubHelp logo

Comments (4)

devshawn avatar devshawn commented on May 29, 2024 1

Glad to hear that worked, @jurschel!

It would probably be a good idea to completely ignore those specific topics, but we've chosen so far to just define them as-is in our state file.

You can also use the topic blacklist option to have the tool ignore topics on a prefixed basis:

settings:
  topics:
    blacklist:
      prefixed:
        - _confluent

Good luck with getting your central repository going! Let me know if you have questions! 😄

from kafka-gitops.

devshawn avatar devshawn commented on May 29, 2024

Yes, you can use the tool to just create new topics. You can run kafka-gitops with the --no-delete flag, and it will only plan/apply creates and updates.

Example state file new-topics.yaml:

topics:
  my-new-topic:
    partitions: 6
    replication: 3

Run against the cluster:

kafka-gitops -f new-topics.yaml --no-delete plan -o plan.json
kafka-gitops -f new-topics.yaml --no-delete apply -p plan.json

Over time, you can slowly start to add existing topics (and services, if desired) to your state file until we have implemented import functionality (#13).

from kafka-gitops.

jurschel avatar jurschel commented on May 29, 2024

Ah ok thanks for the response. I was about to reply with the below. I did see something about the --no-delete option just hadn't gotten to it yet.

I see in your documentation that applying this against a cluster is destructive if you don't have all the topics in the state file. Shouldn't you leave any built-in topics like _confluent.support.metrics, _confluent_offsets and _schemas alone completely?

from kafka-gitops.

jurschel avatar jurschel commented on May 29, 2024

That worked. Good work. Now I'm going to get my central repository for topics going!

from kafka-gitops.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.