postgres-operator/pkg/controller
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
..
controller.go Emit K8S events to the postgresql CR as feedback to the requestor / user (#896) 2020-04-27 08:22:07 +02:00
logs_and_api.go reflect change in github url (#496) 2019-02-25 11:26:55 +01:00
node.go Move operator to go 1.14 (#882) 2020-03-30 15:50:17 +02:00
node_test.go define ownership between operator and clusters via annotation (#802) 2020-03-17 16:34:31 +01:00
operator_config.go Prevent superuser from being a connection pool user (#906) 2020-04-09 09:21:45 +02:00
pod.go Move operator to go 1.14 (#882) 2020-03-30 15:50:17 +02:00
postgresql.go Emit K8S events to the postgresql CR as feedback to the requestor / user (#896) 2020-04-27 08:22:07 +02:00
postgresql_test.go define ownership between operator and clusters via annotation (#802) 2020-03-17 16:34:31 +01:00
types.go reflect change in github url (#496) 2019-02-25 11:26:55 +01:00
util.go Move operator to go 1.14 (#882) 2020-03-30 15:50:17 +02:00
util_test.go define ownership between operator and clusters via annotation (#802) 2020-03-17 16:34:31 +01:00