From 884afa3346e018af1b6f4baf1906e09159e6c8dc Mon Sep 17 00:00:00 2001 From: Guillaume Dupin Date: Mon, 5 Feb 2024 02:04:53 +0100 Subject: [PATCH] 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 * backport to other releases Signed-off-by: Guillaume Dupin --------- Signed-off-by: Guillaume Dupin --- content/master/concepts/patch-and-transform.md | 9 --------- content/v1.13/concepts/patch-and-transform.md | 9 --------- content/v1.14/concepts/patch-and-transform.md | 9 --------- 3 files changed, 27 deletions(-) diff --git a/content/master/concepts/patch-and-transform.md b/content/master/concepts/patch-and-transform.md index 58ed96d0..8238ae55 100644 --- a/content/master/concepts/patch-and-transform.md +++ b/content/master/concepts/patch-and-transform.md @@ -827,15 +827,6 @@ kind: Composition Because the environment is in-memory, there is no command to confirm the patch wrote the value to the environment. -{{}} -The -{{}}ToEnvironmentFieldPath{{}} -patch happens **before** creating a resource. -The -{{}}fromFieldPath{{}} can't -read from the `atProvider` or `Status` fields. -{{< /hint >}} - ### CombineFromEnvironment diff --git a/content/v1.13/concepts/patch-and-transform.md b/content/v1.13/concepts/patch-and-transform.md index f6a75eb5..f073f8e5 100644 --- a/content/v1.13/concepts/patch-and-transform.md +++ b/content/v1.13/concepts/patch-and-transform.md @@ -827,15 +827,6 @@ kind: Composition Because the environment is in-memory, there is no command to confirm the patch wrote the value to the environment. -{{}} -The -{{}}ToEnvironmentFieldPath{{}} -patch happens **before** creating a resource. -The -{{}}fromFieldPath{{}} can't -read from the `atProvider` or `Status` fields. -{{< /hint >}} - ### CombineFromEnvironment diff --git a/content/v1.14/concepts/patch-and-transform.md b/content/v1.14/concepts/patch-and-transform.md index 03c3f277..e8e1fc64 100644 --- a/content/v1.14/concepts/patch-and-transform.md +++ b/content/v1.14/concepts/patch-and-transform.md @@ -827,15 +827,6 @@ kind: Composition Because the environment is in-memory, there is no command to confirm the patch wrote the value to the environment. -{{}} -The -{{}}ToEnvironmentFieldPath{{}} -patch happens **before** creating a resource. -The -{{}}fromFieldPath{{}} can't -read from the `atProvider` or `Status` fields. -{{< /hint >}} - ### CombineFromEnvironment