Giter Site home page Giter Site logo

eapolinario / flytetools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flyteorg/flytetools

0.0 1.0 0.0 92 KB

Miscellaneous tools for Flyte contributors

License: Apache License 2.0

Shell 18.35% Python 64.91% Makefile 5.24% Dockerfile 9.27% Mustache 2.23%

flytetools's Introduction

Flyte Tools

This repository contains miscellaneous tools for Flyte contributors.

Tools

Swagger Client Code Generator

Because Flyte IDL takes advantage of the grpc-gateway project, the proto file generated by the Swagger gRPC generator is mostly Swagger/OpenAPI compliant. That is, we can run a code generator on top of the OpenAPI spec that's produced. See the file in gen/pb-go/flyteidl/service/admin.swagger.json.

However, in generating HTTP clients from the publicly available Docker images, we found two issues. The Dockerfile in the swagger-codegen-cli directory fixes these and the final image is used in the flyteidl generate script <https://github.com/lyft/flyteidl/blob/master/generate_protos.sh.

  1. GO constant redefinition (detailed here)
  2. Use version 2.4.0 to solve the pointer struct fields.

To create the image :

cd swagger-codegen-cli
make docker_build

The Dockerfile will

  • Re-build swagger-codegen-cli.jar with the fixed go template using Maven mvn clean package.
  • Follows the pattern in the original CLI to create one with our changes.

Currently, the default host is localhost for both the clients and the version is 1.0.0.

The GO client can be tested creating a main file, like

cfg := flyteadmin.NewConfiguration()
cfg.BasePath += ":30081" // default localhost.
client := flyteadmin.NewAPIClient(cfg)

// e.g. This calls the list projects endpoint.
projects, _, err := client.AdminServiceApi.ListProjects(context.Background())

flytetools's People

Contributors

wild-endeavor avatar yindia avatar eapolinario avatar enghabu avatar hamersaw avatar kumare3 avatar pingsutw avatar andrewwdye avatar ariefrahmansyah avatar jeevb avatar jonathanburns avatar lu4nm3 avatar lyft-metaservice-2 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.