Skip to content

Commit 4a5c809

Browse files
authored
Allow setting api keys through env variables (#7)
* Allow setting api keys through env variables * Use kong functionality
1 parent 5731e73 commit 4a5c809

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/migrate_from_qdrant.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ const HTTPS = "https"
2525
type MigrateFromQdrantCmd struct {
2626
SourceUrl string `help:"Source GRPC URL, e.g. https://your-qdrant-hostname:6334" required:"true"`
2727
SourceCollection string `help:"Source collection" required:"true"`
28-
SourceAPIKey string `help:"Source API key"`
28+
SourceAPIKey string `help:"Source API key" env:"SOURCE_API_KEY"`
2929
TargetUrl string `help:"Target GRPC URL, e.g. https://your-qdrant-hostname:6334" required:"true"`
3030
TargetCollection string `help:"Target collection" required:"true"`
31-
TargetAPIKey string `help:"Target API key"`
31+
TargetAPIKey string `help:"Target API key" env:"TARGET_API_KEY"`
3232
BatchSize uint32 `short:"b" help:"Batch size" default:"50"`
3333
CreateTargetCollection bool `short:"c" help:"Create the target collection if it does not exist" default:"false"`
3434
MigrationMarker string `short:"m" help:"Migration marker to resume the migration" optional:"true"`

0 commit comments

Comments
 (0)