ensonic
01/29/2025, 3:39 PMdocker run -it quay.io/authzed/spicedb:v1.33.1 -- help datastore
shows that there is a datastore but not how the subcommands work. In my k8s yaml, I previously uses:
args:
- migrate
- head
and I still haven't figure what that should be to avoid the deprecation warning. did both commands become subcomands of the datastore command?yetitwo
01/29/2025, 3:40 PMā playground git:(remove-old-readme) spicedb datastore migrate --help
Executes datastore schema migrations for the datastore.
The special value "head" can be used to migrate to the latest revision.
Usage:
spicedb datastore migrate [revision] [flags]
Flags:
--datastore-conn-uri string connection string used by remote datastores (e.g. "postgres://postgres:password@localhost:5432/spicedb")
--datastore-credentials-provider-name string retrieve datastore credentials dynamically using ("aws-iam")
--datastore-engine string type of datastore to initialize ("cockroachdb", "mysql", "postgres", "spanner") (default "memory")
--datastore-mysql-table-prefix string prefix to add to the name of all mysql database tables
--datastore-spanner-credentials string path to service account key credentials file with access to the cloud spanner instance (omit to use application default credentials)
--datastore-spanner-emulator-host string URI of spanner emulator instance used for development and testing (e.g. localhost:9010)
-h, --help help for migrate
--migration-backfill-batch-size uint number of items to migrate per iteration of a datastore backfill (default 1000)
--migration-timeout duration defines a timeout for the execution of the migration, set to 1 hour by default (default 1h0m0s)
--otel-endpoint string OpenTelemetry collector endpoint - the endpoint can also be set by using enviroment variables
--otel-insecure connect to the OpenTelemetry collector in plaintext
--otel-provider string OpenTelemetry provider for tracing ("none", "otlphttp", "otlpgrpc") (default "none")
--otel-sample-ratio float ratio of traces that are sampled (default 0.01)
--otel-service-name string service name for trace data (default "spicedb")
--otel-trace-propagator string OpenTelemetry trace propagation format ("b3", "w3c", "ottrace"). Add multiple propagators separated by comma. (default "w3c")
--pprof-block-profile-rate int sets the block profile sampling rate
--pprof-mutex-profile-rate int sets the mutex profile sampling rate
--termination-log-path string define the path to the termination log file, which contains a JSON payload to surface as reason for termination - disabled by default
Global Flags:
--log-format string format of logs ("auto", "console", "json") (default "auto")
--log-level string verbosity of logging ("trace", "debug", "info", "warn", "error") (default "info")
--skip-release-check if true, skips checking for new SpiceDB releases
yetitwo
01/29/2025, 3:41 PMargs:
- datastore
- migrate
- head
is that what you're saying errored out?ensonic
01/29/2025, 3:42 PMdatastore migrate
and datastore head
, let me try thatensonic
01/29/2025, 3:45 PMyetitwo
01/29/2025, 3:47 PM