From 4ec73b81ddc0933206afcaa523db7da9742188d1 Mon Sep 17 00:00:00 2001 From: Rachel Sharp <8883519+tr0njavolta@users.noreply.github.com> Date: Mon, 11 Sep 2023 14:38:50 -0400 Subject: [PATCH 1/6] add config example Signed-off-by: Rachel Sharp <8883519+tr0njavolta@users.noreply.github.com> --- content/v1.13/concepts/managed-resources.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/content/v1.13/concepts/managed-resources.md b/content/v1.13/concepts/managed-resources.md index f3187278c..eb8e54f78 100644 --- a/content/v1.13/concepts/managed-resources.md +++ b/content/v1.13/concepts/managed-resources.md @@ -254,10 +254,24 @@ 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 +apiVersion: pkg.crossplane.io/v1alpha1 +kind: ControllerConfig +metadata: + name: example-config +spec: + args: + - --max-reconcile-rate=20 + - --provider-ttl=250 + - --enable-management-policies +``` The {{}}initProvider{{}} defines @@ -893,4 +907,4 @@ Conditions: Type: LastAsyncOperation Status: True Reason: Success -``` \ No newline at end of file +``` From c584b34f3444c511b0f2a1cbf517aeb55eaf9ea7 Mon Sep 17 00:00:00 2001 From: Rachel Sharp <8883519+tr0njavolta@users.noreply.github.com> Date: Mon, 11 Sep 2023 14:43:49 -0400 Subject: [PATCH 2/6] update formatting Signed-off-by: Rachel Sharp <8883519+tr0njavolta@users.noreply.github.com> --- content/v1.13/concepts/managed-resources.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/v1.13/concepts/managed-resources.md b/content/v1.13/concepts/managed-resources.md index eb8e54f78..2b39f154b 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 @@ -261,7 +261,7 @@ in a [ControllerConfig]({{}}) as an argument in the `spec`. -```yaml +```yaml {copy-lines="9" apiVersion: pkg.crossplane.io/v1alpha1 kind: ControllerConfig metadata: From c2b2b84babbd8a126e30e099d5da6fe8ac34a644 Mon Sep 17 00:00:00 2001 From: Sharp <8883519+tr0njavolta@users.noreply.github.com> Date: Mon, 11 Sep 2023 14:51:24 -0400 Subject: [PATCH 3/6] Update content/v1.13/concepts/managed-resources.md Signed-off-by: Rachel Sharp <8883519+tr0njavolta@users.noreply.github.com> --- content/v1.13/concepts/managed-resources.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/content/v1.13/concepts/managed-resources.md b/content/v1.13/concepts/managed-resources.md index 2b39f154b..6331cb659 100644 --- a/content/v1.13/concepts/managed-resources.md +++ b/content/v1.13/concepts/managed-resources.md @@ -268,8 +268,6 @@ metadata: name: example-config spec: args: - - --max-reconcile-rate=20 - - --provider-ttl=250 - --enable-management-policies ``` From 2e367ec7196ecb547efa2c0247897a61779c6768 Mon Sep 17 00:00:00 2001 From: Rachel Sharp <8883519+tr0njavolta@users.noreply.github.com> Date: Mon, 11 Sep 2023 15:48:44 -0400 Subject: [PATCH 4/6] Add master changes Signed-off-by: Rachel Sharp <8883519+tr0njavolta@users.noreply.github.com> --- content/master/concepts/managed-resources.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/content/master/concepts/managed-resources.md b/content/master/concepts/managed-resources.md index fa8696cd6..e7f92e031 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="9"} +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 +``` From 22987e953e23fc3c9416208f31ee150b69267d54 Mon Sep 17 00:00:00 2001 From: Rachel Sharp <8883519+tr0njavolta@users.noreply.github.com> Date: Mon, 11 Sep 2023 15:51:01 -0400 Subject: [PATCH 5/6] missed bracket Signed-off-by: Rachel Sharp <8883519+tr0njavolta@users.noreply.github.com> --- content/v1.13/concepts/managed-resources.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/v1.13/concepts/managed-resources.md b/content/v1.13/concepts/managed-resources.md index 6331cb659..f4239a05c 100644 --- a/content/v1.13/concepts/managed-resources.md +++ b/content/v1.13/concepts/managed-resources.md @@ -261,7 +261,7 @@ in a [ControllerConfig]({{}}) as an argument in the `spec`. -```yaml {copy-lines="9" +```yaml {copy-lines="9"} apiVersion: pkg.crossplane.io/v1alpha1 kind: ControllerConfig metadata: From 82dca394fc1b8ab6dbcd435bb70829a4c20b5f4b Mon Sep 17 00:00:00 2001 From: Rachel Sharp <8883519+tr0njavolta@users.noreply.github.com> Date: Mon, 11 Sep 2023 16:13:47 -0400 Subject: [PATCH 6/6] update line copy Signed-off-by: Rachel Sharp <8883519+tr0njavolta@users.noreply.github.com> --- content/master/concepts/managed-resources.md | 2 +- content/v1.13/concepts/managed-resources.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/master/concepts/managed-resources.md b/content/master/concepts/managed-resources.md index e7f92e031..12b2ca44d 100644 --- a/content/master/concepts/managed-resources.md +++ b/content/master/concepts/managed-resources.md @@ -260,7 +260,7 @@ in a [ControllerConfig]({{}}) as an argument in the `spec`. -```yaml {copy-lines="9"} +```yaml {copy-lines="all"} apiVersion: pkg.crossplane.io/v1alpha1 kind: ControllerConfig metadata: diff --git a/content/v1.13/concepts/managed-resources.md b/content/v1.13/concepts/managed-resources.md index f4239a05c..06425c187 100644 --- a/content/v1.13/concepts/managed-resources.md +++ b/content/v1.13/concepts/managed-resources.md @@ -261,7 +261,7 @@ in a [ControllerConfig]({{}}) as an argument in the `spec`. -```yaml {copy-lines="9"} +```yaml {copy-lines="all"} apiVersion: pkg.crossplane.io/v1alpha1 kind: ControllerConfig metadata: