chore: update
This commit is contained in:
@@ -18,6 +18,13 @@ func restConfig(cfg *config.Config) (*rest.Config, error) {
|
||||
return rest.InClusterConfig()
|
||||
}
|
||||
|
||||
// NewRESTConfig expose la config REST brute — nécessaire pour les appels qui
|
||||
// ne passent pas par le Clientset généré (ex: exec dans un pod via
|
||||
// remotecommand, utilisé pour la migration pg_dump/restore).
|
||||
func NewRESTConfig(cfg *config.Config) (*rest.Config, error) {
|
||||
return restConfig(cfg)
|
||||
}
|
||||
|
||||
func NewClient(cfg *config.Config) (*kubernetes.Clientset, error) {
|
||||
k8sCfg, err := restConfig(cfg)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user