Open mkonecny-atlassian opened 1 day ago
You added a link to a Zulip discussion, please make sure the description of the issue is comprehensive and doesn't require accessing Zulip
This message is automatically generated by a bot.
/cc @geoand (kubernetes), @iocanel (kubernetes)
/cc @metacosm
Description
Hi for more complex integration tests where Kubernetes and K8s Operators (using Java Operators SDK) a more customizable access to the underlying
kind
/k3s
tools would be useful.In my case, we have a multi-module build where the operator service is built as a Docker image in one module, and the end-to-end tests in another one. I am trying to load the generated manifest in the K8s cluster (using Quarkus Dev Services and
kind
under the hood)The Docker image I am trying to test is not present in the k8s cluster, and it's not possible to load it into the cluster as I cannot get hold of the
KindContainer
. It also doesn't have the ability to load the image in the first place and is missing some labels that will make it available to thekind
command line tooling.I can think of other reasons people will want to customize the k8s containers in local dev environment, like: adding labels, initialization parameters, loading custom docker images into the cluster...
I've discussed this issue in the chat as well, excerpt:
Implementation ideas
Possible solutions I can think of:
KindContainer
in the tests and allow for modifications (this would require egloadImage
method to be exposed)