Uploaded image for project: 'Spring Boot & Cloud'
  1. Spring Boot & Cloud
  2. SB-1366

Architecture design: many controllers / CR vs 1 controller / CR

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • cloud-operator
    • None

      Review approaches:

      • Have different CRD or only one; one to install application - runtime, another to link/bind env, secrets, create a service VS having a generic CRD where the logic of the operator can manage to create an application - runtime, update DC, create a service, ...
      • What should we do when a CR is updated (more technical info about update is handled here [1] [2]) as the "UpdateFunc is called when an existing resource is modified. The oldObj is the last known state of the resource. UpdateFunc is also called when a re-synchronization happens, and it gets called even if nothing changes."

      [1] https://engineering.bitnami.com/articles/a-deep-dive-into-kubernetes-controllers.html
      [2] https://github.com/apache/camel-k/blob/master/pkg/controller/integration/integration_controller.go#L54-L63

              cmoullia Charles Moulliard
              cmoullia Charles Moulliard
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: