-
Notifications
You must be signed in to change notification settings - Fork 1.9k
OSDOCS-16582: Modified OpenShift Images to meet DITA compliance. #106525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
EricPonvelle
wants to merge
1
commit into
openshift:main
Choose a base branch
from
EricPonvelle:OSDOCS-16582_OpenShift-Images
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * openshift_images/image-configuration-hcp.adoc | ||
|
|
||
| :_mod-docs-content-type: PROCEDURE | ||
| [id="images-registry-mirroring-create_{context}"] | ||
| = Creating an image mirror configuration | ||
|
|
||
| [role="_abstract"] | ||
| You can create an image mirror configuration for a {product-title} cluster with the {rosa-cli-first} tool. | ||
|
|
||
| [IMPORTANT] | ||
| ==== | ||
| The source registry cannot be modified after creation. You must delete and recreate the image mirror to change the source. | ||
| ==== | ||
|
|
||
| .Procedure | ||
|
|
||
| * Run the following command to create an image mirror configuration: | ||
| [source,terminal] | ||
| ---- | ||
| $ rosa create image-mirror [arguments] | ||
| ---- | ||
| + | ||
| .Arguments | ||
| [cols="30,70"] | ||
| |=== | ||
| |Option |Definition | ||
|
|
||
| a|--cluster | ||
| |Required: The name or ID of the cluster the mirror configuration will be applied to. | ||
|
|
||
| |--source | ||
| |Required: The source registry that will be mirrored. | ||
|
|
||
| |--mirrors | ||
| |Required: List of mirror registries. Mirror registries must be comma-separated. | ||
|
|
||
| |--type=digest | ||
| |Optional: Type of image mirror. The `digest` type is set by default and the only available `type` option. | ||
|
|
||
| |--profile | ||
| |Optional: Specifies an AWS profile (string) from your credentials file. | ||
|
|
||
| |--region | ||
| |Optional:Specifies an AWS region, overriding the AWS_REGION environment variable. | ||
| |=== | ||
| + | ||
| .Examples | ||
| Creates an image mirror configuration for a cluster named `mycluster`. | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ rosa create image-mirror --cluster=mycluster \ | ||
| --source=registry.example.com/team \ | ||
| --mirrors=mirror.corp.com/team,backup.corp.com/team | ||
| ---- | ||
| + | ||
| .Example Output | ||
| [source,terminal] | ||
| ---- | ||
| I: Image mirror with ID 'abc123def456' has been created on cluster 'mycluster' | ||
| I: Source: registry.example.com/team | ||
| I: Mirrors: [mirror.corp.com/team backup.corp.com/team] | ||
| ---- | ||
| + | ||
| [NOTE] | ||
| ==== | ||
| An ID is automatically generated and assigned to an image mirror during image mirror configuration creation. | ||
| ==== | ||
|
|
||
| * Run the following command to create an image mirror configuration with a specific type: | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ rosa create image-mirror --cluster=mycluster \ | ||
| --type=digest --source=docker.io/library \ | ||
| --mirrors=internal-registry.company.com/dockerhub | ||
| ---- | ||
| + | ||
| [NOTE] | ||
| ==== | ||
| The `digest` type is set by default and the only available `type` option. | ||
| ==== | ||
|
|
||
| . Run the following command to create a single image mirror configuration with multiple mirrors for a cluster: | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ rosa create image-mirror --cluster=mycluster \ | ||
| --source=quay.io/openshift \ | ||
| --mirrors=mirror1.company.com/openshift,mirror2.company.com/openshift,mirror3.company.com/openshift | ||
| ---- | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * openshift_images/image-configuration-hcp.adoc | ||
|
|
||
| :_mod-docs-content-type: PROCEDURE | ||
| [id="images-registry-mirroring-delete_{context}"] | ||
| = Deleting an image mirror configuration | ||
|
|
||
| [role="_abstract"] | ||
| You can delete an image mirror configuration from a {product-title} cluster with the {rosa-cli-first}. | ||
|
|
||
| [NOTE] | ||
| ==== | ||
| Delete operations require confirmation unless the `--yes` or `--y` argument is used. | ||
| ==== | ||
|
|
||
| .Procedure | ||
|
|
||
| . Run the following command to delete an image mirror configuration from a {product-title} cluster: | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ rosa delete image-mirror [arguments] | ||
| ---- | ||
| + | ||
| .Arguments | ||
| [cols="30,70"] | ||
| |=== | ||
| |Option |Definition | ||
|
|
||
| |--cluster | ||
| |Required: The name or ID (string) of the cluster that the image mirror configuration will be deleted from. | ||
| |--id | ||
| |Required: ID of the image mirror configuration to delete. | ||
| |`--yes`, `-y` | ||
| |Optional: Automatically answers "yes" to confirm deletion. | ||
| |--profile | ||
| |Optional: Use a specific AWS profile from your credential file. | ||
| |--region | ||
| |Optional: Use a specific AWS region, overriding the AWS_REGION environment variable. | ||
|
|
||
| |=== | ||
| + | ||
| .Examples | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤖 [error] AsciiDocDITA.BlockTitle: Block titles can only be assigned to examples, figures, and tables in DITA. |
||
| Deletes an image mirror configuration without a confirmation prompt. | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ rosa delete image-mirror --cluster=mycluster abc123def456 --yes | ||
| ---- | ||
| + | ||
| .Example Output | ||
| [source,terminal] | ||
| ---- | ||
| I: Image mirror 'abc123def456' has been deleted from cluster 'mycluster' | ||
| ---- | ||
|
|
||
| . Run the following command to deletes an image mirror configuration with a confirmation prompt: | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ rosa delete image-mirror --cluster=mycluster --id=abc123def456 | ||
| ---- | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * openshift_images/image-configuration-hcp.adoc | ||
|
|
||
| :_mod-docs-content-type: PROCEDURE | ||
| [id="images-registry-mirroring-edit_{context}"] | ||
| = Editing an image mirroring configuration | ||
|
|
||
| [role="_abstract"] | ||
| You can edit an image mirror configuration for a {product-title} cluster with the {rosa-cli-first} tool. | ||
|
|
||
| [NOTE] | ||
| ==== | ||
| When editing an image mirror configuration, the new mirrors list completely replaces the existing mirrors list. | ||
| ==== | ||
|
|
||
| .Procedure | ||
|
|
||
| . Run the following command to edit an image mirror configuration: | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ rosa edit image-mirror [arguments] | ||
| ---- | ||
| + | ||
| .Arguments | ||
| [cols="30,70"] | ||
| |=== | ||
| |Option |Definition | ||
|
|
||
| |--cluster | ||
| |Required: The name or ID (string) of the cluster to which the image mirror configuration applies. | ||
|
|
||
| |--mirrors | ||
| |Required: New list of mirror registries that replaces current mirror registries. Mirror registries must be comma-separated. | ||
|
|
||
| |--id | ||
| |Required: ID of the image mirror configuration to edit. | ||
|
|
||
| |--profile | ||
| |Optional: Use a specific AWS profile from your credential file. | ||
|
|
||
| |--region | ||
| |Optional: Use a specific AWS region, overriding the AWS_REGION environment variable. | ||
| |=== | ||
|
|
||
| . Run the following command to replace a single mirror on an image mirror configuration: | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ rosa edit image-mirror --cluster=mycluster --id=abc123def456 \ | ||
| --mirrors=single-mirror.company.com/team | ||
| ---- | ||
| + | ||
| .Example Output | ||
| [source,terminal] | ||
| ---- | ||
| I: Image mirror 'abc123def456' has been updated on cluster 'mycluster' | ||
| I: Source: registry.example.com/team | ||
| I: Updated mirrors: [mirror.corp.com/team backup.corp.com/team new-mirror.corp.com/team] | ||
| ---- | ||
|
|
||
| . Run the following command to replace all mirrors on an image mirror configuration: | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ rosa edit image-mirror --cluster=mycluster --id=abc123def456 \ | ||
| --mirrors=new-primary.company.com/team,new-secondary.company.com/team | ||
| ---- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * openshift_images/image-configuration-hcp.adoc | ||
|
|
||
| :_mod-docs-content-type: PROCEDURE | ||
| [id="images-registry-mirroring-list_{context}"] | ||
| = Listing all image mirror configurations | ||
|
|
||
| [role="_abstract"] | ||
| You can list all image mirror configurations from a {product-title} cluster with the {rosa-cli-first}. | ||
|
|
||
| .Procedure | ||
|
|
||
| . Run the following command to list all image mirror configurations for a {product-title} cluster: | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ rosa list image-mirrors [arguments] | ||
| ---- | ||
| + | ||
| .Arguments | ||
| [cols="30,70"] | ||
| |=== | ||
| |Option |Definition | ||
|
|
||
| |--cluster | ||
| |Required: Name or ID of the cluster. | ||
| |--output | ||
| |Optional: Output format. Allowed formats are `json`, `yaml` | ||
| |--profile | ||
| |Optional: Use a specific AWS profile from your credential file. | ||
| |--region | ||
| |Optional: Use a specific AWS region, overriding the AWS_REGION environment variable. | ||
| |=== | ||
|
|
||
|
|
||
| . Run the following command to list all image mirror configurations for a cluster: | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ rosa list image-mirrors --cluster=mycluster | ||
| ---- | ||
| .Example Outputs | ||
| [source,terminal] | ||
| ---- | ||
| ID TYPE SOURCE MIRRORS | ||
| abc123def456 digest registry.example.com/team mirror.corp.com/team, backup.corp.com/ | ||
| ---- |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤖 [error] AsciiDocDITA.BlockTitle: Block titles can only be assigned to examples, figures, and tables in DITA.