I must be overworked: `docker run -it
# spicedb
e
I must be overworked:
docker 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:
Copy code
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?
y
Copy code
āžœ  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
it should be
Copy code
args:
  - datastore
  - migrate
  - head
is that what you're saying errored out?
e
ahh, I had
datastore migrate
and
datastore head
, let me try that
now it works, thanks a lot!
y
sure thing! i hope you get some rest ^.^
16 Views