Code Monkey home page Code Monkey logo

architect's Introduction

Architect

Architect is a framework for constructing very complex structured configuration trees in TypeScript.

Philosophy

  • Fast development loop. Architect uses ts-node - no manual tsc step is required.
  • Plainly visible behaviour. No hidden magic. What you declare in TypeScript is what runs.

Concepts

  • Component: Think of a component like a singular application. It's a self-contained group of configuration or resources. Consists of a class with a function called build() that returns either an object or a list of objects to be merged into the global tree.
  • Capability: A service provided by one or more components, that can be declared on a component and made mandatory on other components.
  • Fact: Represents a unique source of data that can be requested by any individual component. Think of Facts as the input configuration for your Components.
  • Target: Holds state for a singular build. Components and facts are registered against a target, and a resolve function is called to return the final merged configuration tree.

architect's People

Contributors

livingshredder avatar

Watchers

 avatar

architect's Issues

Allow running Terraform modules alongside components

We should expose a method for Terraform code to run alongside components - with in-cluster state? - so component apply actions can invoke these modules to i.e. create AWS resources or deploy Vault policies. These should also be able to wait on the component to finish applying before they run

Uniquely identify components through names

-and drop the current "component universal ID" system. this would simplify things a lot, just don't allow the registration of two components with the same stringified name... one name per component per namespace

Per-component apply method

Some components need to be directly applied before FluxCD - for example if FluxCD itself is being installed (bootstrapped) before the rest of the resources get applied

Component parameter storage

Store non-secret component values inside the cluster using a ConfigMap. This will allow component references to be made from configurations independent of the main cluster configuration. (We could store the cluster's Facts here too)

Instance-based configuration for components

Instead of configuring components globally, allow passing in a component instance that can be referenced later. This will allow duplicate instances of the same component to coexist in the same cluster configuration.

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.