Oleksii Kliukin
26db91c53e
Improve infrastructure role definitions ( #208 )
...
Enhance definitions of infrastructure roles by allowing membership in multiple roles, role options and per-role configuration to be specified in the infrastructure role configmap, which must have the same name as the infrastructure role secret. See manifests/infrastructure-roles-configmap.yaml for the examples and updated README for the description of different types of database roles supposed by the operator and their purposes.
Change the logic of merging infrastructure roles with the manifest roles when they have the same name, to return the infrastructure role unchanged instead of merging. Previously, we used to propagate flags from the manifest role to the resulting infrastructure one, as there were no way to define flags for the infrastructure role; however, this is not the case anymore.
Code review and tests by @erthalion
2018-04-04 17:21:36 +02:00
zerg-junior
d264be9faa
Merge pull request #261 from zalando-incubator/wal_bucket_scope_prefix
...
Fix clone for origins in non-default namespaces.
2018-04-03 17:47:18 +02:00
zerg-junior
ff5793b584
Merge pull request #258 from zalando-incubator/always-create-replica-service
...
[WIP] Always create replica service
2018-03-29 14:42:26 +02:00
Sergey Dudoladov
edf710d772
Add tests for load balancer function logic by Dmitrii Dolgov
2018-03-27 16:10:57 +02:00
erthalion
34518a4eb0
Some fixes for travis ci and cdp
...
remove cmd package from travis (it's complaining because
there are no tests), and add apt-get update for cdp.
2018-03-27 16:05:13 +02:00
erthalion
8967a3be2c
Add tests for load balancer function logic
2018-03-27 12:11:46 +02:00
Dmitry Dolgov
5200579a89
Merge pull request #267 from zalando-incubator/scope-operator
...
Add scope section to readme.
2018-03-27 10:35:14 +02:00
Sergey Dudoladov
96d46252f5
Change the default values to closer match previous behaviour
2018-03-26 11:43:46 +02:00
Sergey Dudoladov
ced770a827
Respond to code review
2018-03-26 11:07:32 +02:00
Sergey Dudoladov
a8862aeee1
Enable backward compatibility for enable_load_balancer setting from operator configmap
2018-03-19 17:19:50 +01:00
Sergey Dudoladov
931b48fcbb
Respond to code reviews
2018-03-16 15:36:42 +01:00
Sergey Dudoladov
386d7b6bdb
Implement backward compatibility with older load balancer settings
2018-03-16 13:27:38 +01:00
Sergey Dudoladov
145689c950
Disable load balancer for master service by default (it may cost money)
2018-03-16 13:18:13 +01:00
Sergey Dudoladov
27837e5672
Document usage of load balancers
2018-03-14 13:09:16 +01:00
Sergey Dudoladov
20f30d3739
Update the method for deciding about load balancers
2018-03-14 12:46:58 +01:00
Sergey Dudoladov
0986e56226
Add separate params for master and replica load balancers to operator configuration
2018-03-14 12:12:28 +01:00
Sergey Dudoladov
ac6c5bcf09
Explicitly name replica and master load balancer params in PostgresSpec
2018-03-14 12:03:27 +01:00
zerg-junior
6789f3740c
Merge pull request #266 from zalando-incubator/fix-replica-dns-names
...
Fix configuration of dns names
2018-03-13 12:48:06 +01:00
Jan M
4f782314aa
Add scope section to readme.
2018-03-12 17:34:15 +01:00
Sergey Dudoladov
5bc5e70c81
Log if replica service has no load balancer
2018-03-12 16:48:44 +01:00
zerg-junior
cca50122a6
Delete config file added by mistake
2018-03-12 12:54:02 +01:00
Sergey Dudoladov
6839ce0170
Fix configuration of dns names
2018-03-12 12:45:52 +01:00
Sergey Dudoladov
5ff562a607
Minor improvements
2018-03-02 14:03:41 +01:00
Sergey Dudoladov
2aeff096f7
Make ReplicaLoadBalancer a separate toggler
2018-03-02 13:35:25 +01:00
Sergey Dudoladov
18741750f5
Make ReplicaLoadBalancer a pointer to handle the case when it is unset
2018-03-02 12:00:02 +01:00
Sergey Dudoladov
e74c05fec9
Document intended usage of useLoadBalancer
2018-03-02 11:47:51 +01:00
Oleksii Kliukin
59a214727c
Fix clone for origins in non-default namespaces.
...
By default, spilo sets WAL_BUCKET_SCOPE_PREFIX depending on the cluster
namespace, possibly to a non-empty string. However, we won't be able to
clone those clusters, as the clone prefix is always set to an empty string.
We could go the other way around and set both WAL_BUCKET_SCOPE_PREFIX
and CLONE_WAL_BUCKET_SCOPE_PREFIX to a non-default value that depends
on the cluster's namespace, but it seems that we don't need this
feature for now (no conflict will occur even for clusters with the
same name and different namespaces because of the SCOPE_SUFFIX) and
it requires some additional testing first.
2018-03-01 12:26:09 +01:00
zerg-junior
c2ca2307bc
Merge pull request #260 from zalando-incubator/set-wal-prefix-to-empty
...
Set WAL_BUCKET_SCOPE_PREFIX to the empty string
2018-03-01 11:22:20 +01:00
Sergey Dudoladov
35104cb72b
Add CLONE_ prefix to the env var
2018-03-01 11:19:15 +01:00
Sergey Dudoladov
bcb8caeddf
Set WAL_BUCKET_SCOPE_PREFIX to the empty string
2018-03-01 11:16:47 +01:00
Sergey Dudoladov
fb21246fcd
Remove early stopping conditions that rely on the relica service being absent
2018-02-27 17:21:51 +01:00
Sergey Dudoladov
28fed26845
Do not delete an endpoint for the replica service w/o load balancer during sync
2018-02-27 17:18:30 +01:00
Sergey Dudoladov
b107d781e8
Do not delete replica service w/o load balancer during sync
2018-02-27 17:16:00 +01:00
Sergey Dudoladov
2ef069ee93
Create/delete replica service regardless of load balancer setup
2018-02-27 17:10:49 +01:00
Jan Mussler
cb55749c1b
Update postgres-operator.yaml ( #255 )
...
Bump operator image version.
2018-02-26 20:03:56 +01:00
zerg-junior
0f392c2007
Merge pull request #252 from zalando-incubator/label-teams
...
Add 'team' label to pods, stateful sets, secrets and pod disruption budgets
2018-02-26 12:57:26 +01:00
Sergey Dudoladov
071547e5bf
Modify to add extra labels only during resource creation
2018-02-26 11:11:50 +01:00
Oleksii Kliukin
2bb7e98268
update individual role secrets from infrastructure roles ( #206 )
...
* Track origin of roles.
* Propagate changes on infrastructure roles to corresponding secrets.
When the password in the infrastructure role is updated, re-generate the
secret for that role.
Previously, the password for an infrastructure role was always fetched from
the secret, making any updates to such role a no-op after the corresponding
secret had been generated.
2018-02-23 17:24:04 +01:00
Sergey Dudoladov
00dc810544
Add 'team' label to pods, stateful sets, secrets and pod disruption budgets
2018-02-23 14:36:10 +01:00
Dmitry Dolgov
7b05758893
Merge pull request #251 from zalando-incubator/feature/refactor-compare-containers
...
Move container comparison logic to a separate function
2018-02-23 14:32:55 +01:00
Dmitrii Dolgov
ef50b147c5
Use list of checks instead of a map
2018-02-23 14:24:33 +01:00
Dmitrii Dolgov
95d86c7600
Move container comparison logic to a separate function
2018-02-23 11:58:37 +01:00
Oleksii Kliukin
c4aab502b3
Remove Patroni leftover objects on cluster deletion. ( #244 )
...
* Remove all endpoints and configmaps from Patroni when Patroni is running with Kubernetes support on cluster deletion.
2018-02-23 09:52:22 +01:00
zerg-junior
6a29bbbcfa
Merge pull request #250 from zalando-incubator/show_warning_on_cluster_list_unmarshal
...
Make errors in the cluster list function visible.
2018-02-22 20:53:25 +01:00
Oleksii Kliukin
f18bb6eaaa
Make errors in the cluster list function visible.
...
Sometimes the operator does not pick up clusters right away when
they are created. The change attempts to shed light on the
reason behind that.
2018-02-22 16:45:10 +01:00
zerg-junior
65ef1da715
Merge pull request #249 from zalando-incubator/zerg-junior-patch-2
...
Update README.md
2018-02-22 15:03:00 +01:00
zerg-junior
2782e948e1
Update README.md
2018-02-22 12:17:04 +01:00
zerg-junior
8262822c5f
Merge pull request #247 from zalando-incubator/doc-unaccessible-ns
...
Document behavior in the case of unaccessible namespaces
2018-02-22 11:55:46 +01:00
Dmitry Dolgov
bf4b0f0f33
Merge pull request #240 from zalando-incubator/feature/goreport-improvements
...
Some improvements for golint, ineffassign and misspell
2018-02-22 11:31:08 +01:00
Sergey Dudoladov
50331bc50a
Document behavior in the case of unaccessible namespaces
2018-02-22 11:31:08 +01:00