GithubHelp home page GithubHelp logo

environment-driver's Introduction

PNC Environment driver

Environment driver provides REST endpoints to create and destroy Openshift objects required for the "build environment" (a build in a pod).

A /create endpoint is a "pass-through" endpoint, it responds when all remote requests complete. If any of the remote requests fail the response from the environment driver is an error response. If the requests to Openshift are success the driver starts to monitor pod availability and makes a callback to the invoker when the pod is ready.

The pod gets created according to the template from the configuration. To optimize used resources it removes unnecessary containers from the spec before creation if they are present. If sidecar archival service is disabled it removes init container with name sidecar-init. If the sidecar is disabled it removes container with name sidecar.

The /complete responds immediately, and the driver tries to destroy the environment (no guarantee). In case the "debug environment" is requested the endpoint returns when the debug is enabled.

The /cancel endpoint responds immediately, and the driver tries to destroy the environment (no guarantee). In case of multiple driver instances the "sticky session" should be used to make the /cancel request hit the same node as the /create one to cancel the internal monitor.

environment-driver's People

Contributors

dependabot[bot] avatar jakubvanko avatar jomrazek avatar matejonnet avatar michalovjan avatar pnc-bot-release avatar thescouser89 avatar vibe13 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.