I'm trying to write an unrelated initializer for pods and looked to your really clean code to figure out the bits that need to be handled. Fair warning: I'm pretty new to the k8s API so my question may be nonsensical.
Given that the processing in the envoy initializer happens only when that initializer is the first element in the pending list, and that you are only using AddFunc to fixup the deployment, what would happen if there was a different initializer that needed to be run before the envoy one?
Seems to me that UpdateFunc should also be set to update the deployment for these cases?
What am I missing here?
I'm trying to write an unrelated initializer for pods and looked to your really clean code to figure out the bits that need to be handled. Fair warning: I'm pretty new to the k8s API so my question may be nonsensical.
Given that the processing in the envoy initializer happens only when that initializer is the first element in the pending list, and that you are only using
AddFuncto fixup the deployment, what would happen if there was a different initializer that needed to be run before the envoy one?Seems to me that
UpdateFuncshould also be set to update the deployment for these cases?What am I missing here?