GithubHelp home page GithubHelp logo

kontrast's Introduction

kontrast

kubectl diff with pretty colours. Currently alpha - use at your own risk (kontrast doesn't do any write operations, so should be okay).

Installation

go install github.com/monzo/kontrast

Note: this takes a while [1]

Usage

kontrast my-manifest.yaml

Note on Developing

If you are running dep to introduce a new scheme from a custom Kubernetes resource type, we are aware of at least one upstream repository hosted in BitBucket and expecting mercurial to access. Without it installed, dep will likely hang and not provide any clues even under verbose mode.

On macOS, you can install it with Homebrew:

brew install mercurial

[1] Why does it take so long to build/install? Why is the binary 150MB?

Kubernetes applies defaults to each created resource. The average manifest doesn't contain every possible option, so a lot of these defaults will show up as deltas. kontrast gets around this by applying scheme.Scheme.SetDefaults(obj), which essentially does the same operation as the Kubernetes apiserver when creating an object. Unfortunately this only works if the full apiserver code is imported (i.e. k8s.io/kubernetes/pkg/master which imports https://github.com/kubernetes/kubernetes/blob/master/pkg/master/import_known_versions.go)

kontrast's People

Contributors

bandesz avatar boffbowsh avatar dhwthompson avatar evnsio avatar icydoge2 avatar jackkleeman avatar jaseemabid avatar milesbxf avatar suhailpatel 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.