Skip to content
New issue

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

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

Already on GitHub? # to your account

Flamingo tenant structure not mapping to Flux tenant structure #46

Open
tommyreilly opened this issue Dec 14, 2023 · 2 comments
Open

Flamingo tenant structure not mapping to Flux tenant structure #46

tommyreilly opened this issue Dec 14, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@tommyreilly
Copy link

Hi,

Hopefully a quick question if someone knows.

In the Flamingo source at:

toolkit.fluxcd.io/tenant: %s

it suggests that the label to identify a tenant is limited to the namespace name:

apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  labels:
    toolkit.fluxcd.io/tenant: %s
  name: flamingo-reconciler
  namespace: %s
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
- kind: ServiceAccount
  name: argocd-application-controller
  namespace: %s

However, Flux multi-tenancy doesn't limit a tenant to a single namespace:

https://fluxcd.io/flux/cmd/flux_create_tenant/

e.g. as per the doc, you can define --with-namespace multiple times which makes sense to me where a team may be allocated more than one namespace in a k8s (shared) cluster:

 # Generate tenant namespaces and role bindings in YAML format
 flux create tenant dev-team \
   --with-namespace=frontend \
   --with-namespace=backend \
   --export > dev-team.yaml

Is this difference between Flamingo tenancy and Flux intended? i..e would I have to work with a tenant = namespace if I wanted to use the Flux subsystem?

@tommyreilly tommyreilly changed the title Flamingo tenant not mapping to Flux tenant Flamingo tenant structure not mapping to Flux tenant structure Dec 14, 2023
@chanwit
Copy link
Collaborator

chanwit commented Dec 20, 2023

Hi @tommyreilly
Thank you for bringing this up.

Our aim is to make Flamingo 100% compatible with Flux tenants.
So yes, we would definitely support the model you suggested.

@chanwit chanwit added the bug Something isn't working label Dec 20, 2023
@tommyreilly
Copy link
Author

Thank you @chanwit

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants