GithubHelp home page GithubHelp logo

github / kustoschematoolsaction Goto Github PK

View Code? Open in Web Editor NEW
8.0 5.0 3.0 33 KB

This repository wraps the KustoSchemaTools into a CLI tool inside a container. This way it can be used as GitHub Action

License: MIT License

Dockerfile 9.83% C# 90.17%
github-actions kusto

kustoschematoolsaction's Introduction

KustoSchemaToolsAction

This tool can be used to synchronized your schema from Azure Data Explorer (Kusto) cluster to yml files in a GitHub repository and back, using GitHub Actions.

Getting Started

  1. Create a repository for versioning your files
  2. Copy the actions.yaml file from the workflows folder to your repository in the folder .github/actions/KustoSchemaTools
  3. Copy the workflows that you want (import, diff, apply) from the workflows folder to your repository in the folder .github/workflows
  4. The workflows use OIDC to login to Azure. You can use a service principal instead. Make sure, that the identity you use has access to your Azure Data Explorer (Kusto) cluster
  5. Create a folder for your cluster/deployment and add a clusters file.
  6. Import the databases you want to synchronize
  7. Make changes to the yaml files and create a PR
  8. The diffs will be posted as PR comment
  9. Merge the PR to roll out the changes to your Azure Data Explorer (Kusto) cluster

This project can be used as it is and doesn't require customizations. In the repo

Adding custom behavior

KustoSchemaTools uses plugins for reading the and writing the schema from or to a database or yaml file. You can find more docs on that in the KustoSchemaTools repo.

The easiest way to add your own logic is to

  1. Fork this repository
  2. Implement your own plugins (examle)
  3. Register them in the Program.cs
  4. Build your own docker container (workflow)
  5. Add the definition of your action if required.
  6. Use the provided workflows with your container (import, diff, apply)

kustoschematoolsaction's People

Contributors

caol-ila avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  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.