// Set up the instrumented test server to run in GKE. Creates a new GKE cluster
// and runs the specified container image in a pod. The returned cleanup
// function tears down the whole cluster.
Set up the instrumented test server to run in GKE. Creates a new GKE cluster
and runs the specified container image in a pod. The returned cleanup
function tears down the whole cluster.
// Set up the instrumented test server to run in GKE . Creates a new GKE cluster // and runs the specified container image in a pod . The returned cleanup // function tears down the whole cluster .
func SetupGke(
	ctx context.Context,
	args *Args,
	logger *log.Logger,
) (*testclient.Client, Cleanup, error) {
	pubsubInfo, cleanupTf, err := setuptf.SetupTf(
		ctx,
		args.ProjectID,
		args.TestRunID,
		gkeTfDir,
		map[string]string{
			"image": args.Gke.Image,
		},
		logger,
	)
	if err != nil {
		return nil, cleanupTf, err
	}
	client, err := testclient.New(ctx, args.ProjectID, pubsubInfo)
	return client, cleanupTf, err
}
func SetupGke ( ctx context . Context , args * Args , logger * log . Logger , ) ( * testclient . Client , Cleanup , error ) { pubsubInfo , cleanupTf , err := setuptf . SetupTf ( ctx , args . ProjectID , args . TestRunID , gkeTfDir , map [ string ] string { " " : args . Gke . Image , } , logger , ) if err != nil { return nil , cleanupTf , err } client , err := testclient . New ( ctx , args . ProjectID , pubsubInfo ) return client , cleanupTf , err }
Set up the instrumented test server to run in GKE.
Set up the instrumented test server to run in GKE .