Open a7i opened 2 months ago
/cc @chaunceyjiang
I also considered implementing an EnvOverrider before, but I had not thought through another issue, which is how to better support third-party resources, such as https://github.com/openkruise/kruise/blob/master/apis/apps/v1alpha1/cloneset_types.go#L248. https://github.com/kubeflow/training-operator/blob/master/pkg/apis/kubeflow.org/v1/pytorch_types.go#L56.
What would you like to be added:
Ability to override Envs per member cluster.
Why is this needed:
While PlainTextOverrider is helpful, we may not know exactly at which index position the ENV may be in (since it's an array). For example, we have an env called AUTH_BACKEND which is used to communicate with Vault and this is unique per cluster.
Unknowns/feedback-requested:
map[string]string
may not be ideal, since env can be valueFromenvFrom
-- I think not, because the user can add an OP for the ConfigMap or Secret that is being referenced