canonical / charmed-kubeflow-chisme

Shared Utilities used across Charmed Kubeflow
Apache License 2.0
1 stars 4 forks source link

add pebble_components.LazyContainerFileTemplate #91

Closed ca-scribner closed 4 months ago

ca-scribner commented 4 months ago

adds a lazy-rendering version of the ContainerFileTemplate to allow for inputs to be passed as callables rather than literal values.

Closes #89

Since this introduces a LazyContainerFileTemplate and then modifies the previous ContainerFileTemplate to use the new lazy version as a backend, there's a chance of regressions that break the original ContainerFileTemplate. Tests for this were added, and this pvcviewer draft PR was created to regression test this chisme PR branch.