@@ -32,15 +32,15 @@ func (k *Kind) LoadAllImages() error {
3232}
3333
3434func (k * Kind ) LoadKubeOIDCProxy () error {
35- binPath := filepath .Join (k .rootPath , "./bin/kube-oidc-proxy" )
35+ binPath := filepath .Join (k .rootPath , "./bin/kube-oidc-proxy-linux " )
3636 mainPath := filepath .Join (k .rootPath , "./cmd/." )
3737 image := "kube-oidc-proxy-e2e"
3838
3939 return k .loadImage (binPath , mainPath , image , k .rootPath )
4040}
4141
4242func (k * Kind ) LoadIssuer () error {
43- binPath := filepath .Join (k .rootPath , "./test/tools/issuer/bin/oidc-issuer" )
43+ binPath := filepath .Join (k .rootPath , "./test/tools/issuer/bin/oidc-issuer-linux " )
4444 dockerfilePath := filepath .Join (k .rootPath , "./test/tools/issuer" )
4545 mainPath := filepath .Join (dockerfilePath , "cmd" )
4646 image := "oidc-issuer-e2e"
@@ -49,7 +49,7 @@ func (k *Kind) LoadIssuer() error {
4949}
5050
5151func (k * Kind ) LoadFakeAPIServer () error {
52- binPath := filepath .Join (k .rootPath , "./test/tools/fake-apiserver/bin/fake-apiserver" )
52+ binPath := filepath .Join (k .rootPath , "./test/tools/fake-apiserver/bin/fake-apiserver-linux " )
5353 dockerfilePath := filepath .Join (k .rootPath , "./test/tools/fake-apiserver" )
5454 mainPath := filepath .Join (dockerfilePath , "cmd" )
5555 image := "fake-apiserver-e2e"
@@ -127,7 +127,8 @@ func (k *Kind) runCmdWithOut(w io.Writer, command string, args ...string) error
127127 cmd .Stdout = w
128128 cmd .Env = append (cmd .Env ,
129129 "GO111MODULE=on" , "CGO_ENABLED=0" , "HOME=" + os .Getenv ("HOME" ),
130- "PATH=" + os .Getenv ("PATH" ))
130+ "PATH=" + os .Getenv ("PATH" ),
131+ "GOOS=linux" )
131132
132133 if err := cmd .Start (); err != nil {
133134 return err
0 commit comments