1. 20 May, 2020 2 commits
    • Feroz Jilla's avatar
      [integration tests] Increase deletion timeout · 14b27e60
      Feroz Jilla authored
      We noticed some failures when a 2 second timeout was in place.
      Increasing this to 5 seconds has passed 10 runs in a row now.
      14b27e60
    • Feroz Jilla's avatar
      Add server side AMQP tls (#124) · 10b71992
      Feroz Jilla authored
      * Adds property `spec.TLS.SecretName`
      * Expects the secret to contain the TLS cert and key for the RabbitMQ server, to be used for AMQP TLS
      * If the property is set and the secret is found, changes the child resources by,
        * adding TLS properties to the ConfigMap
        * creating a Volume from the ConfigMap and attaching a VolumeMount onto the RabbitMQ pod so the TLS credentials reach the pod
        * opening the AMQP tls port on the ingress service
      * Adds a system test that can be used to demonstrate the TLS workflow
      10b71992
  2. 18 May, 2020 1 commit
  3. 12 May, 2020 5 commits
  4. 05 May, 2020 1 commit
    • Chunyi Lyu's avatar
      Make leader election timeouts configurable (#111) · e9ad9f6b
      Chunyi Lyu authored
      - this fixes bug reported from issue #69 
      - users can set leaseDuration, renewDeadline, and retryPeriod
      (all in seconds) via setting environment variables in the manager manifest
      - template leader election timeouts in operator chart
      e9ad9f6b
  5. 04 May, 2020 11 commits
  6. 30 Apr, 2020 3 commits
  7. 29 Apr, 2020 4 commits
  8. 27 Apr, 2020 1 commit
  9. 24 Apr, 2020 2 commits
  10. 23 Apr, 2020 2 commits
    • Aitor Cedres's avatar
      Do not address by cluster domain · 286c506b
      Aitor Cedres authored
      
      - the `PublishNotReadyAddresses` allows the pods to be addressable by
      name before they are ready. This seems okay for the headless service
      because it is only used by inter-node (epmd) communication
      
      relates to: #75
      Co-authored-by: default avatarFeroz Jilla <fjilla@pivotal.io>
      286c506b
    • Chunyi Lyu's avatar
      Expose rabbitmq.conf configuration in CRD (#91) · 1ce7d820
      Chunyi Lyu authored
      * Expose rabbitmq.conf configuration in CRD
      
      - add a new property rabbitmqcluster.spec.rabbitmq.additionalConfig
      - append any configurations provided from additionalConfig to
      the default rabbitmq.conf
      - update ConfigMap when additionalConfig is modified
      - restart StatefulSet by annotating podTemplate with timestamp when
      ConfigMap is updated
      - template rabbitmq.additionalConfig in helm chart
      - refactor: use Succeed() when asserting returned error directly
      1ce7d820
  11. 22 Apr, 2020 1 commit
    • James McNeil's avatar
      Fixes bug in Pod deletion · b763471f
      James McNeil authored
      - Label set in controller did not match expected volume location for
      DownardAPI used in Pod deletion
      
      - DownardAPI does not appear to update once Pod enters Terminating. We
      then need to delete the statefulSet (which triggers Pod deletion) after
      we've set the downwardAPI volume value in the label. This introduces a
      race condition where a Pod could be respawned that wouldn't terminate
      immediately, but the window would be small.
      b763471f
  12. 15 Apr, 2020 2 commits
    • Chunyi Lyu's avatar
      Add schema validation for rabbitmq.additionalPlugins (#87) · bb51797e
      Chunyi Lyu authored
      * Add schema validation for rabbitmq.additionalPlugins
      
      - regex to prevent shell injection and malformed input
      - maximum 100 items for additionalPlugins and maximum 100
      characters length for item
      - kubebuilder validation tags 'Pattern' and 'MaxLength' must
      be specified on string type; Alias type 'string' as 'Plugin'
      to specify validations on items of the list
      - Remove whitespaces for rabbitmq chart tests so that it works
      with helm v3
      bb51797e
    • Aitor Pérez Cedres's avatar
      Merge pull request #80 from pivotal/make-destroy · 13a642fb
      Aitor Pérez Cedres authored
      Make destroy should delete the CRD before anything else
      13a642fb
  13. 14 Apr, 2020 1 commit
  14. 09 Apr, 2020 3 commits
    • Chunyi Lyu's avatar
      Expose rabbitmq plugins in the CRD (#74) · 5e469d33
      Chunyi Lyu authored
      * Make enabled plugins configurable
      
      - enable a list of essential plugins: rabbitmq_management,
      rabbitmq_peer_discovery_k8s and rabbitmq_prometheus by default
      - add a new property rabbitmqcluster.spec.rabbitmq.additionalPlugins
      - make rabbitmq enabled_plugins file writable by rabbitmq process (uid
      999)
      - set enable_plugins by runnning `rabbitmq-plugins set` at each
      Reconcile()
      5e469d33
    • Michal Kuratczyk's avatar
      Fixes: 71 (#81) · 0dbaf558
      Michal Kuratczyk authored
      Check for `hostname` property on the ingress service status. If it
      exists - return it instead of the IP address
      
      Additional changes:
      - rename `ingressIP` to just `ingress` since it can be a hostname now
      - simplify the file by adding `[0]` once, rather than on every reference
      to the service
      0dbaf558
    • James McNeil's avatar
      Merge pull request #78 from pivotal/management-port · 6a2b18e6
      James McNeil authored
      Renames http endpoint to management
      6a2b18e6
  15. 08 Apr, 2020 1 commit