certmerge-operator icon indicating copy to clipboard operation
certmerge-operator copied to clipboard

Notification feature

Open stepanstipl opened this issue 5 years ago • 0 comments

This PR builds on https://github.com/prune998/certmerge-operator/pull/8 and adds support for "Notification" feature. New notify block has been added to the CRD, which allows specifying a list of resources that should be notified when the composite certificate is updated (initially only Deployment type is supported).

The core use case is to notify istio-ingress-gateway, by updating its pods annotation, trigger a rolling update and therefore certificate reload.

Changes introduced in this PR:

  • Extended CertMerge CRD with notify
  • Updated depending auto-generated files
  • Added notification logic
  • Updated documentation
  • Make CRD fields notify, selector and secretList optional (as was before operator-sdk update)
  • Mitigate unnecessary updates of the composite certificate by comparing current a and new value

stepanstipl avatar Feb 12 '20 12:02 stepanstipl