You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(storage): support DynamoDB tablenamePrefix for cache driver
Add a tablenamePrefix option to the dynamodb cacheDriver so administrators can
configure all DynamoDB table names with a single prefix instead of declaring
each table individually. Explicit per-table names continue to override derived
names for backward compatibility.
Fixes#2966
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
"cacheTablename": "ZotBlobTable" // table used to store deduped blobs
1009
-
1007
+
"region": "us-east-2", // aws region
1008
+
"tablenamePrefix": "Zot" // table name prefix
1010
1009
}
1011
1010
},
1012
1011
```
1013
1012
Like s3 configuration AWS GO SDK will load additional config and credentials values from the environment variables, shared credentials, and shared configuration files
1014
1013
1015
-
Additionally if search extension is enabled, additional parameters are needed:
1014
+
With the `tablenamePrefix` value above, zot uses `ZotBlobTable` for dedupe cache data. When auth or the search
1015
+
extension is enabled, zot also uses `ZotUserDataTable`, `ZotApiKeyDataTable`, `ZotRepoMetadataTable`,
1016
+
`ZotImageMetaTable`, `ZotRepoBlobsInfoTable`, and `ZotVersionTable`.
1017
+
1018
+
Individual table names can still be configured for backward compatibility or to override a derived name:
1016
1019
1017
1020
```
1018
1021
"cacheDriver": {
@@ -1027,12 +1030,13 @@ Additionally if search extension is enabled, additional parameters are needed:
The following AWS policy is required by zot for caching blobs. Make sure to replace DYNAMODB_TABLE with the name of your table which in our case is the value of "cacheTablename" (ZotBlobTable)
1038
+
The following AWS policy is required by zot for caching blobs. Make sure to replace DYNAMODB_TABLE with the name of
1039
+
your table. When `tablenamePrefix` is used, this includes the generated table names described above.
0 commit comments