Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds managedPolicies config enablement #547

Merged
merged 6 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions content/master/concepts/managed-resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,22 @@ the `managementPolicies` list.
The managed resource `initProvider` option is an alpha feature related to
[managementPolicies]({{<ref "./managed-resources#managementpolicies" >}}).

{{< /hint >}}

Enable the `initProvider` in a provider with `--enable-management-policies`
in a
[ControllerConfig]({{<ref "./providers#controller-configuration" >}}).
{{< /hint >}}
[ControllerConfig]({{<ref "./providers#controller-configuration" >}}) 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
{{<hover label="initProvider" line="7">}}initProvider{{</hover>}} defines
Expand Down Expand Up @@ -891,4 +903,4 @@ Conditions:
Type: LastAsyncOperation
Status: True
Reason: Success
```
```
20 changes: 16 additions & 4 deletions content/v1.13/concepts/managed-resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -254,10 +254,22 @@ the `managementPolicies` list.
The managed resource `initProvider` option is an alpha feature related to
[managementPolicies]({{<ref "./managed-resources#managementpolicies" >}}).

{{< /hint >}}

Enable the `initProvider` in a provider with `--enable-management-policies`
in a
[ControllerConfig]({{<ref "./providers#controller-configuration" >}}).
{{< /hint >}}
[ControllerConfig]({{<ref "./providers#controller-configuration" >}}) 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
{{<hover label="initProvider" line="7">}}initProvider{{</hover>}} defines
Expand Down Expand Up @@ -893,4 +905,4 @@ Conditions:
Type: LastAsyncOperation
Status: True
Reason: Success
```
```