- NAME
-
- gcloud alpha container fleet scopes namespaces update - update a fleet namespace
- SYNOPSIS
-
-
gcloud alpha container fleet scopes namespaces update
(NAMESPACE
:--scope
=SCOPE
) [--update-labels
=[KEY
=VALUE
,…]] [--update-namespace-labels
=[KEY
=VALUE
,…]] [--clear-labels
|--remove-labels
=[KEY
,…]] [--clear-namespace-labels
|--remove-namespace-labels
=[KEY
,…]] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
-
(ALPHA)
This command can fail for the following reasons:- The project specified does not exist.
- The fleet namespace does not exist in the project.
- The caller does not have permission to access the project or namespace.
- EXAMPLES
-
To update the namespace
NAMESPACE
in the active project:gcloud alpha container fleet scopes namespaces update NAMESPACE
To update the namespace
NAMESPACE
in projectPROJECT_ID
:gcloud alpha container fleet scopes namespaces update NAMESPACE --project=PROJECT_ID
- POSITIONAL ARGUMENTS
-
-
Namespace resource - The group of arguments defining the Fleet Namespace. The
arguments in this group can be used to specify the attributes of this resource.
(NOTE) Some attributes are not given arguments in this group but can be set in
other ways.
To set the
project
attribute:-
provide the argument
NAMESPACE
on the command line with a fully specified name; -
provide the argument
--project
on the command line; -
set the property
core/project
.
To set the
location
attribute:-
provide the argument
NAMESPACE
on the command line with a fully specified name; - global is the only supported location.
This must be specified.
NAMESPACE
-
ID of the namespace or fully qualified identifier for the namespace.
To set the
namespace
attribute:-
provide the argument
NAMESPACE
on the command line.
This positional argument must be specified if any of the other arguments in this group are specified.
-
provide the argument
--scope
=SCOPE
-
the
To set the
scope
attribute:-
provide the argument
NAMESPACE
on the command line with a fully specified name; -
provide the argument
--scope
on the command line.
-
provide the argument
-
provide the argument
-
Namespace resource - The group of arguments defining the Fleet Namespace. The
arguments in this group can be used to specify the attributes of this resource.
(NOTE) Some attributes are not given arguments in this group but can be set in
other ways.
- FLAGS
-
--update-labels
=[KEY
=VALUE
,…]-
List of label KEY=VALUE pairs to update. If a label exists, its value is
modified. Otherwise, a new label is created.
Keys must start with a lowercase character and contain only hyphens (
-
), underscores (_
), lowercase characters, and numbers. Values must contain only hyphens (-
), underscores (_
), lowercase characters, and numbers. --update-namespace-labels
=[KEY
=VALUE
,…]- List of namespace-level label KEY=VALUE pairs to update in the cluster namespace. If a label exists, its value is modified. Otherwise, a new label is' created.
-
At most one of these can be specified:
--clear-labels
-
Remove all labels. If
--update-labels
is also specified then--clear-labels
is applied first.For example, to remove all labels:
gcloud alpha container fleet scopes namespaces update --clear-labels
To remove all existing labels and create two new labels,
andfoo
:baz
gcloud alpha container fleet scopes namespaces update --clear-labels --update-labels foo=bar,baz=qux
--remove-labels
=[KEY
,…]-
List of label keys to remove. If a label does not exist it is silently ignored.
If
--update-labels
is also specified then--update-labels
is applied first.
-
At most one of these can be specified:
--clear-namespace-labels
-
Remove all namespace-level labels from the cluster namespace. If
--update-namespace-labels
is also specified then--clear-namespace-labels
is applied first.For example, to remove all labels:
gcloud alpha container fleet scopes namespaces update namespace_name --clear-namespace-labels
To remove all existing namespace-level labels and create two new labels,
andfoo
:baz
gcloud alpha container fleet scopes namespaces update namespace_name --clear-namespace-labels --update-namespace-labels foo=bar,baz=qux
--remove-namespace-labels
=[KEY
,…]-
List of namespace-level label keys to remove in the cluster namespace. If a
label does not exist it is silently ignored. If
--update-namespace-labels
is also specified then--update-namespace-labels
is applied first.
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--access-token-file
,--account
,--billing-project
,--configuration
,--flags-file
,--flatten
,--format
,--help
,--impersonate-service-account
,--log-http
,--project
,--quiet
,--trace-token
,--user-output-enabled
,--verbosity
.Run
$ gcloud help
for details. - NOTES
-
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation-only early access
allowlist. These variants are also available:
gcloud container fleet scopes namespaces update
gcloud beta container fleet scopes namespaces update
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-02-06 UTC.