diff --git a/lib/kubernetes-deploy/deploy_task.rb b/lib/kubernetes-deploy/deploy_task.rb index 4598d4547..b6c5c7084 100644 --- a/lib/kubernetes-deploy/deploy_task.rb +++ b/lib/kubernetes-deploy/deploy_task.rb @@ -286,12 +286,12 @@ def validate_globals(resources) global_names = FormattedLogger.indent_four(global_names.join("\n")) if @allow_globals - msg = "The ability for this task to deploy global resources will be removed in the next version:" + msg = "The ability for this task to deploy global resources will be removed in the next version, which will affect the following resources:" msg += "\n#{global_names}" @logger.summary.add_paragraph(ColorizedString.new(msg).yellow) else @logger.summary.add_paragraph(ColorizedString.new("Global resources:\n#{global_names}").yellow) - raise FatalDeploymentError, "Deploying global resource is not allowed from this command." + raise FatalDeploymentError, "This command is namespaced and cannot be used to deploy global resources." end end