Skip to content

Commit 81454de

Browse files
committed
edits
1 parent 6003988 commit 81454de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/vendor/helm-native-v2-using.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To support Helm chart installations with the KOTS `kots.io/v1beta2` HelmChart cu
1818

1919
## Task 1: Rewrite Image Names {#rewrite-image-names}
2020

21-
Configure the KOTS HelmChart custom resource `values` key so that KOTS rewrites the names for both private and public images in your Helm values during deployment. This allows images to be accessed at one of the following locations:
21+
Configure the KOTS HelmChart custom resource `values` key so that KOTS rewrites the names for both private and public images in your Helm values during deployment. This allows images to be accessed at one of the following locations, depending on where they were pushed:
2222
* The [Replicated proxy registry](private-images-about) (`proxy.replicated.com`)
2323
* A public image registry
2424
* Your customer's local registry
@@ -103,11 +103,11 @@ spec:
103103

104104
For any public images used by your application, configure the HelmChart custom resource so that image names are rewritten to either the location of the image in the public registry (for online installations) or the local registry (for air gap installations or online installations where images were pushed to a local registry).
105105

106-
For example, if the public image is `ghcr.io/cloudnative-pg/cloudnative-pg:catalog-1.24.0`, then the image name should be rewritten to `proxy.replicated.com/anonymous/ghcr.io/cloudnative-pg/cloudnative-pg:catalog-1.24.0`.
106+
For more information, see the example below.
107107

108108
#### Example
109109

110-
The following HelmChart custom resource includes a field in the `values` key that rewrites the registry domain to `ghcr.io` unless a local registry is used. Similarly, it shows a field that rewrites the image repository to the path of the public image on `ghcr.io` or in the local registry:
110+
The following HelmChart custom resource uses the KOTS [HasLocalRegistry](/reference/template-functions-config-context#haslocalregistry), [LocalRegistryHost](/reference/template-functions-config-context#localregistryhost), and [LocalRegistryNamespace](/reference/template-functions-config-context#localregistrynamespace) template functions to conditionally rewrite an image registry and repository depending on if a local registry is used:
111111

112112
```yaml
113113
# kots.io/v1beta2 HelmChart custom resource

0 commit comments

Comments
 (0)