Skip to content

Commit 64722f6

Browse files
committed
move around a bit of content. Trim down how much MRDs are on the front page docs
Signed-off-by: Scott Nichols <[email protected]>
1 parent 8f42902 commit 64722f6

File tree

4 files changed

+30
-111
lines changed

4 files changed

+30
-111
lines changed

content/master/guides/implementing-safestart.md

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -97,55 +97,6 @@ rules:
9797
verbs: ["get", "list", "watch"]
9898
```
9999

100-
### Step 3: Add connection details documentation
101-
102-
Document connection details in your MRDs to help users understand resource
103-
capabilities:
104-
105-
```yaml
106-
# Example generated MRD with connection details
107-
apiVersion: apiextensions.crossplane.io/v1alpha1
108-
kind: ManagedResourceDefinition
109-
metadata:
110-
name: databases.rds.aws.example.io
111-
spec:
112-
group: rds.aws.example.io
113-
names:
114-
kind: Database
115-
plural: databases
116-
scope: Namespaced
117-
118-
# safe-start-specific fields
119-
connectionDetails:
120-
- name: endpoint
121-
description: "The RDS instance connection endpoint"
122-
type: string
123-
fromConnectionSecretKey: endpoint
124-
- name: port
125-
description: "The port number for database connections"
126-
type: integer
127-
fromConnectionSecretKey: port
128-
- name: username
129-
description: "The master username for the database"
130-
type: string
131-
fromConnectionSecretKey: username
132-
- name: password
133-
description: "The master password for the database"
134-
type: string
135-
fromConnectionSecretKey: password
136-
- name: ca_certificate
137-
description: "The CA certificate for SSL connections"
138-
type: string
139-
fromConnectionSecretKey: ca_certificate
140-
141-
# Standard CRD specification
142-
versions:
143-
- name: v1alpha1
144-
served: true
145-
storage: true
146-
# ... rest of CRD spec
147-
```
148-
149100
## Testing safe-start implementation
150101

151102
### Integration testing

content/master/managed-resources/managed-resource-definitions.md

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,22 +123,42 @@ resources.
123123
apiVersion: apiextensions.crossplane.io/v1alpha1
124124
kind: ManagedResourceDefinition
125125
metadata:
126-
name: instances.ec2.aws.crossplane.io
126+
name: databases.rds.aws.crossplane.io
127127
spec:
128+
group: rds.aws.crossplane.io
129+
names:
130+
kind: Database
131+
plural: databases
132+
scope: Namespaced
133+
134+
# Connection details documentation
128135
connectionDetails:
129136
- name: endpoint
130-
description: The connection endpoint for the database
137+
description: "The RDS instance connection endpoint"
131138
type: string
139+
fromConnectionSecretKey: endpoint
132140
- name: port
133-
description: The port number for connections
141+
description: "The port number for database connections"
134142
type: integer
143+
fromConnectionSecretKey: port
135144
- name: username
136-
description: The master username for the database
145+
description: "The master username for the database"
137146
type: string
147+
fromConnectionSecretKey: username
138148
- name: password
139-
description: The master password for the database
149+
description: "The master password for the database"
140150
type: string
141151
fromConnectionSecretKey: password
152+
- name: ca_certificate
153+
description: "The CA certificate for SSL connections"
154+
type: string
155+
fromConnectionSecretKey: ca_certificate
156+
157+
# Standard CRD specification follows...
158+
versions:
159+
- name: v1alpha1
160+
served: true
161+
storage: true
142162
```
143163
144164
The `connectionDetails` field documents:

content/master/whats-crossplane/_index.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,17 @@ involved in writing a controller.
4646

4747
## Crossplane components
4848

49-
Crossplane has four major components:
49+
Crossplane has three major components:
5050

5151
* [Composition](#composition)
5252
* [Managed resources](#managed-resources)
53+
<<<<<<< HEAD
5354
* [Operations](#operations)
55+
=======
56+
>>>>>>> 8df1adc (move around a bit of content. Trim down how much MRDs are on the front page docs)
5457
* [Package manager](#package-manager)
5558

56-
You can use all four components to build your control plane, or pick only the
59+
You can use all three components to build your control plane, or pick only the
5760
ones you need.
5861

5962
### Composition

content/master/whats-new/_index.md

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -173,61 +173,6 @@ deprecate and remove cluster scoped MRs at a future date.
173173
Read more about Crossplane v2's [backward compatibility](#backward-compatibility).
174174
{{</hint>}}
175175

176-
## Managed resource definitions
177-
178-
Crossplane v2 introduces Managed Resource Definitions (MRDs) that provide
179-
selective resource activation and improved resource discovery.
180-
181-
**MRDs solve performance and usability challenges with large providers.**
182-
Installing a provider like AWS traditionally creates hundreds of CRDs, even if
183-
you only need some resources. MRDs let you activate only the resources you
184-
actually use.
185-
186-
```mermaid
187-
flowchart LR
188-
provider(Provider Package)
189-
mrd1(S3 Bucket MRD)
190-
mrd2(EC2 Instance MRD)
191-
mrd3(RDS DB MRD)
192-
crd1(S3 Bucket CRD)
193-
crd2(EC2 Instance CRD)
194-
policy(Activation Policy)
195-
196-
provider --> mrd1
197-
provider --> mrd2
198-
provider --> mrd3
199-
200-
policy -.->|activates| mrd1
201-
policy -.->|activates| mrd2
202-
mrd3 -.->|inactive|
203-
204-
mrd1 --> crd1
205-
mrd2 --> crd2
206-
207-
style mrd1 fill:#c8e6c9
208-
style mrd2 fill:#c8e6c9
209-
style mrd3 fill:#ffcdd2
210-
style crd1 fill:#e8f5e8
211-
style crd2 fill:#e8f5e8
212-
```
213-
214-
### Key managed resource definition benefits
215-
216-
**Performance optimization** - Only create CRDs for resources you need, reducing
217-
cluster overhead and improving provider installation speed.
218-
219-
**Connection details discovery** - MRDs document what connection details each
220-
managed resource provides, making it easier to understand resource capabilities.
221-
222-
**Policy-based activation** - Use ManagedResourceActivationPolicy (MRAP) to
223-
activate resources with flexible pattern matching.
224-
225-
**safe-start providers** - Providers can opt into safe-start capability, starting
226-
with all MRDs inactive for better performance.
227-
228-
Learn more about [Managed Resource Definitions]({{<ref "../managed-resources/managed-resource-definitions">}})
229-
and [get started with MRDs]({{<ref "../get-started/get-started-with-mrds">}}).
230-
231176
## Compose any resource
232177

233178
Crossplane v2 isn't opinionated about using composition together with managed

0 commit comments

Comments
 (0)