postgres-operator/pkg
Oleksii Kliukin 59f0c5551e
Allow configuring pod priority globally and per cluster. (#353)
* Allow configuring pod priority globally and per cluster.

Allow to specify pod priority class for all pods managed by the operator,
as well as for those belonging to individual clusters.

Controlled by the pod_priority_class_name operator configuration
parameter and the podPriorityClassName manifest option.

See https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass
for the explanation on how to define priority classes since Kubernetes 1.8.

Some import order changes are due to go fmt.
Removal of OrphanDependents deprecated field.

Code review by @zerg-junior
2018-08-03 14:03:37 +02:00
..
apiserver Refactoring inspired by gometalinter. (#357) 2018-08-03 11:09:45 +02:00
cluster Allow configuring pod priority globally and per cluster. (#353) 2018-08-03 14:03:37 +02:00
controller Allow configuring pod priority globally and per cluster. (#353) 2018-08-03 14:03:37 +02:00
spec Allow configuring pod priority globally and per cluster. (#353) 2018-08-03 14:03:37 +02:00
util Allow configuring pod priority globally and per cluster. (#353) 2018-08-03 14:03:37 +02:00