You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/operator-service-manager/concepts-cli-containerized-network-function-image-upload.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,8 @@ ms.date: 04/12/2024
7
7
ms.topic: concept-article
8
8
ms.service: azure-operator-service-manager
9
9
ms.custom: devx-track-azurecli
10
-
11
10
---
11
+
12
12
# Learn how the Azure Operator Service Manager (AOSM) CLI extension discovers container images in source ACRs based on helm chart configuration
13
13
14
14
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:
32
32
- Searches in the registries and namespaces included in the "image_sources" array for the container image references.
33
33
- Copies the images from the source registries to the AOSM artifact store.
34
34
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.
37
37
38
38
## Worked example
39
39
@@ -51,13 +51,13 @@ The "image_sources" field in the NFDV input file is set as follows:
51
51
The output of `helm template` against the helm charts for this CNF gives four image lines in the Kubernetes deployment definition.
52
52
53
53
```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
58
58
```
59
59
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.
61
61
62
62
### Namespacing
63
63
@@ -74,4 +74,4 @@ The Azure AOSM CLI extension searches for the images in `myregistry.azurecr.io`,
74
74
75
75
## Next steps
76
76
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