edbctl image v1.2

This command helps managing the images for Hybrid Manager (HM). With this command, you can sync or list container images from EDB's repository to a local registry and manage artifacts for internet-disconnected OpenShift environments.

Commands

edbctl image command has following options:

edbctl image list-image-tags

Retrieves and displays a list of all available image tags used for provisioning. The output includes detailed metadata for each image tag, such as:

  • Image tag ID
  • Name
  • SHA
  • Version
  • Compressed size
  • Architecture
  • Creation time
  • Ingestion time
  • Location
  • Associated tags
edbctl image list-image-tags [options]

Where options are:

    --location-id string        Location ID (required). Specify the location ID to filter images.
    --pg-type string            Filter images by Postgres type. Examples: 'epas', 'postgres', 'pgextended'.
    --major-version string      Filter images by major version. Examples: '17', '16'.
    --pg-architectures string   Filter images by cluster architectures. Examples: 'pgd', 'aha', 'psr', 'analytics'.
-c, --credential string         The credential that you created via the `credential create` command. The default is fetched from `context_credential`.
-o, --output string             [table json yaml xml] (default "table")
-h, --help                      Help for list-image-tags.

This example shows how to list the image:

edbctl image list-image-tags --location-id "managed-devspatcher"

edbctl image sync-to-local-registry

Syncs container images from EDB Repos 2.0 to a local registry for managing a local HM installation.

edbctl image sync-to-local-registry [options]

Where options are:

    --source-registry-username string        Source registry username (required).
    --source-registry-password string        Source registry password (required).
    --destination-registry-uri string        Destination registry URI (required).
    --destination-registry-username string   Destination registry username (optional).
    --destination-registry-password string   Destination registry password (optional).
    --version string                         Hybrid Manager release version (required).
    --sign-by-sigstore-private-key string    Path to the Sigstore private key.
    --sign-passphrase-file string            Path to the file containing the passphrase for the Sigstore private key.
-w, --workers int                            Number of parallel workers to use for syncing images. (default 3).
    --cpu int                                Set CPU (max OS threads for Go runtime, must be your CPU core count or lower).
    --insecure-destination-registry          Allow insecure (HTTP) connections to the destination registry.
-y, --yes                                    Auto-confirm all confirmations.
-h, --help                                   Help for sync-to-local-registry.

This example shows how to sync the EDB Repo 2.0 to the local registry:

edbctl image sync-to-local-registry --source-registry-username <username> --source-registry-password <password> --destination-registry-uri <registry> --destination-registry-username <username> --destination-registry-password <password> --version <version>