kubestellar / kubeflex

A flexible and scalable platform for running Kubernetes control plane APIs.
Apache License 2.0
47 stars 13 forks source link

feature: Add additional flags to the `manager` command #177

Closed francostellari closed 9 months ago

francostellari commented 9 months ago

Feature Description

Add additional flags to the manager command to enable the automatic creation of logical spaces during helm installation, similarly to kflex create command.

Proposed Solution

For example manager --create <space1> [--type <type1>] [-p <post-create-hook1>] --create <space2> [--type <type2>] [-p <post-create-hook2>]

This would then be supported in the chart/values.yaml such as:

spaces:
 - name: space1
   type: type1
   p: post-create-hook1
 - name: space2
   type: type2
   p: post-create-hook2

Want to contribute?

Additional Context

No response

ezrasilvera commented 9 months ago

It is still not decided what is the "official" way kubestellar will use KF . Are we going to use post-create-hook or deploy staff directly to the space, what is the relation between KS to KF, etc..

pdettori commented 9 months ago

current flow is:

so the KS controller is deployed per space, differently from the previous design where we had a single, multi-race controller that was always running.

The role of creating spaces is taken by the KubeFlex controller, which is always running and does the creation of spaces. If you want to somehow implement this behavior in a helm chart, I suppose it might be possible just adding the ControlPlane CRs for wds1 and imbs1.

francostellari commented 9 months ago

I will look into it. Thank you