crossplane-function-pythonic 0.0.11__py3-none-any.whl → 0.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- crossplane/pythonic/__init__.py +1 -4
- crossplane/pythonic/composite.py +16 -13
- crossplane/pythonic/function.py +121 -38
- crossplane/pythonic/protobuf.py +647 -324
- {crossplane_function_pythonic-0.0.11.dist-info → crossplane_function_pythonic-0.1.1.dist-info}/METADATA +26 -4
- crossplane_function_pythonic-0.1.1.dist-info/RECORD +11 -0
- crossplane_function_pythonic-0.0.11.dist-info/RECORD +0 -11
- {crossplane_function_pythonic-0.0.11.dist-info → crossplane_function_pythonic-0.1.1.dist-info}/WHEEL +0 -0
- {crossplane_function_pythonic-0.0.11.dist-info → crossplane_function_pythonic-0.1.1.dist-info}/entry_points.txt +0 -0
- {crossplane_function_pythonic-0.0.11.dist-info → crossplane_function_pythonic-0.1.1.dist-info}/licenses/LICENSE +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: crossplane-function-pythonic
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.1.1
|
4
4
|
Summary: A Python centric Crossplane Function
|
5
5
|
Project-URL: Documentation, https://github.com/fortra/function-pythonic#readme
|
6
6
|
Project-URL: Issues, https://github.com/fortra/function-pythonic/issues
|
@@ -81,7 +81,7 @@ kind: Function
|
|
81
81
|
metadata:
|
82
82
|
name: function-pythonic
|
83
83
|
spec:
|
84
|
-
package: ghcr.io/fortra/function-pythonic:v0.
|
84
|
+
package: ghcr.io/fortra/function-pythonic:v0.1.1
|
85
85
|
```
|
86
86
|
## Composed Resource Dependencies
|
87
87
|
|
@@ -119,6 +119,26 @@ overridden for all composed resource by setting the Composite `self.unknownsFata
|
|
119
119
|
to False, or at the individual composed resource level by setting the
|
120
120
|
`Resource.unknownsFatal` field to False.
|
121
121
|
|
122
|
+
## Usage Dependencies
|
123
|
+
|
124
|
+
function-pythonic can be configured to automatically create
|
125
|
+
[Crossplane Usages](https://docs.crossplane.io/latest/managed-resources/usages/)
|
126
|
+
dependencies between resources. Modifying the above VPC example with:
|
127
|
+
```yaml
|
128
|
+
self.usages = True
|
129
|
+
|
130
|
+
vpc = self.resources.VPC('ec2.aws.crossplane.io/v1beta1', 'VPC')
|
131
|
+
vpc.spec.forProvider.region = 'us-east-1
|
132
|
+
vpc.spec.forProvider.cidrBlock = '10.0.0.0/16'
|
133
|
+
|
134
|
+
subnet = self.resources.SubnetA('ec2.aws.crossplane.io/v1beta1', 'Subnet')
|
135
|
+
subnet.spec.forProvider.region = 'us-east-1'
|
136
|
+
subnet.spec.forProvider.vpcId = vpc.status.atProvider.vpcId
|
137
|
+
subnet.spec.forProvider.availabilityZone = 'us-east-1a'
|
138
|
+
subnet.spec.forProvider.cidrBlock = '10.0.0.0/20'
|
139
|
+
```
|
140
|
+
Will generate the appropriate Crossplane Usage resource.
|
141
|
+
|
122
142
|
## Pythonic access of Protobuf Messages
|
123
143
|
|
124
144
|
All Protobuf messages are wrapped by a set of python classes which enable using
|
@@ -225,6 +245,7 @@ The BaseComposite also provides access to the following Crossplane Function leve
|
|
225
245
|
| self.requireds | Requireds | Request and read additional local Kubernetes resources |
|
226
246
|
| self.resources | Resources | Define and process composed resources |
|
227
247
|
| self.unknownsFatal | Boolean | Terminate the composition if already created resources are assigned unknown values, default True |
|
248
|
+
| self.usages| Boolean | Generate Crossplane Usages for resource dependencies, default False |
|
228
249
|
| self.autoReady | Boolean | Perform auto ready processing on all composed resources, default True |
|
229
250
|
|
230
251
|
### Composed Resources
|
@@ -251,6 +272,7 @@ Resource class:
|
|
251
272
|
| Resource.connection | Connection | The resource connection details |
|
252
273
|
| Resource.ready | Boolean | The resource ready state |
|
253
274
|
| Resource.unknownsFatal | Boolean | Terminate the composition if this resource has been created and is assigned unknown values, default is Composite.unknownsFatal |
|
275
|
+
| Resource.usages | Boolean | Generate Crossplane Usages for this resource, default is Composite.autoReady |
|
254
276
|
| Resource.autoReady | Boolean | Perform auto ready processing on this resource, default is Composite.autoReady |
|
255
277
|
|
256
278
|
### Required Resources (AKA Extra Resources)
|
@@ -386,7 +408,7 @@ metadata:
|
|
386
408
|
annotations:
|
387
409
|
render.crossplane.io/runtime: Development
|
388
410
|
spec:
|
389
|
-
package: ghcr.io/fortra/function-pythonic:v0.
|
411
|
+
package: ghcr.io/fortra/function-pythonic:v0.1.1
|
390
412
|
```
|
391
413
|
In one terminal session, run function-pythonic:
|
392
414
|
```shell
|
@@ -488,7 +510,7 @@ kind: Function
|
|
488
510
|
metadata:
|
489
511
|
name: function-pythonic
|
490
512
|
spec:
|
491
|
-
package: ghcr.io/fortra/function-pythonic:v0.
|
513
|
+
package: ghcr.io/fortra/function-pythonic:v0.1.1
|
492
514
|
runtimeConfigRef:
|
493
515
|
name: function-pythonic
|
494
516
|
---
|
@@ -0,0 +1,11 @@
|
|
1
|
+
crossplane/pythonic/__init__.py,sha256=A9U4-azc4DjSsOnOnjQxCkoTzsZMRBb_AvqzR_Bd95A,268
|
2
|
+
crossplane/pythonic/composite.py,sha256=O9NLmmZzf1DqjuGRcOLDZQuLL5oZQTXZ5h_YtKdqiqg,21608
|
3
|
+
crossplane/pythonic/function.py,sha256=2O_SNoqlSNxU2dPy9h_khk7tuSdniOmksqajeWPCK8M,16435
|
4
|
+
crossplane/pythonic/main.py,sha256=HILfW6WP-QvOiyfLLu41bAN_2hbkxuw-3DD8rEUMTPQ,6893
|
5
|
+
crossplane/pythonic/packages.py,sha256=4TxyT6V79R0m4tJbC8R1gwU_vgHGLXKSBzeTTKd8xGo,5120
|
6
|
+
crossplane/pythonic/protobuf.py,sha256=DD8feo5Ni8phNq7mKlAXfJ2lLvkb-S_fAq9J9DD-Y98,47703
|
7
|
+
crossplane_function_pythonic-0.1.1.dist-info/METADATA,sha256=rUaOIYfdkBYrIiCY6OSaWN8NnQy6iA2uip6F8YVjMBY,24432
|
8
|
+
crossplane_function_pythonic-0.1.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
9
|
+
crossplane_function_pythonic-0.1.1.dist-info/entry_points.txt,sha256=jJ4baywFDviB9WyAhyhNYF2VOCb6XtbRSjKf7bnBwhg,68
|
10
|
+
crossplane_function_pythonic-0.1.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
11
|
+
crossplane_function_pythonic-0.1.1.dist-info/RECORD,,
|
@@ -1,11 +0,0 @@
|
|
1
|
-
crossplane/pythonic/__init__.py,sha256=9Oz3mvFO-8GXb75iEfybSHgVr3p8INdqA201tCusuSo,408
|
2
|
-
crossplane/pythonic/composite.py,sha256=a_TVaz4ABRvsyhEEnMpZKFtSrH1mYWmqAn8IXGUtgrc,21519
|
3
|
-
crossplane/pythonic/function.py,sha256=8B-chQmuBSSbX3ptOIuE2Tz5KAZ7M5U4-q6wf0Qlwf0,11139
|
4
|
-
crossplane/pythonic/main.py,sha256=HILfW6WP-QvOiyfLLu41bAN_2hbkxuw-3DD8rEUMTPQ,6893
|
5
|
-
crossplane/pythonic/packages.py,sha256=4TxyT6V79R0m4tJbC8R1gwU_vgHGLXKSBzeTTKd8xGo,5120
|
6
|
-
crossplane/pythonic/protobuf.py,sha256=qkzhrXWsaqWHnciKiPavJNcq-qSLcFEoKw-tEJj2Ou4,35037
|
7
|
-
crossplane_function_pythonic-0.0.11.dist-info/METADATA,sha256=OKe1qRnvorxI0qVHWxmIJxnEHTPMxW9tK7mZ7H8Z6DA,23468
|
8
|
-
crossplane_function_pythonic-0.0.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
9
|
-
crossplane_function_pythonic-0.0.11.dist-info/entry_points.txt,sha256=jJ4baywFDviB9WyAhyhNYF2VOCb6XtbRSjKf7bnBwhg,68
|
10
|
-
crossplane_function_pythonic-0.0.11.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
11
|
-
crossplane_function_pythonic-0.0.11.dist-info/RECORD,,
|
{crossplane_function_pythonic-0.0.11.dist-info → crossplane_function_pythonic-0.1.1.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|