Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local block adaptor import support #5277

Merged
merged 12 commits into from
Feb 21, 2023
11 changes: 11 additions & 0 deletions api/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ components:
application/json:
schema:
$ref: "#/components/schemas/Error"
Forbidden:
description: Access is forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
NotFound:
description: Resource Not Found
content:
Expand Down Expand Up @@ -944,6 +950,7 @@ components:
- blockstore_namespace_example
- blockstore_namespace_ValidityRegex
- pre_sign_support
- import_support
properties:
blockstore_type:
type: string
Expand All @@ -955,6 +962,8 @@ components:
type: string
pre_sign_support:
type: boolean
import_support:
type: boolean

VersionConfig:
type: object
Expand Down Expand Up @@ -3172,6 +3181,8 @@ paths:
$ref: "#/components/responses/ValidationError"
401:
$ref: "#/components/responses/Unauthorized"
403:
$ref: "#/components/responses/Forbidden"
404:
$ref: "#/components/responses/NotFound"
default:
Expand Down
16 changes: 16 additions & 0 deletions clients/java/api/openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions clients/java/docs/ImportApi.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions clients/java/docs/StorageConfig.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions clients/python/docs/ImportApi.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions clients/python/docs/StorageConfig.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions clients/python/lakefs_client/model/storage_config.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cmd/lakefs/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ func checkMetadataPrefix(ctx context.Context, repo *catalog.Repository, logger l
if _, err := adapter.Get(ctx, block.ObjectPointer{
StorageNamespace: repo.StorageNamespace,
Identifier: dummyFile,
IdentifierType: block.IdentifierTypeRelative,
}, -1); err != nil {
logger.WithFields(logging.Fields{
"path": dummyFile,
Expand Down
11 changes: 11 additions & 0 deletions docs/assets/js/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ components:
application/json:
schema:
$ref: "#/components/schemas/Error"
Forbidden:
description: Access is forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
NotFound:
description: Resource Not Found
content:
Expand Down Expand Up @@ -944,6 +950,7 @@ components:
- blockstore_namespace_example
- blockstore_namespace_ValidityRegex
- pre_sign_support
- import_support
properties:
blockstore_type:
type: string
Expand All @@ -955,6 +962,8 @@ components:
type: string
pre_sign_support:
type: boolean
import_support:
type: boolean

VersionConfig:
type: object
Expand Down Expand Up @@ -3172,6 +3181,8 @@ paths:
$ref: "#/components/responses/ValidationError"
401:
$ref: "#/components/responses/Unauthorized"
403:
$ref: "#/components/responses/Forbidden"
404:
$ref: "#/components/responses/NotFound"
default:
Expand Down
2 changes: 2 additions & 0 deletions docs/reference/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ This reference uses `.` to denote the nesting of values.
If specified, the storage namespace will be filled with this default value as a prefix when creating a repository from the UI.
The user may still change it to something else.
* `blockstore.local.path` `(string: "~/lakefs/data")` - When using the local Block Adapter, which directory to store files in
* `blockstore.local.import_enabled` `(bool: false)` - Enable import for local Block Adapter, relevant if you are using shared location
nopcoder marked this conversation as resolved.
Show resolved Hide resolved
* `blockstore.local.allowed_external_prefixes` `([]string: [])` - List of prefixes used to match any access for external location used by local block adapter
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this interact with the storage namespaces? Should sn be included here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the description - let me know if it is clear now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you push?

* `blockstore.gs.credentials_file` `(string : )` - If specified will be used as a file path of the JSON file that contains your Google service account key
* `blockstore.gs.credentials_json` `(string : )` - If specified will be used as JSON string that contains your Google service account key (when credentials_file is not set)
* `blockstore.gs.pre_signed_expiry` `(time duration : "15m")` - Expiry of pre-signed URL.
Expand Down
Loading