chore: update
ci-api / test (push) Successful in 22m30s
ci-web / test (push) Successful in 13m15s

This commit is contained in:
Nuxgrid
2026-08-01 23:33:11 +02:00
parent cb966fcaf0
commit fb10d25ee2
21 changed files with 612 additions and 81 deletions
+7
View File
@@ -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 {