@@ -102,14 +102,14 @@ func (c *DeployCommand) GetPluginCommand() plugin.Command {
102
102
UsageDetails : plugin.Usage {
103
103
Usage : `Deploy a multi-target app archive
104
104
105
- cf deploy MTA [-e EXT_DESCRIPTOR[,...]] [-t TIMEOUT] [--version-rule VERSION_RULE] [-u URL] [-f] [--retries RETRIES] [--no-start] [--namespace NAMESPACE] [--apply-namespace-app-names= true/false] [--apply-namespace-service-names= true/false] [--apply-namespace-app-routes= true/false] [--delete-services] [--delete-service-keys] [--delete-service-brokers] [--keep-files] [--no-restart-subscribed-apps] [--do-not-fail-on-missing-permissions] [--abort-on-error] [--strategy STRATEGY] [--skip-testing-phase] [--skip-idle-start] [--apps-start-timeout TIMEOUT] [--apps-stage-timeout TIMEOUT] [--apps-upload-timeout TIMEOUT] [--apps-task-execution-timeout TIMEOUT]
105
+ cf deploy MTA [-e EXT_DESCRIPTOR[,...]] [-t TIMEOUT] [--version-rule VERSION_RULE] [-u URL] [-f] [--retries RETRIES] [--no-start] [--namespace NAMESPACE] [--apply-namespace-app-names true/false] [--apply-namespace-service-names true/false] [--apply-namespace-app-routes true/false] [--delete-services] [--delete-service-keys] [--delete-service-brokers] [--keep-files] [--no-restart-subscribed-apps] [--do-not-fail-on-missing-permissions] [--abort-on-error] [--strategy STRATEGY] [--skip-testing-phase] [--skip-idle-start] [--apps-start-timeout TIMEOUT] [--apps-stage-timeout TIMEOUT] [--apps-upload-timeout TIMEOUT] [--apps-task-execution-timeout TIMEOUT]
106
106
107
107
108
108
Perform action on an active deploy operation
109
109
cf deploy -i OPERATION_ID -a ACTION [-u URL]
110
110
111
111
(EXPERIMENTAL) Deploy a multi-target app archive referenced by a remote URL
112
- <write MTA archive URL to STDOUT> | cf deploy [-e EXT_DESCRIPTOR[,...]] [-t TIMEOUT] [--version-rule VERSION_RULE] [-u MTA_CONTROLLER_URL] [--retries RETRIES] [--no-start] [--namespace NAMESPACE] [--apply-namespace-app-names= true/false] [--apply-namespace-service-names= true/false] [--apply-namespace-app-routes= true/false] [--delete-services] [--delete-service-keys] [--delete-service-brokers] [--keep-files] [--no-restart-subscribed-apps] [--do-not-fail-on-missing-permissions] [--abort-on-error] [--strategy STRATEGY] [--skip-testing-phase] [--skip-idle-start] [--apps-start-timeout TIMEOUT] [--apps-stage-timeout TIMEOUT] [--apps-upload-timeout TIMEOUT] [--apps-task-execution-timeout TIMEOUT]` ,
112
+ <write MTA archive URL to STDOUT> | cf deploy [-e EXT_DESCRIPTOR[,...]] [-t TIMEOUT] [--version-rule VERSION_RULE] [-u MTA_CONTROLLER_URL] [--retries RETRIES] [--no-start] [--namespace NAMESPACE] [--apply-namespace-app-names true/false] [--apply-namespace-service-names true/false] [--apply-namespace-app-routes true/false] [--delete-services] [--delete-service-keys] [--delete-service-brokers] [--keep-files] [--no-restart-subscribed-apps] [--do-not-fail-on-missing-permissions] [--abort-on-error] [--strategy STRATEGY] [--skip-testing-phase] [--skip-idle-start] [--apps-start-timeout TIMEOUT] [--apps-stage-timeout TIMEOUT] [--apps-upload-timeout TIMEOUT] [--apps-task-execution-timeout TIMEOUT]` ,
113
113
114
114
Options : map [string ]string {
115
115
extDescriptorsOpt : "Extension descriptors" ,
@@ -121,10 +121,10 @@ func (c *DeployCommand) GetPluginCommand() plugin.Command {
121
121
moduleOpt : "Deploy list of modules which are contained in the deployment descriptor, in the current location" ,
122
122
resourceOpt : "Deploy list of resources which are contained in the deployment descriptor, in the current location" ,
123
123
util .GetShortOption (noStartOpt ): "Do not start apps" ,
124
- util .GetShortOption (namespaceOpt ): "(EXPERIMENTAL) Namespace for the mta , applied to app and service names as well" ,
125
- util .GetShortOption (applyNamespaceAppNamesOpt ): "Apply namespace to application names" ,
126
- util .GetShortOption (applyNamespaceServiceNamesOpt ): "Apply namespace to service names" ,
127
- util .GetShortOption (applyNamespaceAppRoutesOpt ): "Apply namespace to application routes" ,
124
+ util .GetShortOption (namespaceOpt ): "(EXPERIMENTAL) Namespace for the MTA , applied on app names, app routes and service names" ,
125
+ util .GetShortOption (applyNamespaceAppNamesOpt ): "(EXPERIMENTAL) Apply namespace to application names: (true, false) " ,
126
+ util .GetShortOption (applyNamespaceServiceNamesOpt ): "(EXPERIMENTAL) Apply namespace to service names: (true, false)" ,
127
+ util .GetShortOption (applyNamespaceAppRoutesOpt ): "(EXPERIMENTAL) Apply namespace to application routes: (true, false)" ,
128
128
util .GetShortOption (deleteServicesOpt ): "Recreate changed services / delete discontinued services" ,
129
129
util .GetShortOption (deleteServiceKeysOpt ): "Delete existing service keys and apply the new ones" ,
130
130
util .GetShortOption (deleteServiceBrokersOpt ): "Delete discontinued service brokers" ,
@@ -348,15 +348,10 @@ func (c *DeployCommand) executeInternal(positionalArgs []string, dsHost string,
348
348
// Build the process instance
349
349
processBuilder := NewDeploymentStrategy (flags , c .processTypeProvider ).CreateProcessBuilder ()
350
350
processBuilder .Namespace (namespace )
351
- if (namespace == "" ) {
352
- processBuilder .Parameter ("applyNamespaceAppNames" , "false" )
353
- processBuilder .Parameter ("applyNamespaceServiceNames" , "false" )
354
- processBuilder .Parameter ("applyNamespaceAppRoutes" , "false" )
355
- } else {
356
- processBuilder .Parameter ("applyNamespaceAppNames" , GetStringOpt (applyNamespaceAppNamesOpt , flags ))
357
- processBuilder .Parameter ("applyNamespaceServiceNames" , GetStringOpt (applyNamespaceServiceNamesOpt , flags ))
358
- processBuilder .Parameter ("applyNamespaceAppRoutes" , GetStringOpt (applyNamespaceAppRoutesOpt , flags ))
359
- }
351
+ processBuilder .Parameter ("applyNamespaceAppNames" , GetStringOpt (applyNamespaceAppNamesOpt , flags ))
352
+ processBuilder .Parameter ("applyNamespaceServiceNames" , GetStringOpt (applyNamespaceServiceNamesOpt , flags ))
353
+ processBuilder .Parameter ("applyNamespaceAppRoutes" , GetStringOpt (applyNamespaceAppRoutesOpt , flags ))
354
+
360
355
processBuilder .Parameter ("appArchiveId" , strings .Join (uploadedArchivePartIds , "," ))
361
356
processBuilder .Parameter ("mtaExtDescriptorId" , strings .Join (uploadedExtDescriptorIDs , "," ))
362
357
processBuilder .Parameter ("mtaId" , mtaId )
@@ -709,7 +704,7 @@ func ValidateBooleanFlag(flagName string, flags *flag.FlagSet) error {
709
704
}
710
705
711
706
if flagValueStr != "true" && flagValueStr != "false" {
712
- return fmt .Errorf ("invalid value for %s: %s. Expected true or false." , flagName , flagValueStr )
707
+ return fmt .Errorf ("Invalid value for %s: %s. Expected true or false." , flagName , flagValueStr )
713
708
}
714
709
715
710
return nil
0 commit comments