Giter Club home page Giter Club logo

kubenix's Introduction

Kubenix 2.0 is in development, with much more features, better tests and better docs. It will be merged into master in following weeks. For progress and features take a look here: xtruder#9

KubeNix

Kubernetes resource builder written in nix

About

KubeNix is a kubernetes resource builder, that uses nix module system for definition of kubernetes resources and nix build system for building complex kubernetes resources very easily.

Features

  • Loading and override of kubernetes json and yaml files
  • Support for complex merging of kubernetes resource definitions
  • No more helm stupid yaml templating, nix is a way better templating language
  • Support for all kubernetes versions

License

MIT © Jaka Hudoklin

kubenix's People

Contributors

mgh520 avatar offlinehacker avatar zimbatm avatar

Watchers

 avatar

kubenix's Issues

add helper to fetch chart from github

{
  kubenix,
  pkgs,
  lib,
  stdenv,
  stdenvNoCC
}:
let
  cleanName = name: lib.replaceStrings ["/"] ["-"] name;
in
{
  chart ? "", 
  path, 
  url, 
  sha256,
  version ? null
}: stdenvNoCC.mkDerivation {
  inherit version;

  name = "${cleanName chart}-${if version == null then "dev" else version}";

  src = pkgs.fetchgit {
    inherit url;
    inherit sha256;
  };

  buildCommand = ''
    mkdir -p $out
    cp -av $src/${path}/* $out
  '';
  outputHashMode = "recursive";
  outputHashAlgo = "sha256";
  outputHash = sha256;
}

reason: kubenix when attaching instance for helm automatically is doing chart2json so to be able to grab chart from github and point to particular folder such helper would be used.

Example

 brigade-bitbucket = chart-from-git {
    url = https://github.com/damianbaar/brigade-bitbucket-gateway;
    sha256 = "00vk1ywnkxihp3gqfkn7j641lgx353dkl7gbfsbkanc8rzdjbs5j";
    path = "charts/brigade-bitbucket-gateway";
  };

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.