Skip to content

Commit bcde2f5

Browse files
committed
📖 Add info about version selection in ConfigMap to the air-gapped env
1 parent da81ce5 commit bcde2f5

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

docs/book/src/03_topics/02_configuration/01_air-gapped-environtment.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ To install Cluster API providers in an air-gapped environment using the operator
66
- Manually fetch and store a helm chart for the operator.
77
- Provide image overrides for the operator from an accessible image repository.
88
2. Configure providers for an air-gapped environment:
9-
- Provide fetch configuration for each provider from an accessible location: e.g., an OCI artifact, internal Github/Gitlab repository URL or from pre-created ConfigMaps within the cluster.
9+
- Provide fetch configuration for each provider from an accessible location: e.g., an OCI artifact, internal GitHub/GitLab repository URL or from pre-created ConfigMaps within the cluster.
1010
- Provide image overrides for each provider to pull images from an accessible image repository.
1111

12+
Please note that the operator generates a list of metadata versions from the ConfigMaps by the provider selector based (in priority) on:
13+
- Value in the `provider.cluster.x-k8s.io/version` label
14+
- Its name (see usage example below)
15+
1216
**Example Usage:**
1317

1418
As an admin, I need to fetch the Azure provider components from within the cluster because I am working in an air-gapped environment.
@@ -135,9 +139,15 @@ data:
135139
OCI_PASSWORD: <secret>
136140
OCI_ACCESS_TOKEN: <secret>
137141
OCI_REFRESH_TOKEN: <secret>
142+
stringData:
143+
images: |
144+
all:
145+
repository: quay.io/foobar
138146
```
139147

140-
### Using Github/Gitlab URL
148+
This example also demonstrates how to override the repository for all images in the provider metadata.
149+
150+
### Using GitHub/GitLab URL
141151

142152
If the provider components are hosted at a specific repository URL, you can use `fetchConfig.url` to retrieve them directly.
143153

0 commit comments

Comments
 (0)