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