postgres-operator/pkg/apis/acid.zalan.do/v1
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
..
const.go Use /status subresource instead of plain manifest field (#534) 2019-05-07 12:01:45 +02:00
crds.go Create cross namespace secrets (#1490) 2021-06-11 10:35:30 +02:00
doc.go Fix golint failures 2019-01-08 13:04:48 +01:00
marshal.go change Clone attribute of PostgresSpec to *CloneDescription (#1020) 2020-07-30 16:31:29 +02:00
operator_configuration_type.go Rename roles that are removed from PostgresTeam CRD (#1457) 2021-05-21 15:49:39 +02:00
postgres_team_type.go PostgresTeam CRD for advanced team management (#1165) 2020-10-28 10:40:10 +01:00
postgresql_type.go Create cross namespace secrets (#1490) 2021-06-11 10:35:30 +02:00
register.go PostgresTeam CRD for advanced team management (#1165) 2020-10-28 10:40:10 +01:00
util.go change Clone attribute of PostgresSpec to *CloneDescription (#1020) 2020-07-30 16:31:29 +02:00
util_test.go change Clone attribute of PostgresSpec to *CloneDescription (#1020) 2020-07-30 16:31:29 +02:00
zz_generated.deepcopy.go Create cross namespace secrets (#1490) 2021-06-11 10:35:30 +02:00