mirror of
https://github.com/grafana/grafana.git
synced 2025-09-16 19:33:29 +08:00
IAM Folder Reconciler: Make operator available as a target when running the grafana binary. (#110567)
This commit is contained in:
@ -67,7 +67,7 @@ func main() {
|
||||
|
||||
// Create app config from operator config
|
||||
appCfg := app.AppConfig{
|
||||
ZanzanaCfg: cfg.ZanzanaClient,
|
||||
ZanzanaClientCfg: cfg.ZanzanaClient,
|
||||
FolderReconcilerNamespace: cfg.FolderReconciler.Namespace,
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,7 @@ var appManifestData = app.ManifestData{
|
||||
}
|
||||
|
||||
type AppConfig struct {
|
||||
ZanzanaCfg authz.ZanzanaClientConfig
|
||||
ZanzanaClientCfg authz.ZanzanaClientConfig
|
||||
FolderReconcilerNamespace string
|
||||
}
|
||||
|
||||
@ -33,7 +33,7 @@ func New(cfg app.Config) (app.App, error) {
|
||||
}
|
||||
|
||||
folderReconciler, err := reconcilers.NewFolderReconciler(reconcilers.ReconcilerConfig{
|
||||
ZanzanaCfg: appSpecificConfig.ZanzanaCfg,
|
||||
ZanzanaCfg: appSpecificConfig.ZanzanaClientCfg,
|
||||
KubeConfig: &cfg.KubeConfig,
|
||||
FolderReconcilerNamespace: appSpecificConfig.FolderReconcilerNamespace,
|
||||
})
|
||||
|
Reference in New Issue
Block a user