Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-9891

Create an rndc key to bind instance map

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • designate-operator
    • None
    • VANS-004

      Generate an rndc key per bind instance (use the replicas value from the CR) and store in a secret. Currently the bind pod names aren't decided up on so use keys "designate-bind-0", "designate-bind-1", etc as pod names. The creation of this map should be idempotent (i.e the rndc key for a instance doesn't change over the lifetime of the deployment) and the size of the stored secrets should shrink if the replica count shrinks, with the remaining key not being reused. 

      e.g.: replicas 3

       designate-bind-key-0: key-1a
       designate-bind-key-1: key-2a
       designate-bind-key-2: key-3a

      set replicas to 2

       designate-bind-key-0: key-1a
       designate-bind-key-1: key-2a

      set replicas to 3 

       designate-bind-key-0: key-1a
       designate-bind-key-1: key-2a
       designate-bind-key-2: key-3b (NOT 3a)

      It be preferable if there were some form of kuttl test for this where replicas were greater than 1. 

              oschwart1 Omer Schwartz
              rhn-engineering-beagles Brent Eagles
              rhos-dfg-networking-squad-vans
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: