crossplane-function-pythonic 0.0.11__py3-none-any.whl → 0.1.0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crossplane-function-pythonic
3
- Version: 0.0.11
3
+ Version: 0.1.0
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
@@ -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)
@@ -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.0.dist-info/METADATA,sha256=-F8WZ6nyixlrs1MGRAK8hzueUnOVNRpNN431NUKZiV4,24435
8
+ crossplane_function_pythonic-0.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
+ crossplane_function_pythonic-0.1.0.dist-info/entry_points.txt,sha256=jJ4baywFDviB9WyAhyhNYF2VOCb6XtbRSjKf7bnBwhg,68
10
+ crossplane_function_pythonic-0.1.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
11
+ crossplane_function_pythonic-0.1.0.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,,