Skip to content

Commit

Permalink
Validate config per repo on server start
Browse files Browse the repository at this point in the history
  • Loading branch information
itaigilo committed Feb 14, 2025
1 parent 4e569da commit 1ea81e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/lakefs/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,10 @@ func checkRepos(ctx context.Context, logger logging.Logger, config config.Config

for _, repo := range repos {
adapterConfig := config.StorageConfig().GetStorageByID(repo.StorageID)
if adapterConfig == nil {
logger.Fatalf("No storage configuration found for repository '%s', StorageID='%s'", repo.Name, repo.StorageID)
continue
}
adapterStorageType := adapterConfig.BlockstoreType()
nsURL, err := url.Parse(repo.StorageNamespace)
if err != nil {
Expand Down

0 comments on commit 1ea81e2

Please sign in to comment.