You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2021/04/13 11:51:38 UTC

[camel-k] 05/05: refactor(cmd): rename operator resources flag

This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 39a450173ca0ac78ae78976a4c0bef140f6ec351
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Tue Apr 13 10:50:40 2021 +0200

    refactor(cmd): rename operator resources flag
---
 pkg/cmd/install.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/cmd/install.go b/pkg/cmd/install.go
index ade4509..73c501b 100644
--- a/pkg/cmd/install.go
+++ b/pkg/cmd/install.go
@@ -129,7 +129,7 @@ func newCmdInstall(rootCmdOptions *RootCmdOptions) (*cobra.Command, *installCmdO
 	// Pod settings
 	cmd.Flags().StringArray("toleration", nil, "Add a Toleration to the operator Pod")
 	cmd.Flags().StringArray("node-selector", nil, "Add a NodeSelector to the operator Pod")
-	cmd.Flags().StringArray("resources-requirements", nil, "Define the resources requests and limits assigned to the operator Pod as <requestType.requestResource=value> (ie, limits.memory=256Mi)")
+	cmd.Flags().StringArray("operator-resources", nil, "Define the resources requests and limits assigned to the operator Pod as <requestType.requestResource=value> (ie, limits.memory=256Mi)")
 
 	// save
 	cmd.Flags().Bool("save", false, "Save the install parameters into the default kamel configuration file (kamel-config.yaml)")
@@ -179,7 +179,7 @@ type installCmdOptions struct {
 	Tolerations             []string `mapstructure:"tolerations"`
 	NodeSelectors           []string `mapstructure:"node-selectors"`
 	HTTPProxySecret         string   `mapstructure:"http-proxy-secret"`
-	ResourcesRequirements   []string `mapstructure:"resources-requirements"`
+	ResourcesRequirements   []string `mapstructure:"operator-resources"`
 
 	registry         v1.IntegrationPlatformRegistrySpec
 	registryAuth     registry.Auth