refactor: adaption for kine

This commit is contained in:
mendrugory
2022-06-23 12:14:23 +02:00
committed by Dario Tranchitella
parent 3be6cf1c4f
commit 8f59de6e13
17 changed files with 192 additions and 95 deletions

View File

@@ -33,6 +33,7 @@ import (
"github.com/clastix/kamaji/controllers"
"github.com/clastix/kamaji/internal"
"github.com/clastix/kamaji/internal/config"
"github.com/clastix/kamaji/internal/types"
)
var (
@@ -76,6 +77,7 @@ func main() {
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
Config: controllers.TenantControlPlaneReconcilerConfig{
ETCDStorageType: types.ParseETCDStorageType(conf.GetString("etcd-storage-type")),
ETCDCASecretName: conf.GetString("etcd-ca-secret-name"),
ETCDCASecretNamespace: conf.GetString("etcd-ca-secret-namespace"),
ETCDClientSecretName: conf.GetString("etcd-client-secret-name"),