We want to allow annotations to change how itzo does things. Specifically we are interested in implementing this issue: https://github.com/elotl/itzo/issues/101
Here are some rough notes on how this can happen:
Annotations are already copied from k8s pods to kip pods in pkg/server/convert.go:k8sToMilpaPod. A suggested name for a new annotation was image-overlay-rootfs and the value should be a bool-ish value. All that needs to happen on the kip side is that annotation needs to get sent to itzo.
All pod creation/updates are sent to itzo in the api.PodParameters structure. Add an Annotations map[string]string to that structure
In the PodController, the pod spec and other info is sent to Itzo in PodController.updatePodUnits(). Copy all pod.elotl.co/* pod annotations into the PodParameters that are sent to the itzo instance.
We want to allow annotations to change how itzo does things. Specifically we are interested in implementing this issue: https://github.com/elotl/itzo/issues/101
Here are some rough notes on how this can happen:
pkg/server/convert.go:k8sToMilpaPod
. A suggested name for a new annotation wasimage-overlay-rootfs
and the value should be a bool-ish value. All that needs to happen on the kip side is that annotation needs to get sent to itzo.api.PodParameters
structure. Add anAnnotations map[string]string
to that structurePodController
, the pod spec and other info is sent to Itzo inPodController.updatePodUnits()
. Copy allpod.elotl.co/*
pod annotations into thePodParameters
that are sent to the itzo instance.