Remove false restriction about using '.status.atProvider' into ToEnvironmentFieldPath (#697)

* Remove erroneous restrictions about using data from '.status' into ToEnvironmentFieldPath

As confirmed @phisco in [Slack](https://crossplane.slack.com/archives/CEG3T90A1/p1706970216073849?thread_ts=1706970216.073849&cid=CEG3T90A1), the 'patch and transform' documentation is wrong about the impossibility to use data from `.status.atProvider` in the `fromFielPath` of the `ToEnvironmentFieldPath` patch.

This restriction is incompatible with the example in the `EnvironmentConfig` page that shows it is :
 ```
patches:
 - type: ToEnvironmentFieldPath
   fromFieldPath: status.atProvider.id
   toFieldPath: vpcId
```
https://docs.crossplane.io/latest/concepts/environment-configs/#patch-an-individual-resource

Signed-off-by: Guillaume Dupin <gdupin@gmail.com>

* backport to other releases

Signed-off-by: Guillaume Dupin <gdupin@gmail.com>

---------

Signed-off-by: Guillaume Dupin <gdupin@gmail.com>
This commit is contained in:
Guillaume Dupin 2024-02-05 02:04:53 +01:00 committed by GitHub
parent 7a1ec9fff5
commit 884afa3346
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 0 additions and 27 deletions

View File

@ -827,15 +827,6 @@ kind: Composition
Because the environment is in-memory, there is no command to confirm the patch Because the environment is in-memory, there is no command to confirm the patch
wrote the value to the environment. wrote the value to the environment.
{{<hint "important">}}
The
{{<hover label="toEnvField" line="12">}}ToEnvironmentFieldPath{{</hover>}}
patch happens **before** creating a resource.
The
{{<hover label="toEnvField" line="13">}}fromFieldPath{{</hover>}} can't
read from the `atProvider` or `Status` fields.
{{< /hint >}}
<!-- vale Google.Headings = NO --> <!-- vale Google.Headings = NO -->
### CombineFromEnvironment ### CombineFromEnvironment

View File

@ -827,15 +827,6 @@ kind: Composition
Because the environment is in-memory, there is no command to confirm the patch Because the environment is in-memory, there is no command to confirm the patch
wrote the value to the environment. wrote the value to the environment.
{{<hint "important">}}
The
{{<hover label="toEnvField" line="12">}}ToEnvironmentFieldPath{{</hover>}}
patch happens **before** creating a resource.
The
{{<hover label="toEnvField" line="13">}}fromFieldPath{{</hover>}} can't
read from the `atProvider` or `Status` fields.
{{< /hint >}}
<!-- vale Google.Headings = NO --> <!-- vale Google.Headings = NO -->
### CombineFromEnvironment ### CombineFromEnvironment

View File

@ -827,15 +827,6 @@ kind: Composition
Because the environment is in-memory, there is no command to confirm the patch Because the environment is in-memory, there is no command to confirm the patch
wrote the value to the environment. wrote the value to the environment.
{{<hint "important">}}
The
{{<hover label="toEnvField" line="12">}}ToEnvironmentFieldPath{{</hover>}}
patch happens **before** creating a resource.
The
{{<hover label="toEnvField" line="13">}}fromFieldPath{{</hover>}} can't
read from the `atProvider` or `Status` fields.
{{< /hint >}}
<!-- vale Google.Headings = NO --> <!-- vale Google.Headings = NO -->
### CombineFromEnvironment ### CombineFromEnvironment