Skip to content
/ flux Public
forked from fluxcd/flux

A tool for turning container images into running Kubernetes services

License

Notifications You must be signed in to change notification settings

seqvence/flux

 
 

Repository files navigation

Flux

Flux is a tool for deploying container images to Kubernetes clusters.

Installing

For the minute you will have to build or use the container images weaveworks/flux{d,svc}. The directory deploy/ has example Kubernetes configuration and instructions for using it.

Developing

Build

Ensure the repository is checked out into $GOPATH/src/github.com/weaveworks/flux. Then, from the root,

$ gvt restore
# .. time passes ..
$ make

This makes Docker images, and installs binaries to $GOPATH/bin.

Test

$ go test ./...

Note: In order to run the NATS message bus tests (the message bus that connects fluxctl -> fluxsvc -> nats -> fluxsvc -> fluxd) you need to have a running gnatsd instance.

Dependency management

We use gvt to manage vendored dependencies. Note that we do not check in the vendor folder.

To get all the dependencies put in the vendor/ folder, use

$ go get -u github.com/FiloSottile/gvt # install gvt if you don't have it
$ gvt restore

To add dependencies, use

$ gvt fetch <dependency>

gvt does not discover dependencies for you, but it will add them recursively; so, it should be sufficient to just add packages you import.

Releasing

See the release docs for instructions about how to release a version of flux.

Contribution

Flux follows a typical PR workflow. All contributions should be made as PRs that satisfy the guidelines below.

Guidelines

  • All code must abide Go Code Review Comments
  • Names should abide What's in a name
  • Code must build on both Linux and Darwin, via plain go build
  • Code should have appropriate test coverage, invoked via plain go test

In addition, several mechanical checks are enforced. See the lint script for details.

About

A tool for turning container images into running Kubernetes services

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.1%
  • Other 1.9%