Closed nikhiljindal closed 6 years ago
/area kubetest /kind feature /assign /assign @krzyzacy
Want to get @krzyzacy to sign off on kubetest changes, but this seems reasonable and probably better than everyone maintining their own scripts to do this.
Do we really want a flag for every binary added? That doesn't seem like it would scale well. Or are you saying the value of the flag is the data to fetch?
Do we really want a flag for every binary added? That doesn't seem like it would scale well. Or are you saying the value of the flag is the data to fetch?
I would suggest we support obtaining a binary and placing it in the path based on the flag(s).
Yes good point @G-Harmon A generic flag should be enough here
I'll question if that logic should live inside kubetest? The test probably should manage it's dependencies?
@krzyzacy the test is e2e using ginkgo. kinda ugly to fetch binaries in the test and shove them in the path.
@nikhiljindal says they already publish binaries to GCS for consumption, so we can support fetching the latest binary from some flag
Created https://storage.googleapis.com/kubemci-release/release/latest/bin/linux/amd64/kubemci
and pushed the binary there as well. Thats the URL we can use in our test to fetch the latest binary.
ok, sounds reasonable
discussed offline:
kubemci:latest
, which will always pull and test against latest kubemciThis is now done. We have a ci job that is pushing new images every time there is a commit: https://k8s-testgrid.appspot.com/sig-multicluster-kubemci#kubemci-image-push
https://k8s-testgrid.appspot.com/sig-multicluster-kubemci#kubemci-ingress-conformance is an example ci job that is running and using that pushed latest image in every run.
Context: Am adding an e2e test for kubemci as part of the existing ingress test suite: https://github.com/kubernetes/kubernetes/pull/59234. The test job needs to be able to run the kubemci binary.
How can I ensure that the job has access to kubemci binary?
@BenTheElder suggested that we can add a flag to kubetest to fetch the binary and make it available to the job. Filing this issue to make that happen.
More details: The binary is located at https://storage.googleapis.com/kubemci-release/release/v0.3.0/bin/linux/amd64/kubemci. I can create a new folder for latest instead of v0.3.0 that the test can use.
The tests are run as part of multiple jobs. https://k8s-testgrid.appspot.com/sig-network-gce#gci-gce-ingress is an example.
cc @BenTheElder @krzyzacy @G-Harmon @bowei @MrHohn