certmerge-operator
certmerge-operator copied to clipboard
Notification feature
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
andsecretList
optional (as was before operator-sdk update) - Mitigate unnecessary updates of the composite certificate by comparing current a and new value