Selaa lähdekoodia

update local flag to source flag for updates

Alexander Belanger 5 vuotta sitten
vanhempi
sitoutus
8d27bf7a5a
3 muutettua tiedostoa jossa 5 lisäystä ja 15 poistoa
  1. 0 7
      cli/cmd/create.go
  2. 5 6
      cli/cmd/deploy.go
  3. 0 2
      cli/values-test.yaml

+ 0 - 7
cli/cmd/create.go

@@ -87,13 +87,6 @@ func init() {
 
 	createCmd.MarkPersistentFlagRequired("app")
 
-	createCmd.PersistentFlags().BoolVar(
-		&local,
-		"local",
-		true,
-		"whether local context should be used for build",
-	)
-
 	createCmd.PersistentFlags().StringVarP(
 		&localPath,
 		"path",

+ 5 - 6
cli/cmd/deploy.go

@@ -198,7 +198,6 @@ the image that the application uses if no --values file is specified:
 
 var app string
 var getEnvFileDest string
-var local bool
 var localPath string
 var tag string
 var dockerfile string
@@ -223,11 +222,11 @@ func init() {
 		"Namespace of the application",
 	)
 
-	updateCmd.PersistentFlags().BoolVar(
-		&local,
+	updateCmd.PersistentFlags().StringVar(
+		&source,
+		"source",
 		"local",
-		true,
-		"Whether local context should be used for build",
+		"the type of source (\"local\" or \"github\")",
 	)
 
 	updateCmd.PersistentFlags().StringVarP(
@@ -385,7 +384,7 @@ func updateGetAgent(client *api.Client) (*deploy.DeployAgent, error) {
 			OverrideTag:     tag,
 			Method:          buildMethod,
 		},
-		Local: local,
+		Local: source != "github",
 	})
 }
 

+ 0 - 2
cli/values-test.yaml

@@ -1,2 +0,0 @@
-container:
-  port: 8080