k6-operator icon indicating copy to clipboard operation
k6-operator copied to clipboard

How to run external script

Open rucciva opened this issue 4 years ago • 2 comments

How to run external script, for example the one stored in git or docker images? Especially for scripts that consist of multiple files.

rucciva avatar Aug 09 '21 06:08 rucciva

This isn't currently supported. You'd need to use something like argo to generate the configmap from the files in git for you, and then reference that. The operator assumes you have some method of putting the configmap into the cluster appropriately.

knechtionscoding avatar Sep 04 '21 01:09 knechtionscoding

This is IMO not something the operator should ever aspire to solve as it lies quite far outside of its sphere of concern. As @KnechtionsCoding suggests, this is better solved with some other (gitops) tool.

simskij avatar Dec 26 '21 23:12 simskij

There's now support for init contaners which was not initially meant for download of scripts from external sources, but it does allow such a setup if needs be. Example can be seen here.

Otherwise, downloading sources directly was discussed internally but as mentioned by Hans and Simon, it is very unlikely to be supported, esp. with this workaround via init containers.

Closing this now.

yorugac avatar Oct 13 '23 18:10 yorugac