From 38c4763f79bde9c7e05a2ca729c3a35c36410f94 Mon Sep 17 00:00:00 2001 From: "Ariel Shaqed (Scolnicov)" Date: Thu, 19 Nov 2020 14:17:35 +0200 Subject: [PATCH] Make "lakefs init" work when _not_ specifying access_key_id Fixes #940. --- cmd/lakefs/cmd/init.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/lakefs/cmd/init.go b/cmd/lakefs/cmd/init.go index e259bfc5383..f3b9e1a798b 100644 --- a/cmd/lakefs/cmd/init.go +++ b/cmd/lakefs/cmd/init.go @@ -80,5 +80,9 @@ func init() { rootCmd.AddCommand(initCmd) f := initCmd.Flags() f.String("user-name", "", "an identifier for the user (e.g. \"jane.doe\")") + f.String("access-key-id", "", "AWS-format access key ID to create for that user (for integration)") + f.String("secret-access-key", "", "AWS-format secret access key to create for that user (for integration)") + f.MarkHidden("access-key-id") + f.MarkHidden("secret-access-key") _ = initCmd.MarkFlagRequired("user-name") }