Skip to content

Commit 47210d7

Browse files
authored
Merge pull request #20 from jordlay/pk5/updates_to_the_help_doc
Update the image upload concepts doc
2 parents 27dce37 + defe061 commit 47210d7

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

articles/operator-service-manager/concepts-cli-containerized-network-function-image-upload.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ ms.date: 04/12/2024
77
ms.topic: concept-article
88
ms.service: azure-operator-service-manager
99
ms.custom: devx-track-azurecli
10-
1110
---
11+
1212
# Learn how the Azure Operator Service Manager (AOSM) CLI extension discovers container images in source ACRs based on helm chart configuration
1313

1414
This document explains how the Azure CLI AOSM extension discovers images in helm charts, pulls them from a container registry, and uploads them to an AOSM Artifact Store. The Azure CLI AOSM extension supports both Azure Container Registry (ACR) and any container registry that supports the Docker API.
@@ -32,8 +32,8 @@ The Az CLI AOSM extension:
3232
- Searches in the registries and namespaces included in the "image_sources" array for the container image references.
3333
- Copies the images from the source registries to the AOSM artifact store.
3434

35-
>[!IMPORTANT]
36-
>The AOSM CLI requires that the images in your source registry match the namespace structure written in your helm chart. For example, an image included in a helm chart as `core/contoso-a:1.0.0` must be available in the source registry in a path that ends in `core/contoso-a:1.0.0`. Any additional prefix must be included in the `"image_sources"` parameter in the `cnf-input.jsonc` file generated by the `az aosm nfd generate-config --definition-type cnf` command.
35+
> [!IMPORTANT]
36+
> The AOSM CLI requires that the images in your source registry match the namespace structure written in your helm chart. For example, an image included in a helm chart as `core/contoso-a:1.0.0` must be available in the source registry in a path that ends in `core/contoso-a:1.0.0`. Any additional prefix must be included in the `"image_sources"` parameter in the `cnf-input.jsonc` file generated by the `az aosm nfd generate-config --definition-type cnf` command.
3737
3838
## Worked example
3939

@@ -51,13 +51,13 @@ The "image_sources" field in the NFDV input file is set as follows:
5151
The output of `helm template` against the helm charts for this CNF gives four image lines in the Kubernetes deployment definition.
5252

5353
```yaml
54-
image: release/contoso-a:1.0.0
55-
image: release/contoso-b:1.0.0
56-
image: release/contoso-c:1.0.0
57-
image: test-release/contoso-test:1.0.0
54+
image: repository/release/contoso-a:1.0.0
55+
image: repository/release/contoso-b:1.0.0
56+
image: repository/release/contoso-c:1.0.0
57+
image: repository/test-release/contoso-test:1.0.0
5858
```
5959
60-
The Azure CLI AOSM extension searches for the images in `myregistry.azurecr.io/release/contoso-a:1.0.0`, `myregistry.azurecr.io/release/contoso-b:1.0.0`, `myregistry.azurecr.io/release/contoso-c:1.0.0`, and `myregistry.azurecr.io/test-release/contoso-test:1.0.0`. The images must be available in these paths.
60+
The Azure CLI AOSM extension takes in the above image lines and removes the `repository` (AOSM overwrites the repository with the new registry backing the AOSM Artifact Store). Then, the Azure CLI AOSM extension searches for the images in `myregistry.azurecr.io/release/contoso-a:1.0.0`, `myregistry.azurecr.io/release/contoso-b:1.0.0`, `myregistry.azurecr.io/release/contoso-c:1.0.0`, and `myregistry.azurecr.io/test-release/contoso-test:1.0.0`. The images must be available in these paths.
6161

6262
### Namespacing
6363

@@ -74,4 +74,4 @@ The Azure AOSM CLI extension searches for the images in `myregistry.azurecr.io`,
7474

7575
## Next steps
7676

77-
- [How to onboard a CNF using the CLI](how-to-onboard-containerized-network-function-cli.md)
77+
- [How to onboard a CNF using the CLI](how-to-onboard-containerized-network-function-cli.md)

0 commit comments

Comments
 (0)