You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the Subnet does not yet exist, the framework will detect if the vpcId set
84
85
in the Subnet is unknown, and will delay the creation of the subnet.
85
86
86
-
Once the Subnet has been created, if for some mysterious reason the vpcId passed
87
-
to the Subnet is unknown, the framework will automatically use the vpcId in the
88
-
observed Subnet.
87
+
Once the Subnet has been created, if for some unexpected reason the vpcId passed
88
+
to the Subnet is unknown, the framework will detect it and either terminate
89
+
the Composite composition or use the vpcId in the observed Subnet. The default
90
+
action taken is to fast fail by terminating the composition. This can be
91
+
overridden for all composed resource by setting the Composite `self.unknownsFatal` field
92
+
to False, or at the individual composed resource level by setting the
93
+
`Resource.unknownsFatal`field to False.
89
94
90
95
## Pythonic access of Protobuf Messages
91
96
@@ -186,37 +191,39 @@ The BaseComposite also provides access to the following Crossplane Function leve
186
191
| self.response | Low level direct access to the RunFunctionResponse message |
187
192
| self.logger | Python logger to log messages to the running function stdout |
188
193
| self.ttl | Get or set the response TTL, in seconds |
189
-
| self.autoReady | Perform auto ready processing after the compose method returns, default True |
190
194
| self.credentials | The request credentials |
191
195
| self.context | The response context, initialized from the request context |
192
196
| self.environment | The response environment, initialized from the request context environment |
193
197
| self.requireds | Request and read additional local Kubernetes resources |
194
-
| self.resources | Define and process managed resources |
198
+
| self.resources | Define and process composed resources |
195
199
| self.results | Returned results on the Composite and optionally on the Claim |
200
+
| self.unknownsFatal | Terminate the composition if already created resources are assigned unknown values, default True |
201
+
| self.autoReady | Perform auto ready processing after the compose method returns, default True |
196
202
197
-
### Managed Resources
203
+
### Composed Resources
198
204
199
-
Creating and accessing managed resources is performed using the `BaseComposite.resources` field.
200
-
`BaseComposite.resources` is a dictionary of the managed resources whose key is the composition
205
+
Creating and accessing composed resources is performed using the `BaseComposite.resources` field.
206
+
`BaseComposite.resources`is a dictionary of the composed resources whose key is the composition
201
207
resource name. The value returned when getting a resource from BaseComposite is the following
202
208
Resource class:
203
209
204
210
| Field | Description |
205
211
| ----- | ----------- |
206
212
| Resource(apiVersion,kind,namespace,name) | Reset the resource and set the optional parameters |
207
-
| Resource.name | The composition resource name of the managed resource |
208
-
| Resource.observed | Low level direct access to the observed managed resource |
209
-
| Resource.desired | Low level direct access to the desired managed resource |
210
-
| Resource.apiVersion | The managed resource apiVersion |
211
-
| Resource.kind | The managed resource kind |
212
-
| Resource.externalName | The managed resource external name |
213
-
| Resource.metadata | The managed resource desired metadata |
213
+
| Resource.name | The composition resource name of the composed resource |
214
+
| Resource.observed | Low level direct access to the observed composed resource |
215
+
| Resource.desired | Low level direct access to the desired composed resource |
216
+
| Resource.apiVersion | The composed resource apiVersion |
217
+
| Resource.kind | The composed resource kind |
218
+
| Resource.externalName | The composed resource external name |
219
+
| Resource.metadata | The composed resource desired metadata |
214
220
| Resource.spec | The resource spec |
215
221
| Resource.data | The resource data |
216
222
| Resource.status | The resource status |
217
223
| Resource.conditions | The resource conditions |
218
224
| Resource.connection | The resource connection details |
219
225
| Resource.ready | The resource ready state |
226
+
| Resource.unknownsFatal | Terminate the composition if this resource has been created and is assigned unknown values, default is Composite.unknownsFatal |
0 commit comments