Merge pull request #6955 from Iceber/update_metadata_schema_comment

fix comments on metadata schema and update namespace doc
This commit is contained in:
Kazuyoshi Kato 2022-05-19 15:20:42 -07:00 committed by GitHub
commit f8a155ff8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View File

@ -24,6 +24,8 @@ ns, ok := namespaces.Namespace(ctx)
Because the client calls containerd's gRPC API to interact with the daemon, all API calls require a context with a namespace set. Because the client calls containerd's gRPC API to interact with the daemon, all API calls require a context with a namespace set.
> Note that a namespace cannot be named `"version"` ([#6944](https://github.com/containerd/containerd/issues/6944)).
## How low level is the implementation? ## How low level is the implementation?
Namespaces are passed through the containerd API to the underlying plugins providing functionality. Namespaces are passed through the containerd API to the underlying plugins providing functionality.

View File

@ -44,10 +44,15 @@
// //
// Below is the current database schema. This should be updated each time // Below is the current database schema. This should be updated each time
// the structure is changed in addition to adding a migration and incrementing // the structure is changed in addition to adding a migration and incrementing
// the database version. Note that `╘══*...*` refers to maps with arbitrary // the database version.
// keys. // Notes:
// ├──version : <varint> - Latest version, see migrations // * `╘══*...*` refers to maps with arbitrary keys
// * `version` is a key to a numeric value identifying the minor revisions
// of schema version
// * a namespace in a schema bucket cannot be named "version"
//
// └──v1 - Schema version bucket // └──v1 - Schema version bucket
// ├──version : <varint> - Latest version, see migrations
// ╘══*namespace* // ╘══*namespace*
// ├──labels // ├──labels
// │  ╘══*key* : <string> - Label value // │  ╘══*key* : <string> - Label value