microcks / microcks-ansible-operator

Kubernetes Operator for easy setup and management of Microcks installs
https://microcks.io
Apache License 2.0
26 stars 6 forks source link

Operator requires Strimzi to be available #66

Closed imod closed 2 years ago

imod commented 2 years ago

I would like microcks to connect to an existing Kafka instance, but I fail to get this working. I use the following CRD:

apiVersion: microcks.github.io/v1alpha1
kind: MicrocksInstall
metadata:
  name: microcks
spec:
  # Add fields here
  name: microcks
  version: "latest"
  microcks:
    replicas: 1
    url: microcks.192.168.49.2.nip.io
  postman:
    replicas: 1
  keycloak:
    install: true
    persistent: true
    volumeSize: 1Gi
    url: microcks-keycloak.192.168.49.2.nip.io
    # serviceAccount: microcks-serviceaccount
    # serviceAccountCredentials: ab54d329-e435-41ae-a900-ec6b3fe15c54
  mongodb:
    install: true
    persistent: true
    volumeSize: 2Gi
  features:
    repositoryFilter:
      enabled: true
      labelKey: app
      labelLabel: Application
      labelList: app,status
    async:
      enabled: true
      defaultBinding: KAFKA
      defaultFrequency: 10
      kafka:
        install: false
        url: "host.minikube.internal:29092"

But in the operator logs I see this: Failed to find exact match for kafka.strimzi.io/v1beta2.Kafka

Which I do understand: I don't have strimzi installed - I want microcks to use my own Kafka installation. What am I doing wrong?

lbroudoux commented 2 years ago

You're totally right : a condition is missing on a task execution. The condition is there to check that Kafka resource should be absent for to realize this the client should still connect to the cluster and issue an API request on Strimzi CRD!

I've checked the test clusters we're running on and it appears that Strimzi CRD is always there even for tests with external broker... I'm gonna fix this.