rukpak
rukpak copied to clipboard
Override bundle contents
There may be some cases where a bundle, as it is defined on image, may not be compatible with a specific cluster for one reason or another (trivially, this could be as simple as wanting to update a deployment to point to a test image without rebuilding a new bundle image). There should be a way to easily override the contents of a bundle, either via the bundle api spec or some mechanism for modifying the bundle contents in cluster storage.
Can this feature be generalized with two composable features?
- "Output my bundle directory/image as a
kubectl
-able object to stdout" - "Support API that lets me provide inlined static bundle to cluster (i.e. without a container image or other off-cluster storage backend)"
To me, 2) sounds an awful lot like the nice abstraction that CatalogSource
has for index images. It's either "I've got an image, manage the pod for me" or "I'm running the registry already, you can find it <here>
"
There should be a way to easily override the contents of a bundle, either via the bundle api spec or some mechanism for modifying the bundle contents in cluster storage.
I think it would be wise to avoid introducing merge concepts into the bundle api spec, since they are often confusing to users and hard to implement for developers. For example, how does one merge a list? What if I want to delete or change a list item? What about nested lists?
Related to #158?