Page cover

update

The cldkctl registry tag update command updates an existing tag immutability rule in the container registry. This command allows you to modify rule conditions, such as the repository pattern, tag pattern, or operation type, to adjust how immutability rules are applied.

Usage

cldkctl registry tag update [tag ID] [flags]

Steps

Follow the steps below to run and view the result of this command:

  1. Ensure that you are logged in. Refer to the Registry Login section.

  2. Run the following command in your terminal:

./cldkctl --registry [registry name] registry tag update [tag ID] \
  --repo [repository name] \
  --repo-op [matching|excluding] \
  --tag [tag pattern] \
  --tag-op [matching|excluding]
  1. To retrieve the list of existing tag immutability rules and their IDs, refer to the Registry Tag List section.

  2. Replace [registry name] with the target registry, [tag ID] with the ID of the rule you want to update, [repository name] with the target repository, [tag pattern] with the desired tag pattern, and [repo-op] / [tag-op] with the corresponding operation (matching or excluding).

  3. Once successful, the terminal displays "✓ Registry tag immutability rule updated".

Flags

This command supports global flags. Refer to the Global Flags section for details

Flag
Description

-h, --help

Help for the registry tag update command.

--repo string

Specifies the name or pattern of the repository to which the rule applies.

--repo-op string

Defines how the repository pattern is interpreted. Use matching to apply the rule to repositories that fit the specified pattern, or excluding to exclude them.

--tag string

Specifies the tag pattern affected by the rule.

--tag-op string

Defines how the tag pattern is interpreted. Use matching to include tags that fit the specified pattern, or excluding to exclude them.

Last updated