Open spriadka opened 3 years ago
From discussion what I had with Simon. This is not to support product configuration. Rather attempt to simplify test configuration in some cases. Alternative is to use S2I custom scripts.
How does the product configuration for the Java keystores look like then?
How does the product configuration for the Java keystores look like then?
I meant it like it is not requirement of product, e.g. EAP on OpenShift does not require initContainers to run. But to answer your question, I would say java keystores are used to passed to pods as OpenShift Secret objects.
I have no problem of adding this feature into XTF (if anyone does it :-) ). However whether to use it in product test suite might not be best idea as it adds addional complexity and breaks 1 pod = 1 container concept so it might be harder to debug.
Init containers are executed before Pod's container. We can use them to manage utilities or setup scripts not present in an app image. Resulting YAML can look like following:
(reference of applying one such in https://developers.redhat.com/blog/2017/11/22/dynamically-creating-java-keystores-openshift/)