NOTICE: [kubevirt] yuvalif opened pull request #962: add expose command to virtctl (master...add_virtctl_expose) https://git.io/vpldB
what-a-bot has left the channel
what-a-bot joined the channel
NOTICE: [kubevirt] lukas-bednar opened pull request #963: api: fix resource kind for vm-preset proxy (master...fix-preset-api-definition) https://git.io/vplF4
what-a-bot has left the channel
karimb has quit
jniederm_ joined the channel
Humble joined the channel
gszasz
rmohr: ping re test automation for creating OVM from template via oc command
rmohr
gszasz: hi
gszasz
rmohr: hi, I have a question regarding the template being processed by oc command. sgott suggested that it should be created from object to avoid having actual template yaml/json file as a dependency for the test
rmohr
ah yes, and now you can't find an object, gszasz right?
gszasz
rmohr: what looks logical to me is to derive a struct from v1.VirtualMachine and then use MarshalJSON to generate template.json file, that can be passed to oc process command as argument.
rmohr
gszasz: we could also be more agressive and copy the template struct from the openshift codebase
phoracek joined the channel
gszasz: then you can send the object with the generic reset client (part of the client we use in the code)
rmohr: my first idea was just having a constant string containing the JSON code (originally I used yaml, after I realized that 'oc process' can parse json as well, that is far more convenient for string variable).
rmohr
gszasz: my feeling is that it would be better to copy the structs for not-processed templates from there
gszasz: easier to maintain
gszasz: whatever we copy there will always work, since these structs are already "v1" in origin which means that that structure will be supported forever
gszasz
rmohr: makes sense
rmohr
gszasz: as a side effecgt we can then also generate our template examples! :)
Humble joined the channel
gszasz
rmohr: sure :) over last week I used just template yaml from the cluster directory (as I was doing during manual testing) until sgott suggested that test should be as much independent from external files as possible
rmohr: so you suggest to copy-paste Template struct from the openshift's template/types.go into kubvirt's api/v1/types.go
rmohr
gszasz: right now we only need it for testing. I would prefer /tests/types.go (where the tests are)
gszasz
rmohr: right, so we will not mess up with actual v1/types.go just to have one functional test. Makes sense.
karimb joined the channel
biakymet joined the channel
rmohr: thankk you
mkletzan has quit
jsuchane has quit
bkorren joined the channel
SebastianSch joined the channel
pkliczew_lunch is now known as pkliczew
rmohr has quit
mkletzan joined the channel
jsuchane joined the channel
trown|outtypewww is now known as trown
vossel joined the channel
pkliczew
lbednar, hi
lbednar
pkliczew: hi
pkliczew
lbednar, the way we generate kubevirt client seems to be not perfect