Giter VIP home page Giter VIP logo

jumatthe-control-plane's Introduction

Kalypso Control Plane

This is where platform team “models” the fleet. This repository is supposed to be human oriented, easy to understand, update, and review. It has branches that represent environment stages.

Control Plane Abstractions

This repository operates with the abstractions like Cluster Type, Reconciler, Template, Config, Workload, Workload Registration, Deployment Target and Scheduling Policy.

Refer to the full list of abstractions in the Kalypso Scheduler repository.

Repository structure

The Control Plane repository contains two types of data:

  • The data that is about to be promoted across environments. It lives in main branch and consists of:
    • Onboarded Workload Registrations
    • Templates
  • Environment specific configurations. This data is not promoted as it is specific for each environment. It lives in the corresponding environment branches (e.g. dev, qa, prod) and consists of:
    • Cluster Types included in the environment
    • Configs
    • Scheduling Policies

This branching structure is the only requirement for this repo. The folder structure within the branches is totally open. You can group abstractions and organize them in the folder hierarchies on your own preference.

Promotional Flow

Kalypso Control Plane repository implements the promotional flow with a chain of GitHub Actions Workflows:

Kalypso-workflows

CI

The CI workflow is triggered on a commit to the main branch. It contains a placeholder to perform some quality and security checks and invokes the CD workflow to promote the change to the first environment in the chain (e.g. Dev).

The workflow updates the Git commit status with the result of the CI process.

CD

The CD workflow promotes the change to the environment by saving the main branch commit id to base-repo.yaml file in the environment branch. This event starts the scheduling and transformation flow that ends up with a PR to the GitOps repository.

The workflow updates the Git commit status specifying that the change has been promoted to the environment.

Check Promote

Merging of the PR to the GitOps repository starts the Check Promote workflow in the control plane repository. This workflow polls Azure Resource Graph, waiting until all registered GitOps configurations in the subscription are in compliance with the last PR to the GitOps repository.

If one of the clusters reports failure, the workflow fails. It reports the failure Git commit status and the whole promotion flow stops.

Once all configurations are compliant, the workflow runs a placeholder for the post-deployment activities, such as automated testing and reports to the Git commit status the fact of the successful deployment to the environment.

At the end, the workflow invokes the CD workflow to promote the change in the main branch to the next environment (e.g. Stage). The whole process stops when there is no next environment in the chain.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

jumatthe-control-plane's People

Contributors

jmatthewsr-ms 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.