@@ -43,6 +43,17 @@ function-go-templating examples implemented using function-pythonic.
4343The [eks-cluster](./examples/eks-cluster/composition.yaml) example is a good
4444complex example creating the entire vpc structure needed for an EKS cluster.
4545
46+ ## Installing function-pythonic
47+
48+ ` ` ` yaml
49+ apiVersion : pkg.crossplane.io/v1
50+ kind : Function
51+ metadata :
52+ name : function-pythonic
53+ spec :
54+ package : ghcr.io/fortra/function-pythonic:v0.0.3
55+ ` ` `
56+
4657## Managed Resource Dependencies
4758
4859function-pythonic automatically handles dependencies between managed resources.
@@ -117,8 +128,8 @@ The following functions are provided to create Protobuf structures:
117128| Unknown | Create a new Protobuf unknown placeholder |
118129| Yaml | Create a new Protobuf structure from a yaml string |
119130| Json | Create a new Protobuf structure from a json string |
120- | Base64Encode | Encode a string into base 64 |
121- | Base64Decode | Decode a string from base 64 |
131+ | B64Encode | Encode a string into base 64 |
132+ | B64Decode | Decode a string from base 64 |
122133
123134The following items are supported in all the Protobuf Message wrapper classes: ` bool ` ,
124135` len ` , ` contains ` , ` iter ` , ` hash ` , ` == ` , ` str ` , ` format `
@@ -259,10 +270,10 @@ spec:
259270 self.status.composite = 'Hello, World!'
260271` ` `
261272
262- ## Installing Python Packages
273+ ## Install Additional Python Packages
263274
264275function-pythonic supports a ` --pip-install` command line option which will run pip install
265- with the configured pip install command. For example, the following DeploymentRuntimeConfig :
276+ with the configured pip install command. For example :
266277` ` ` yaml
267278apiVersion: pkg.crossplane.io/v1beta1
268279kind: DeploymentRuntimeConfig
@@ -280,3 +291,27 @@ spec:
280291 - --pip-install
281292 - --quiet aiobotocore==2.23.2
282293` ` `
294+
295+ # # Enable Oversize Protos
296+
297+ The Protobuf python package used by function-pythonic limits the depth of yaml
298+ elements and the total size of yaml parsed. This results in a limit of approximately
299+ 30 levels of nested yaml fields. This check can be disabled using the `--allow-oversize-protos`
300+ command line option. For example :
301+
302+ ` ` ` yaml
303+ apiVersion: pkg.crossplane.io/v1beta1
304+ kind: DeploymentRuntimeConfig
305+ metadata:
306+ name: function-pythonic
307+ spec:
308+ deploymentTemplate:
309+ spec:
310+ template:
311+ spec:
312+ containers:
313+ - name: package-runtime
314+ args:
315+ - --debug
316+ - --allow-oversize-protos
317+ ` ` `
0 commit comments