1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-15 17:35:31 +00:00

gcloud: Wed Mar 12 10:54:38 UTC 2025

This commit is contained in:
Automated 2025-03-12 10:54:38 +00:00
parent 6dc93282df
commit a459a88a5f
152 changed files with 2634 additions and 1748 deletions

View file

@ -5,10 +5,13 @@ NAME
SYNOPSIS
gcloud artifacts docker upgrade migrate [--canary-reads=PERCENT]
[--copy-only] [--from-gcr=GCR_HOST/PROJECT_ID]
[--last-uploaded-versions=N] [--max-threads=MAX_THREADS; default=8]
[--input-iam-policy-dir=DIRECTORY] [--last-uploaded-versions=N]
[--max-threads=MAX_THREADS; default=8]
[--output-iam-policy-dir=DIRECTORY]
[--pkg-dev-location=PKG_DEV_LOCATION] [--projects=PROJECTS]
[--recent-images=NUM_DAYS] [--skip-iam-update]
[--to-pkg-dev=PROJECT_ID/REPOSITORY_ID] [GCLOUD_WIDE_FLAG ...]
[--recent-images=NUM_DAYS] [--skip-iam-update] [--skip-pre-copy]
[--to-pkg-dev=PROJECT_ID/REPOSITORY_ID] [--no-use-analyze-iam]
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
Migrate projects from Container Registry to Artifact Registry
@ -40,6 +43,10 @@ FLAGS
Container Registry host + project to copy from. This flag is only used
when migrating to pkg.dev repos. Example: gcr.io/my-project
--input-iam-policy-dir=DIRECTORY
During the IAM update step, the tool applies all iam policies in the
given directory.
--last-uploaded-versions=N
Only copy the N most recently uploaded versions of each image. More
than N images may be copied if new images are uploaded during
@ -49,6 +56,13 @@ FLAGS
Max number of images to copy simultaneously. Consider quota usage when
increasing this
--output-iam-policy-dir=DIRECTORY
Outputs Artifact Registry-equivalent bindings to this directory during
IAM update step and then exits the tool. After any neccesary
modifications are made, the tool can be rerun with
--input-iam-policy-dir to continue migration with the generated
bindings.
--pkg-dev-location=PKG_DEV_LOCATION
The location of the pkg-dev repository you are migrating to. If not
specified, migration is always done to the same multi-region as GCR.
@ -67,10 +81,19 @@ FLAGS
Migrate without changing iam-policy. Users without Artifact Registry
permissions will not have access to migrated images.
--skip-pre-copy
Skip the initial copy of recent images before enabling redirection.
--to-pkg-dev=PROJECT_ID/REPOSITORY_ID
Artifact Registry pkg.dev project ID and repository ID to copy to.
Example: my-project/my-repo
--use-analyze-iam
Use analyzeIAMPolicy to get IAM bindings. If false, tooling iterates
through IAM bindings itself, which is slower, but doesn't require
anlayzeIAMPolicy quota. Enabled by default, use --no-use-analyze-iam to
disable.
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account,
--billing-project, --configuration, --flags-file, --flatten, --format,