diff --git a/docs/commands/rhoas_connector_update.md b/docs/commands/rhoas_connector_update.md index 23b854b16..59dc57258 100644 --- a/docs/commands/rhoas_connector_update.md +++ b/docs/commands/rhoas_connector_update.md @@ -34,11 +34,10 @@ rhoas connector update --kafka-id ce6pg07k09f3rs6us7sg --id ce6tgb1mk0orirpo5i70 ### Options ``` - --id string ID of the Connectors instance to be updated (the default is the instance in current context) - --kafka-id string ID of of the Kafka instance that you want the Connectors instance to use - --name string Override the name of the Connectors instance (the default name is the name specified in the connector configuration file) - --namespace-id string ID of the namespace in which you want to deploy the Connectors instance - -o, --output string Specify the output format. Choose from: "json", "yaml", "yml" + --id string ID of the Connectors instance to be updated (the default is the instance in current context) + --kafka-id string ID of of the Kafka instance that you want the Connectors instance to use + --name string Override the name of the Connectors instance (the default name is the name specified in the connector configuration file) + -o, --output string Specify the output format. Choose from: "json", "yaml", "yml" ``` ### Options inherited from parent commands diff --git a/pkg/cmd/connector/update/update.go b/pkg/cmd/connector/update/update.go index 4b58a48fc..fade7da84 100644 --- a/pkg/cmd/connector/update/update.go +++ b/pkg/cmd/connector/update/update.go @@ -19,10 +19,9 @@ import ( ) type options struct { - namespaceID string - kafkaID string - name string - id string + kafkaID string + name string + id string outputFormat string f *factory.Factory @@ -68,7 +67,6 @@ func NewUpdateCommand(f *factory.Factory) *cobra.Command { flags := flagutil.NewFlagSet(cmd, f.Localizer) flags.StringVar(&opts.id, "id", "", f.Localizer.MustLocalize("connector.flag.id.description")) flags.StringVar(&opts.name, "name", "", f.Localizer.MustLocalize("connector.flag.name.description")) - flags.StringVar(&opts.namespaceID, "namespace-id", "", f.Localizer.MustLocalize("connector.flag.namespaceID.description")) flags.StringVar(&opts.kafkaID, "kafka-id", "", f.Localizer.MustLocalize("connector.flag.kafkaID.description")) flags.AddOutput(&opts.outputFormat) @@ -94,10 +92,6 @@ func runUpdate(opts *options) error { connector.SetName(opts.name) connectorChanged = true } - if opts.namespaceID != "" { - connector.SetNamespaceId(opts.namespaceID) - connectorChanged = true - } if opts.kafkaID != "" { kafkaInstance, _, kafkaErr := kafkautil.GetKafkaByID(opts.f.Context, conn.API().KafkaMgmt(), opts.kafkaID) if kafkaErr != nil { diff --git a/pkg/core/localize/locales/en/cmd/connectors.toml b/pkg/core/localize/locales/en/cmd/connectors.toml index 3e2371977..79cf33469 100644 --- a/pkg/core/localize/locales/en/cmd/connectors.toml +++ b/pkg/core/localize/locales/en/cmd/connectors.toml @@ -415,9 +415,6 @@ one = 'The location of the configuration file that defines the Connectors instan [connector.flag.kafka.description] one = 'ID of the Kafka instance (the default is the Kafka instance for the current context)' -[connector.flag.namespaceID.description] -one = 'ID of the namespace in which you want to deploy the Connectors instance' - [connector.flag.kafkaID.description] one = 'ID of of the Kafka instance that you want the Connectors instance to use'