Felix Kunde
e084bc587a
patch existing CRD each time there is an operator update
2019-05-07 16:33:33 +02:00
Felix Kunde
8f9dfffef1
Merge branch 'master' into cluster-status-map2
2019-05-07 13:53:04 +02:00
Felix Kunde
0fbfbb23bb
Use /status subresource instead of plain manifest field ( #534 )
...
* turns PostgresStatus type into a struct with field PostgresClusterStatus
* setStatus patch target is now /status subresource
* unmarshalling PostgresStatus takes care of previous status field convention
* new simple bool functions status.Running(), status.Creating()
2019-05-07 12:01:45 +02:00
Felix Kunde
e51d968151
remove TestSetStatus for now
2019-05-06 17:12:42 +02:00
Felix Kunde
db28339ad3
marshal with struct
2019-05-02 17:02:33 +02:00
Felix Kunde
d5a578940f
PostgresStatus.String() now returns a valid JSON sting
2019-05-02 16:16:38 +02:00
Felix Kunde
2784493665
going back to marshal a string to statisfy patch body
2019-05-02 14:16:06 +02:00
Felix Kunde
11b4b39697
add debug message for setStatus
2019-05-02 12:15:50 +02:00
Felix Kunde
3e4a9d597d
temporarily disable TestSetStatus
2019-05-02 11:52:50 +02:00
Felix Kunde
de40e508b9
do not export setStatus
2019-05-02 11:18:41 +02:00
Felix Kunde
25e02ad755
Minor change to helm section in quickstart guide ( #549 )
...
* updated helm section in quickstart
2019-04-24 18:25:57 +02:00
Felix Kunde
9e7760d80a
put mock methods to k8sutil to avoid cycling imports
2019-04-18 18:04:37 +02:00
Felix Kunde
2ad951e172
move setStatus test to controller package and make function public
2019-04-18 15:18:31 +02:00
Felix Kunde
f0888b6017
add test for setStatus
2019-04-18 12:05:25 +02:00
Felix Kunde
aaff0461e5
do not omit status if empty
2019-04-17 18:25:33 +02:00
Felix Kunde
c636b3165f
minor change
2019-04-17 17:09:00 +02:00
Felix Kunde
11f899367c
marshal patch when setting status
2019-04-16 15:38:22 +02:00
Felix Kunde
487c16a30e
use json.unmarshal for unmarshalling PostgresStatus
2019-04-15 16:32:01 +02:00
Sergey Dudoladov
c1d108a832
Fix CRD-based operator configuration ( #541 )
...
* Fix CRD-based operator configuration
* add inherited labels, update docker image
2019-04-15 13:52:38 +02:00
Felix Kunde
15b087ea65
Merge branch 'master' into cluster-status-map2
2019-04-15 11:52:44 +02:00
Sergey Dudoladov
32f106990a
Fix build ( #542 )
...
* bump up golang version
* gcc fix
2019-04-15 11:52:07 +02:00
Felix Kunde
24559e42d1
add creating method for PostgresStatus
2019-04-12 16:36:50 +02:00
Felix Kunde
b9d5cfe6b8
minor fix
2019-04-12 16:00:07 +02:00
Felix Kunde
e2e2441ee1
add Unmarshal method and tests for PostgresStatus
2019-04-12 15:55:25 +02:00
Felix Kunde
c3834df57a
remove type PostgresClusterStatus
2019-04-11 12:31:50 +02:00
Felix Kunde
0c5eadccda
relect subresource also in clusterrole template for helm chart
2019-04-10 16:31:40 +02:00
Felix Kunde
9f3ed38643
simplify PostgresClusterStatus string comparison
2019-04-10 15:00:46 +02:00
Felix Kunde
407a05086e
using status subresource
2019-04-09 14:01:27 +02:00
Felix Kunde
7e356a15c7
use subresource when patching new status
2019-04-09 12:36:02 +02:00
Felix Kunde
48e184d98e
marshal nested status field
2019-04-09 11:30:12 +02:00
Felix Kunde
433bd8f500
Add paragraph on how to extend operator configuration in dev docs ( #538 )
...
* add paragraph on how to extend operator configuration in dev docs
2019-04-09 11:23:07 +02:00
Felix Kunde
17abf3b5ab
Merge branch 'master' into cluster-status-map2
2019-04-08 17:28:35 +02:00
Felix Kunde
67b2fc40c0
update db connection part in user docs ( #536 )
2019-04-04 19:55:00 +02:00
Felix Kunde
f3f3746a50
set PostgresClusterStatus to omitempty
2019-04-04 18:58:29 +02:00
Felix Kunde
6b0869a9f7
ran hack/update-codegen
2019-04-04 15:27:24 +02:00
Felix Kunde
5e87d48508
nested status field
2019-04-04 15:15:32 +02:00
Felix Kunde
3887938ab9
change name of status field
2019-04-03 17:33:56 +02:00
Aaron Miller
15ec6a920d
Config option to allow Spilo container to run non-privileged. ( #525 )
...
* Config option to allow Spilo container to run non-privileged.
Runs non-privileged by default.
Fixes #395
* add spilo_privileged to manifests/configmap.yaml
* add spilo_privileged to helm chart's values.yaml
2019-04-03 17:13:39 +02:00
Felix Kunde
313db7d10b
set default name also for RoleBinding and roleRef ( #529 )
2019-04-02 17:16:47 +02:00
Felix Kunde
c243074083
Updated quickstart and link from README ( #527 )
...
* updated quickstart and link from README
* added/updated Helm chart description in other docs
2019-04-01 15:39:18 +02:00
Taehyun Kim
6778c3c03c
Add helm chart ( #434 )
...
Helm chart, that contains all required components to install postgres-operator.
So far all the versions are hardcoded to the latest release, and documentation
mention helm mostly for development purposes with minikube.
2019-03-29 11:26:13 +01:00
Rafia Sabih
98940e65fb
Fix for broken Makefile ( #522 )
...
Remove unnecessary double quotes in the path value
2019-03-25 11:00:17 +01:00
Stephane T
edeb06d39c
fix: update init_containers ( #518 )
...
* fix: PATH expension in Makefile
Signed-off-by: Stephane Tang <hi@stang.sh>
* refact: pass list of containers to compareContainers()
Signed-off-by: Stephane Tang <hi@stang.sh>
* compare initContainers while comparing StatefulSet
Fixes #517
Signed-off-by: Stephane Tang <hi@stang.sh>
* refact: compareContainers()
Signed-off-by: Stephane Tang <hi@stang.sh>
2019-03-19 17:46:12 +01:00
Jan Mussler
5f6abfb797
Rearrange the README. ( #520 )
2019-03-14 12:48:36 +01:00
Sergey Dudoladov
0b53dbe5dc
Set statefulset update and management policy explicitly ( #515 )
...
* fix logging in retry
* explicitly set the stateful set update strategy to onDelete
* add podManagementPolicy
2019-03-13 11:49:18 +01:00
Vineeth Reddy
db72d82f14
gofmt and golint fixes ( #506 )
...
* fix gofmt and golint issues
2019-03-04 13:13:55 +01:00
Sergey Dudoladov
f400539b69
Retry moving master pods ( #463 )
...
* Retry moving master pods
* bump up master pod wait timeout
2019-02-28 16:19:27 +01:00
Sergey Dudoladov
587d9091e7
Set HUMAN_ROLE Spilo env var ( #409 )
...
* Set HUMAN_ROLE Spilo env var
2019-02-27 13:40:42 +01:00
Sergey Dudoladov
74cc9a44f8
Post-graduation updates ( #495 )
...
* update generated code
* update glide.lock
* Verify staleness of generated code during build and before running tests
2019-02-26 12:34:05 +01:00
Sergey Dudoladov
29f5e4f5a2
Update README.md ( #500 )
...
Include info about GSoC 2019 participation
2019-02-26 12:18:35 +01:00