kubestellar / kubeflex

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

feature: add key to secretref for kubeconfig in controlplane #117

Closed pdettori closed 9 months ago

pdettori commented 10 months ago

Feature Description

Currently the secretref in controlplane provides the secret name and namespace. E.g.,

 secretRef:
    name: vc-vcluster
    namespace: imbs1-system

However, some control plane like vcluster use a different name for the key used for kubeconfig - e.g., config

Proposed Solution

Add the key for kubeconfig in secretref, eg.,:

 secretRef:
    name: vc-vcluster
    namespace: imbs1-system
    key: config

Want to contribute?

Additional Context

No response