Skip to content

switch to rbac/v1 #829

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 17, 2020
Merged

switch to rbac/v1 #829

merged 2 commits into from
Feb 17, 2020

Conversation

FxKu
Copy link
Member

@FxKu FxKu commented Feb 14, 2020

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
Copy link
Member Author

FxKu commented Feb 17, 2020

👍

1 similar comment
@Jan-M
Copy link
Member

Jan-M commented Feb 17, 2020

👍

@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