-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BrokerPodSpec and initContainers resources PLACEHOLDER
#645
Comments
PLACEHOLDER
I took a look on this, it seems we only go through the |
Thanks, yeah i looked the code and saw tests only on containers list. Btw i didn't saw the code concerned by the env vars injection 🤔 Is it a hook ? (i don't know if you can use hook for initContainers 🤔 ) I'm curious to see where is it, if you can link the code concerned ? Thanks in advance ;) |
I think it's there: Lines 229 to 252 in 5fbc942
|
Broker pods can have init containers that need access to akri resources. This commit adds the logic to replace the `{{PLACEHOLDER}}` for init containers in the same way it is done for regular containers. Fix project-akri#645 Signed-off-by: Nicolas Belouin <nicolas.belouin@suse.com>
* fix: Replace placeholder for initContainers in broker pods Broker pods can have init containers that need access to akri resources. This commit adds the logic to replace the `{{PLACEHOLDER}}` for init containers in the same way it is done for regular containers. Fix #645 Signed-off-by: Nicolas Belouin <nicolas.belouin@suse.com> * Update patch version Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> --------- Signed-off-by: Nicolas Belouin <nicolas.belouin@suse.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Describe the bug
Trying to put
initContainers
in abrokerPodSpec
, i found that theakri-controller
fall in error about the spec resources andPLACEHOLDER
Why i'm trying to do that ? I want an external docker image to act as a broker, BTW to infer akri custom env vars in the configuration file i need to write it with proper values. So i'm trying with an init container to write those values, efore my main broker start (IDK if it make sense ^^)
Output of
kubectl get pods,akrii,akric -o wide
Kubernetes Version: [e.g. Native Kubernetes 1.19, MicroK8s 1.19, Minikube 1.19, K3s]
K3S
To Reproduce
1 Put an initContainer in a brokerPodSpec
2 place resources with PLACEHOLDER to this container
3 Run the configuration
My configuration (it's a POC, so it's a draft) :
Expected behavior
Placing
PLACEHOLDER
in specresources
, no matter if it's a container or initContainer, i want them to be resolved correctlyLogs (please share snips of applicable logs)
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: