postgres-operator/pkg/util
Christian Rohmann 21b9b6fcbe
Emit K8S events to the postgresql CR as feedback to the requestor / user (#896)
* Add EventsGetter to KubeClient to enable to sending K8S events

* Add eventRecorder to the controller, initialize it and hand it down to cluster via its constructor to enable it to emit events this way

* Add first set of events which then go to the postgresql custom resource the user interacts with to provide some feedback

* Add right to "create" events to operator cluster role

* Adapt cluster tests to new function sigurature with eventRecord (via NewFakeRecorder)

* Get a proper reference before sending events to a resource

Co-authored-by: Christian Rohmann <christian.rohmann@inovex.de>
2020-04-27 08:22:07 +02:00
..
config Prevent superuser from being a connection pool user (#906) 2020-04-09 09:21:45 +02:00
constants Call me pooler, not pool (#883) 2020-04-01 10:34:03 +02:00
filesystems Fix golint warnings 2017-08-01 16:08:56 +02:00
k8sutil Emit K8S events to the postgresql CR as feedback to the requestor / user (#896) 2020-04-27 08:22:07 +02:00
patroni Re-create pods only if all replicas are running (#903) 2020-04-20 15:14:11 +02:00
retryutil Fix golint failures 2019-01-08 13:04:48 +01:00
ringlog fix comments for ringlogger 2017-09-26 13:12:38 +02:00
teams Move operator to go 1.14 (#882) 2020-03-30 15:50:17 +02:00
users reflect change in github url (#496) 2019-02-25 11:26:55 +01:00
volumes reflect change in github url (#496) 2019-02-25 11:26:55 +01:00
util.go Connection pooler (#799) 2020-03-25 12:57:26 +01:00
util_test.go Enforce minimum cpu and memory limits (#731) 2019-12-12 16:43:55 +01:00