devshawn / kafka-gitops

šŸš€Manage Apache Kafka topics and generate ACLs through a desired state file.

Home Page:https://devshawn.github.io/kafka-gitops

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to import/match existing confluent cloud configuration in yaml

mundey opened this issue Ā· comments

environment: confluent cloud
I was trying to create state yaml so that it would not delete existing configuration:
-state.yaml-

settings:
  ccloud:
    enabled: true
  topics:
    defaults:
      replication: 1
  files:
    topics: topics.yaml
    services: services.yaml

customServiceAcls:
  app-test:
    r-t-thg:
      name: temp.test.hello-kafka
      type: TOPIC
      pattern: LITERAL
      host: "*"
      operation: READ
      permission: ALLOW

-topics.yaml-

topics:
  temp.test.hello-kafka:
    partitions: 3

-services.yaml-

services:
  app-test:
    type: application

After clearing validation, when executed plan, it always shows removing existing acl/permission. I assumed service-account should exist in "services:" and under "customServiceAcls:" defining it's value as the service-account name as shown above. it's still not picking up. I tried to define principal for acl entry to match the User:{id} of "app-test" but the result is same.

Please help me with an example of import.

never mind, it might be some inclusion issue. it seems to be functional now.

by the way, it's great project. appreciate for all the effort