Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Ability to deploy several keycloaks per namespace #468

Closed
desaintmartin opened this issue Jan 29, 2022 · 4 comments
Closed

Ability to deploy several keycloaks per namespace #468

desaintmartin opened this issue Jan 29, 2022 · 4 comments

Comments

@desaintmartin
Copy link

Description

In order to ease maintenance, it would be great to have the ability to customize naming of resources created by the operator in order to have several Keycloak installations in the same namespace.

Today, ApplicaitonName is hardcoded:

ApplicationName = "keycloak"

Discussion

No response

Motivation

No response

Details

No response

@andreaTP
Copy link
Contributor

andreaTP commented Feb 4, 2022

Hi @desaintmartin ,

thanks for rising this question! I see that what you are asking is desirable but would require also a different approach for the rest of the CRDs (e.g. Realm, Users , etc.).

Can you elaborate on your specific use-case? Do you have specific limitations on namespaces creation? What's your environment?

Thanks in advance!

@desaintmartin
Copy link
Author

Sure! I understand it would require a lot of work, so let me give my use case:

  • We need to deploy N keycloak instances on a given Kubernetes cluster
  • Setting up RBACs to give needed permissions for keycloak operator on a namespace is a centralized action (actually, another Chart, but that's outside of the scope) managed by a Platform team but we still would like to control all RBACs
  • Having a single namespace for all keycloaks:
    • would allow a simple permissions management & audit process
    • Would allow decentralized deployment by Software Engineering teams

@andreaTP
Copy link
Contributor

N keycloak instances

Are the keycloak instances configured differently?

Regarding the mentioned advantages:

  • would allow a simple permissions management & audit process
  • Would allow decentralized deployment by Software Engineering teams

There are multiple ways for achieving the same without enclosing all the Keycloak instances into one namespace, e.g. simply adding specific labels; have you tried evaluated alternative approaches?

All in all, at this point we are focusing on the development of a new operator for Keycloak, this is unlikely to happen in this repo unless a compelling use-case pops-up and/or we have a community contribution.

I encourage you to take a look at the design document and follow the development in the main keycloak/keycloak repo.

@andreaTP
Copy link
Contributor

andreaTP commented Mar 7, 2022

As this issue has been around for a long time we are closing this issue as out of date. If the issue is still valid, feel free to reopen and provide details to why it is still valid.

@andreaTP andreaTP closed this as completed Mar 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants