postgres-operator/pkg/cluster
Rafia Sabih 75a9e2be38
Create cross namespace secrets (#1490)
* Create cross namespace secrets

* add test cases

* fixes

* Fixes
- include namespace in secret name only when namespace is provided
- use username.namespace as key to pgUsers only when namespace is
  provided
- avoid conflict in the role creation in db by checking namespace
  alongwith the username

* Update unit tests

* Fix test case

* Fixes

- update regular expression for usernames
- add test to allow check for valid usernames
- create pg roles with namespace (if any) appended in rolename

* add more test cases for valid usernames

* update docs

* fixes as per review comments

* update e2e

* fixes

* Add toggle to allow namespaced secrets

* update docs

* comment update

* Update e2e/tests/test_e2e.py

* few minor fixes

* fix unit tests

* fix e2e

* fix e2e attempt 2

* fix e2e

Co-authored-by: Rafia Sabih <rafia.sabih@zalando.de>
Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
2021-06-11 10:35:30 +02:00
..
cluster.go Create cross namespace secrets (#1490) 2021-06-11 10:35:30 +02:00
cluster_test.go Create cross namespace secrets (#1490) 2021-06-11 10:35:30 +02:00
connection_pooler.go Fix go lint errors (#1468) 2021-05-10 11:48:03 +02:00
connection_pooler_new_test.go Connection pooler for replica (#1127) 2020-11-13 14:52:21 +01:00
connection_pooler_test.go Use fake client for connection pooler (#1301) 2021-01-19 17:40:20 +01:00
database.go Rename roles that are removed from PostgresTeam CRD (#1457) 2021-05-21 15:49:39 +02:00
exec.go pick first container if postgres is not found (#1505) 2021-05-28 11:44:10 +02:00
filesystems.go reflect change in github url (#496) 2019-02-25 11:26:55 +01:00
k8sres.go Create cross namespace secrets (#1490) 2021-06-11 10:35:30 +02:00
k8sres_test.go pick first container if postgres is not found (#1505) 2021-05-28 11:44:10 +02:00
majorversionupgrade.go Fix go lint errors (#1468) 2021-05-10 11:48:03 +02:00
pod.go Improve rolling upgrades and rolling upgrade continue (#1341) 2021-02-26 15:38:58 +01:00
resources.go Create cross namespace secrets (#1490) 2021-06-11 10:35:30 +02:00
sync.go Create cross namespace secrets (#1490) 2021-06-11 10:35:30 +02:00
sync_test.go replace statefulset on annotation diff (#1449) 2021-04-22 11:22:52 +02:00
types.go Connection pooler for replica (#1127) 2020-11-13 14:52:21 +01:00
util.go pick first container if postgres is not found (#1505) 2021-05-28 11:44:10 +02:00
util_test.go Truncate cronjob name at 52 characters (#1208) 2021-02-15 17:00:21 +01:00
volumes.go Fix go lint errors (#1468) 2021-05-10 11:48:03 +02:00
volumes_test.go Fix go lint errors (#1468) 2021-05-10 11:48:03 +02:00