From 21a890c633932902ca52c297f3b9a1e40cfac926 Mon Sep 17 00:00:00 2001 From: okysetiawan Date: Thu, 2 Oct 2025 14:42:52 +0700 Subject: [PATCH 1/2] chore: remove default value of datastore --- client/cmd/resource/apply.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/cmd/resource/apply.go b/client/cmd/resource/apply.go index 645933ed85..872ff8482b 100644 --- a/client/cmd/resource/apply.go +++ b/client/cmd/resource/apply.go @@ -62,7 +62,7 @@ func NewApplyCommand() *cobra.Command { cmd.Flags().StringSliceVarP(&apply.resourceNames, "resource-names", "R", nil, "Selected resources of optimus project") cmd.Flags().BoolVarP(&apply.verbose, "verbose", "v", false, "Print details related to upload-all stages") cmd.Flags().StringVarP(&apply.namespaceName, "namespace", "n", "", "Namespace name within project") - cmd.Flags().StringVarP(&apply.storeName, "datastore", "s", "bigquery", "Datastore type where the resource belongs") + cmd.Flags().StringVarP(&apply.storeName, "datastore", "s", "", "Datastore type where the resource belongs") return cmd } From 512232fb0712fcfc63dc82147c7524936e0965ff Mon Sep 17 00:00:00 2001 From: okysetiawan Date: Thu, 2 Oct 2025 15:00:35 +0700 Subject: [PATCH 2/2] feat: mark datastore as required flag --- client/cmd/resource/apply.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/cmd/resource/apply.go b/client/cmd/resource/apply.go index 872ff8482b..9e226cb2b8 100644 --- a/client/cmd/resource/apply.go +++ b/client/cmd/resource/apply.go @@ -63,6 +63,9 @@ func NewApplyCommand() *cobra.Command { cmd.Flags().BoolVarP(&apply.verbose, "verbose", "v", false, "Print details related to upload-all stages") cmd.Flags().StringVarP(&apply.namespaceName, "namespace", "n", "", "Namespace name within project") cmd.Flags().StringVarP(&apply.storeName, "datastore", "s", "", "Datastore type where the resource belongs") + + _ = cmd.MarkFlagRequired("datastore") + return cmd }