crossplane-function-pythonic 0.6.3__py3-none-any.whl → 0.7.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.
@@ -1,18 +1,18 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crossplane-function-pythonic
3
- Version: 0.6.3
3
+ Version: 0.7.1
4
4
  Summary: A Python centric Crossplane Function
5
5
  Author: Patrick J McNerthney
6
6
  Author-email: Patrick J McNerthney <pat@mcnerthney.com>
7
7
  License-Expression: Apache-2.0
8
- Requires-Dist: grpcio==1.84.0
8
+ Requires-Dist: grpcio==1.86.0
9
9
  Requires-Dist: inflect==7.6.0
10
10
  Requires-Dist: kr8s==0.20.15
11
11
  Requires-Dist: protobuf==7.36.2
12
- Requires-Dist: pyyaml==6.0.3
13
- Requires-Dist: kopf==1.45.1 ; extra == 'packages'
14
- Requires-Dist: pip==26.2.2 ; extra == 'pip-install'
15
- Requires-Python: >=3.12, <3.16
12
+ Requires-Dist: pyyaml==6.0.4
13
+ Requires-Dist: kopf==1.45.2 ; extra == 'packages'
14
+ Requires-Dist: pip==26.3 ; extra == 'pip-install'
15
+ Requires-Python: >=3.15, <3.16
16
16
  Project-URL: Documentation, https://github.com/crossplane-contrib/function-pythonic#readme
17
17
  Project-URL: Issues, https://github.com/crossplane-contrib/function-pythonic/issues
18
18
  Project-URL: Source, https://github.com/crossplane-contrib/function-pythonic
@@ -195,6 +195,43 @@ subnet.spec.forProvider.cidrBlock = '10.0.0.0/20'
195
195
  ```
196
196
  Will generate the appropriate Crossplane Usage resource.
197
197
 
198
+ ### Usage replayDeletion
199
+
200
+ Generated Usages set `spec.replayDeletion` from the `usagesReplayDeletion` setting:
201
+
202
+ | Setting | Scope | Default |
203
+ | :--- | :--- | :--- |
204
+ | `--usages-replay-deletion` / `--no-usages-replay-deletion` | Command line, all compositions | True |
205
+ | `self.usagesReplayDeletion` | All resources of the composite | The command line value |
206
+ | `Resource.usagesReplayDeletion` | All Usages generated for that resource | `self.usagesReplayDeletion` |
207
+
208
+ The setting applies to every Usage generated for a resource. It cannot be set per
209
+ dependency.
210
+
211
+ With `replayDeletion: true`, Crossplane replays a blocked deletion of the protected
212
+ resource when its Usage is removed. Generated Usages are composed resources, so they are
213
+ removed during normal reconciliation: when `compose()` stops reading the dependent field,
214
+ or when the protected resource's observed name changes, since that name is part of the
215
+ Usage name. If the protected resource had a blocked deletion attempt, removing its Usage
216
+ deletes it. To avoid this, set `replayDeletion: false` for all compositions using a
217
+ Crossplane DeploymentRuntimeConfig:
218
+ ```yaml
219
+ apiVersion: pkg.crossplane.io/v1beta1
220
+ kind: DeploymentRuntimeConfig
221
+ metadata:
222
+ name: function-pythonic
223
+ spec:
224
+ deploymentTemplate:
225
+ spec:
226
+ selector: {}
227
+ template:
228
+ spec:
229
+ containers:
230
+ - name: package-runtime
231
+ args:
232
+ - --no-usages-replay-deletion
233
+ ```
234
+
198
235
  ## API Documentation
199
236
 
200
237
  - [Composite API (`composite.py`)](https://github.com/crossplane-contrib/function-pythonic/blob/main/docs/composite.md)
@@ -316,6 +353,7 @@ The BaseComposite also provides access to the following Crossplane Function leve
316
353
  | self.schemas | Schemas | Request and read CustomResourceDefinition schemas |
317
354
  | self.resources | Resources | Define and process composed resources |
318
355
  | self.usages| Boolean | Generate Crossplane Usages for resource dependencies, default False |
356
+ | self.usagesReplayDeletion | Boolean | The replayDeletion value of generated Usages, default is the `--usages-replay-deletion` command line option (True) |
319
357
  | self.autoReady | Boolean | Perform auto ready processing on all composed resources, default True |
320
358
  | self.unknownsFatal | Boolean | Terminate the composition if already created resources are assigned unknown values, default False |
321
359
 
@@ -356,7 +394,8 @@ Resource class:
356
394
  | Resource.ready | Boolean | The resource ready state |
357
395
  | Resource.addDependency | Method | Add another composed resource as a dependency |
358
396
  | Resource.setReadyCondition | Method | Set Resource.ready to the Ready Condition status |
359
- | Resource.usages | Boolean | Generate Crossplane Usages for this resource, default is Composite.autoReady |
397
+ | Resource.usages | Boolean | Generate Crossplane Usages for this resource, default is Composite.usages |
398
+ | Resource.usagesReplayDeletion | Boolean | The replayDeletion value of all Usages generated for this resource, default is Composite.usagesReplayDeletion |
360
399
  | Resource.autoReady | Boolean | Perform auto ready processing on this resource, default is Composite.autoReady |
361
400
  | Resource.unknownsFatal | Boolean | Terminate the composition if this resource has been created and is assigned unknown values, default is Composite.unknownsFatal |
362
401
 
@@ -525,7 +564,8 @@ command.
525
564
  ```shell
526
565
  $ function-pythonic render --help
527
566
  usage: Crossplane Function Pythonic render [-h] [--debug] [--log-name-width WIDTH] [--logger-level LOGGER=LEVEL] [--python-path DIRECTORY]
528
- [--render-unknowns] [--allow-oversize-protos] [--crossplane-v1] [--kube-context CONTEXT]
567
+ [--render-unknowns] [--allow-oversize-protos] [--crossplane-v1]
568
+ [--usages-replay-deletion | --no-usages-replay-deletion] [--kube-context CONTEXT]
529
569
  [--context-files KEY=PATH] [--context-values KEY=VALUE] [--observed-resources PATH]
530
570
  [--required-resources PATH] [--required-schemas PATH] [--include-full-xr] [--include-connection-xr]
531
571
  [--include-function-results] [--include-context]
@@ -549,6 +589,8 @@ options:
549
589
  --allow-oversize-protos
550
590
  Allow oversized protobuf messages
551
591
  --crossplane-v1 Enable Crossplane V1 compatibility mode
592
+ --usages-replay-deletion, --no-usages-replay-deletion
593
+ Default replayDeletion value for generated Usages (default: True)
552
594
  --kube-context, -k CONTEXT
553
595
  The kubectl context to use to obtain external resources from, such as required resources, connections, etc.
554
596
  --context-files KEY=PATH
@@ -0,0 +1,22 @@
1
+ crossplane/pythonic/__about__.py,sha256=xViFFR_npzf2RXvljN98CNoUFOZ2KN9Hwgcbx4KCPpg,180
2
+ crossplane/pythonic/__init__.py,sha256=b4LHrCWoibhkzeIAWbXsT_JBW4S2X7twrA7c1BtMxAo,331
3
+ crossplane/pythonic/__main__.py,sha256=Ipm-KZJB7V1CFJ96iF1-pN8CBfK7qdsykjsmt4hl7LQ,32
4
+ crossplane/pythonic/auto_ready.py,sha256=n9hnv6f2vzCHFr-Lq_CAib5ik5vVxpORSQIUE1lOoVE,8153
5
+ crossplane/pythonic/command.py,sha256=aobciGZ6rl0NeLlipUPSnGUkF3cu407rf2ci06LbjYM,4940
6
+ crossplane/pythonic/composite.py,sha256=wxtIVynXqTOoPk84lzXliAGkZhx0gxAc7Pjn2PSPUo4,45413
7
+ crossplane/pythonic/function.py,sha256=vB7mU9-UmlZMSciWU8uOkrO-QZXk5FEO0Z4SAf3G6pQ,21580
8
+ crossplane/pythonic/grpc.py,sha256=33MJ8zlTvh8HuCdVnQwx3zWIFSzJCPijvpxuwzR3MSo,6174
9
+ crossplane/pythonic/main.py,sha256=fa3mwEaULscAF2IszvIkLf7l-ryP3hElnlpJZXUhaM0,981
10
+ crossplane/pythonic/packages.py,sha256=8UIPuGz8xiCuDoNyuN-kcJIyjPQkcPyTQd1Gfdmz7CM,7855
11
+ crossplane/pythonic/proto/v1/run_function.proto,sha256=GbJ0wVUEjfpMsn2DsnhiPvtmL09z3oyMbWwf6viQtiw,16676
12
+ crossplane/pythonic/proto/v1/run_function_pb2.py,sha256=kj1vcbOGGMlnF0YxMR774JhTQsfIk0Y5ZRRBpF_F5nY,14440
13
+ crossplane/pythonic/proto/v1/run_function_pb2.pyi,sha256=eFq00EFNSY3Pj_6CUJR90qa_kc82uZ2Y3jSw8CVIWoQ,53056
14
+ crossplane/pythonic/proto/v1/run_function_pb2_grpc.py,sha256=gN8zQnI0GEkOv_HDDtE6H1GoNp0vWVqw_p9IJ2z_6zs,3944
15
+ crossplane/pythonic/proto/v1/run_function_pb2_grpc.pyi,sha256=QQsbwTUlzW36c75ujlrgZMa3Zk8xalTpWm4q5oE2qWc,2406
16
+ crossplane/pythonic/protobuf.py,sha256=6IJGpo9WCEg9WVzYY0QV3h5Go2wk2pinEFruimV_a0g,61006
17
+ crossplane/pythonic/render.py,sha256=0serXaZGXDbE9x0neOxNfqDgQC01MpFwjvlc5XYs7Ls,42407
18
+ crossplane/pythonic/version.py,sha256=T70dXiH5zW7qhQ2Tigw4xBT-zBVDwm5Sp1BEmQ4SQrw,221
19
+ crossplane_function_pythonic-0.7.1.dist-info/WHEEL,sha256=wfHFB5CQ4yOA68LQ_ISeFjKJGxj2GfVzMH9QxkYgrCw,81
20
+ crossplane_function_pythonic-0.7.1.dist-info/entry_points.txt,sha256=yT7OSM0ZYJoX1rya2HZfIrGzCXbYdqMblBtqEDH8LzM,69
21
+ crossplane_function_pythonic-0.7.1.dist-info/METADATA,sha256=Avj2zvHuSSZetj9KHrvXuH1EREBsBAVc_Es3SbZu_zU,38495
22
+ crossplane_function_pythonic-0.7.1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: uv 0.13.4
2
+ Generator: uv 0.13.13
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any