kubestellar / kubeflex

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

feature: default values for user-defined PostCreateHook variables #233

Open MikeSpreitzer opened 5 months ago

MikeSpreitzer commented 5 months ago

Feature Description

A PostCreateHook should be able to define default values for its user-defined variables.

Proposed Solution

Add a way to do that.

Want to contribute?

Additional Context

No response

pdettori commented 5 months ago

@MikeSpreitzer this sounds like an useful feature, any thoughts on where such default values could be maintained ?

MikeSpreitzer commented 5 months ago

The idea that first comes to mind is adding a section in the PostCreateHook object. The simplest schema would be a map from variable name to default value. The recommended pattern in Kubernetes is to eschew such simplicity for the sake of making the domain of every map fixed in the schema, instead using a list of (name, value) pairs.