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

Max allowed namespaces per helm-op from 1 (current) to n (proposed) #2340

Closed
ianmiell opened this issue Aug 8, 2019 · 3 comments
Closed
Labels
blocked-needs-validation Issue is waiting to be validated before we can proceed enhancement

Comments

@ianmiell
Copy link

ianmiell commented Aug 8, 2019

Apologies if this is a ramble, but I will endeavour to make this more coherent at a later date if this has legs.

I have been trying to get a model working whereby we have a 'global' flux that manages other fluxes in their own namespace that, in turn, deploy to another namespace from a separate git repo. It seems that this is logically impossible, as at present the helm-operator can either 'see' helmRelease items cluster-wide, or at a single namespace-specific level using allowNamespace. So I believe we are forced back to deploying separate fluxes one by one per namespace that we want to manage.

What would be good is if allowNamespace were able to take a subset of all all namespaces as 'allowed'. Then we could allocate a set of namespaces that a flux was responsible for.

What would be even better is if allowNamespace were itself dynamic, and taken from a git repo-managed config.

As a cherry on top, regexes would be even better, as we could then leverage naming standards, eg '^tenant-.*$' could be 'watched' in allowedNamespace(s).

@ianmiell ianmiell added blocked-needs-validation Issue is waiting to be validated before we can proceed enhancement labels Aug 8, 2019
@stefanprodan
Copy link
Member

With this change #2334 you can create HRs in a namespace where helm-op runs and target other namespace.

@ianmiell
Copy link
Author

ianmiell commented Aug 8, 2019

So would the idea be that the 'global' flux would look at HRs in its own namespace (ie allowedNamespace would == namespace), but that these HRs could deploy fluxes/whatever to other namespaces?

@hiddeco
Copy link
Member

hiddeco commented Aug 8, 2019

Correct, see #2334

@ianmiell ianmiell closed this as completed Aug 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocked-needs-validation Issue is waiting to be validated before we can proceed enhancement
Projects
None yet
Development

No branches or pull requests

3 participants