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
Normal ImageConfigSelection 45s packages/configuration.pkg.crossplane.io Selected pullSecret "acme-registry-credentials" from ImageConfig "acme-packages" for registry authentication
81
-
```
82
-
83
-
If you can't find the expected event, ensure the prefix of the image reference
84
-
matches the `matchImages` list of any `ImageConfig` resources in the cluster.
85
-
86
78
## Configuring signature verification
87
79
88
80
{{<hint "important" >}}
@@ -211,4 +203,129 @@ If you can't see this condition on the package revision resource, namely
211
203
`ProviderRevision`, `ConfigurationRevision`, or `FunctionRevision`, ensure that
212
204
the feature is enabled.
213
205
214
-
<!-- vale write-good.Passive = YES -->
206
+
## Rewriting image paths
207
+
208
+
You can use an `ImageConfig` to pull package images from an alternative location
209
+
such as a private registry. `spec.rewriteImages` specifies how to rewrite the
210
+
paths of matched images.
211
+
212
+
Only prefix replacement is supported. The prefix specified in
213
+
`spec.rewriteImage.prefix`replaces the matched prefix from `matchImages`. For
214
+
example, the following `ImageConfig` replaces `xpkg.crossplane.io` with
215
+
`registry1.com`for any image with the prefix `xpkg.crossplane.io`.
216
+
217
+
```yaml
218
+
apiVersion: pkg.crossplane.io/v1beta1
219
+
kind: ImageConfig
220
+
metadata:
221
+
name: private-registry-rewrite
222
+
spec:
223
+
matchImages:
224
+
- prefix: xpkg.crossplane.io
225
+
rewriteImage:
226
+
prefix: registry1.com
227
+
```
228
+
229
+
In this example, installing the provider package
230
+
`xpkg.crossplane.io/crossplane-contrib/provider-nop:v0.4.0`will result in the
Normal ImageConfigSelection 45s packages/configuration.pkg.crossplane.io Selected pullSecret "acme-registry-credentials" from ImageConfig "acme-packages" for registry authentication
325
+
```
326
+
327
+
If you can't find the expected event and `appliedImageConfigRefs` entry, ensure
328
+
the prefix of the image reference matches the `matchImages` list of any
0 commit comments