nats-io / nack

NATS Controllers for Kubernetes (NACK)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jetstream Controller does not support to update stream CRD's “sources” field

HugoLei opened this issue · comments

  1. Create a stream CRD, for example mystream
  2. mystream has "sources" field
  3. Jetstream Controller can create a stream named "mystream" with "sources" info in the NATS cluster.
  4. Edit the mystream CRD by kubectl, and add another source to the "sources" array
  5. Then Jetstream Controller just "delete" the "sources" info from "mystream" in the NATS cluster.

before
image

edit CRD
image

after
image

I've opened a PR to try to solve this issue plus be able to update mirror field too #99

Fixed via #99