Skip to content

switch to rbac/v1#829

Merged
FxKu merged 2 commits into
masterfrom
switch-to-rbacv1
Feb 17, 2020
Merged

switch to rbac/v1#829
FxKu merged 2 commits into
masterfrom
switch-to-rbacv1

Conversation

@FxKu

@FxKu FxKu commented Feb 14, 2020

Copy link
Copy Markdown
Contributor

TL;DR: first change RBAC apiVersion, then enable namespaced roles

Deploying the operator with namespaced roles support (see #786) creates the postgres-pod role in each namespace. If we want to bind to a clusterrole instead we must then overwrite the internal definition by setting the pod_service_account_role_binding_definition in the configmap. So we should first configure the operator and then deploy.

And here's the problem: When changing the RBAC version within the same PR, the apiVersion in the role definition must be of version v1 do be supported by the new operator. But the current operator only understands v1beta1. Everything could be done in one go, but it's safer to do this step here first. Everyone using these definition options must switch to v1 then, but they would need to do this anyway at some point.

@FxKu

FxKu commented Feb 17, 2020

Copy link
Copy Markdown
Contributor Author

👍

1 similar comment
@Jan-M

Jan-M commented Feb 17, 2020

Copy link
Copy Markdown
Contributor

👍

@FxKu
FxKu merged commit 702a194 into master Feb 17, 2020
@FxKu FxKu added this to the 1.4 milestone Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants