@@ -11,7 +11,7 @@ TODO: Add Policies
11
11
-->
12
12
13
13
14
- A Crossplane EnvironmentConfig is a cluster-scoped, strongly- typed,
14
+ A Crossplane EnvironmentConfig is a cluster-scoped, strongly typed,
15
15
[ ConfigMap] ( https://kubernetes.io/docs/concepts/configuration/configmap/ ) -like
16
16
resource used by Compositions. Compositions can use the environment to store
17
17
information from individual resources or to apply patches.
65
65
## Access EnvironmentConfigs
66
66
67
67
` EnvironmentConfigs` can be accessed by [Composition Functions] supporting
68
- [extra-resources], e.g. [function-environment-configs] or
68
+ [extra-resources], for example [function-environment-configs] or
69
69
[function-go-templating].
70
70
71
71
# # Migration from Alpha Composition Environment
@@ -97,7 +97,7 @@ Select the EnvironmentConfigs to use through [function-environment-configs]'s `I
97
97
98
98
The `environmentConfigs` field is a list of `EnvironmentConfigs` we want
99
99
retrieved, merged and passed to the next step in the pipeline through the
100
- [Context] at a well- known key, `apiextensions.crossplane.io/environment`.
100
+ [Context] at a well known key, `apiextensions.crossplane.io/environment`.
101
101
102
102
Select an environment by `Reference` or by `Selector` :
103
103
@@ -174,7 +174,7 @@ Select an `EnvironmentConfig` by labels with a `type: Selector`.
174
174
Define `selector.matchLabels` to a list of selectors either of type `Value`, or `FromCompositeFieldPath`.
175
175
176
176
When matching the label's value, provide an exact value with a
177
- `type : Value and provide the value to match in the `value` field.
177
+ `type : Value` and provide the value to match in the `value` field.
178
178
179
179
[function-environment-configs] can also match a label's value based on an input
180
180
in the composite resource. Use `type : FromCompositeFieldPath` and provide the
@@ -263,7 +263,7 @@ with `maxMatch` and define the maximum number to select.
263
263
264
264
Use `minMatch` and define the minimum number of environments returned.
265
265
266
- The Function sorts the returned environments alphabetically by name by defaul .
266
+ The Function sorts the returned environments alphabetically by name by default .
267
267
Sort the environments on a different field with `sortByFieldPath` and define
268
268
the field to sort by.
269
269
@@ -392,7 +392,7 @@ value.
392
392
393
393
` EnvironmentConfigs` selected as explained above, are then merged in an
394
394
` in-memory environment` by [function-environment-configs] and passed to the
395
- next function in the pipeline at a well- known key,
395
+ next function in the pipeline at a well known key,
396
396
` apiextensions.crossplane.io/environment` .
397
397
398
398
[function-patch-and-transform] can be used to read or write data between the in-memory environment and
@@ -407,11 +407,10 @@ resources. Read about EnvironmentConfig patch types in the
407
407
# ## Patch between Composite resource and environment
408
408
409
409
To patch between Composite resource and environment define patches at
410
- ` spec.environment.patches` in [function-patch-and-transform]'s `Resources`
411
- input.
410
+ ` spec.environment.patches` in the `Resources` input of [function-patch-and-transform].
412
411
413
412
Use the `ToCompositeFieldPath` patch type to copy data from the in-memory
414
- environment to the Composite resource. Use the `FromCompositeFieldPath` to
413
+ environment to the Composite resource. Use the `FromCompositeFieldPath` to
415
414
copy data from the Composite resource to the in-memory environment.
416
415
417
416
` ` ` yaml {label="xrpatch",copy-lines="none"}
@@ -450,7 +449,7 @@ Composite resource, respectively.
450
449
451
450
To patch between individual resources and the in-memory environment, inside the
452
451
patches of the resource, use `ToEnvironmentFieldPath` to copy data from the
453
- resource to the in-memory environment. Use `FromEnvironmentFieldPath` to copy
452
+ resource to the in-memory environment. Use `FromEnvironmentFieldPath` to copy
454
453
data to the resource from the in-memory environment.
455
454
456
455
` ` ` yaml {label="envpatch",copy-lines="none"}
0 commit comments