From 44f6912a6e718f39c99dae5ddad57e037caafb99 Mon Sep 17 00:00:00 2001 From: Sharp <8883519+tr0njavolta@users.noreply.github.com> Date: Mon, 11 Sep 2023 16:15:37 -0400 Subject: [PATCH] Adds managedPolicies config enablement (#547) --- content/master/concepts/managed-resources.md | 18 +++++++++++++++--- content/v1.13/concepts/managed-resources.md | 20 ++++++++++++++++---- 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/content/master/concepts/managed-resources.md b/content/master/concepts/managed-resources.md index fa8696cd..12b2ca44 100644 --- a/content/master/concepts/managed-resources.md +++ b/content/master/concepts/managed-resources.md @@ -253,10 +253,22 @@ the `managementPolicies` list. The managed resource `initProvider` option is an alpha feature related to [managementPolicies]({{}}). +{{< /hint >}} + Enable the `initProvider` in a provider with `--enable-management-policies` in a -[ControllerConfig]({{}}). -{{< /hint >}} +[ControllerConfig]({{}}) as an +argument in the `spec`. + +```yaml {copy-lines="all"} +apiVersion: pkg.crossplane.io/v1alpha1 +kind: ControllerConfig +metadata: + name: example-config +spec: + args: + - --enable-management-policies +``` The {{}}initProvider{{}} defines @@ -891,4 +903,4 @@ Conditions: Type: LastAsyncOperation Status: True Reason: Success -``` \ No newline at end of file +``` diff --git a/content/v1.13/concepts/managed-resources.md b/content/v1.13/concepts/managed-resources.md index f3187278..06425c18 100644 --- a/content/v1.13/concepts/managed-resources.md +++ b/content/v1.13/concepts/managed-resources.md @@ -134,7 +134,7 @@ resource in the Provider. For example, a AWS VPC object named `my-test-vpc` has the external name `vpc-01353cfe93950a8ff`. -```shell {copy-lines="1" +```shell {copy-lines="1"} kubectl get vpc NAME READY SYNCED EXTERNAL-NAME AGE my-test-vpc True True vpc-01353cfe93950a8ff 49m @@ -254,10 +254,22 @@ the `managementPolicies` list. The managed resource `initProvider` option is an alpha feature related to [managementPolicies]({{}}). +{{< /hint >}} + Enable the `initProvider` in a provider with `--enable-management-policies` in a -[ControllerConfig]({{}}). -{{< /hint >}} +[ControllerConfig]({{}}) as an +argument in the `spec`. + +```yaml {copy-lines="all"} +apiVersion: pkg.crossplane.io/v1alpha1 +kind: ControllerConfig +metadata: + name: example-config +spec: + args: + - --enable-management-policies +``` The {{}}initProvider{{}} defines @@ -893,4 +905,4 @@ Conditions: Type: LastAsyncOperation Status: True Reason: Success -``` \ No newline at end of file +```