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