updated repo

feature/repo_transfer
Karolis Rusenas 2017-11-01 18:25:28 +00:00
parent b08b8b9af3
commit 2a361020f6
68 changed files with 195 additions and 195 deletions

View File

@ -12,7 +12,7 @@ jobs:
#### expecting it in the form of
#### /go/src/github.com/circleci/go-tool
#### /go/src/bitbucket.org/circleci/go-tool
working_directory: /go/src/github.com/rusenask/keel
working_directory: /go/src/github.com/keel-hq/keel
steps:
- checkout

View File

@ -1,11 +1,11 @@
FROM golang:1.8.3
COPY . /go/src/github.com/rusenask/keel
WORKDIR /go/src/github.com/rusenask/keel
COPY . /go/src/github.com/keel-hq/keel
WORKDIR /go/src/github.com/keel-hq/keel
RUN make build
FROM alpine:latest
RUN apk --no-cache add ca-certificates
COPY --from=0 /go/src/github.com/rusenask/keel/keel /bin/keel
COPY --from=0 /go/src/github.com/keel-hq/keel/keel /bin/keel
ENTRYPOINT ["/bin/keel"]
EXPOSE 9300

View File

@ -2,9 +2,9 @@ JOBDATE ?= $(shell date -u +%Y-%m-%dT%H%M%SZ)
GIT_REVISION = $(shell git rev-parse --short HEAD)
VERSION ?= $(shell git describe --tags --abbrev=0)
LDFLAGS += -X github.com/rusenask/keel/version.Version=$(VERSION)
LDFLAGS += -X github.com/rusenask/keel/version.Revision=$(GIT_REVISION)
LDFLAGS += -X github.com/rusenask/keel/version.BuildDate=$(JOBDATE)
LDFLAGS += -X github.com/keel-hq/keel/version.Version=$(VERSION)
LDFLAGS += -X github.com/keel-hq/keel/version.Revision=$(GIT_REVISION)
LDFLAGS += -X github.com/keel-hq/keel/version.BuildDate=$(JOBDATE)
.PHONY: release

View File

@ -7,9 +7,9 @@ import (
"sync/atomic"
"time"
"github.com/rusenask/keel/cache"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/codecs"
"github.com/keel-hq/keel/cache"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/codecs"
log "github.com/Sirupsen/logrus"
)

View File

@ -5,9 +5,9 @@ import (
"testing"
"time"
"github.com/rusenask/keel/cache/memory"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/codecs"
"github.com/keel-hq/keel/cache/memory"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/codecs"
)
func TestCreateApproval(t *testing.T) {

View File

@ -6,8 +6,8 @@ import (
"strings"
"github.com/nlopes/slack"
"github.com/rusenask/keel/bot/formatter"
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/bot/formatter"
"github.com/keel-hq/keel/types"
log "github.com/Sirupsen/logrus"
)

View File

@ -11,9 +11,9 @@ import (
"github.com/nlopes/slack"
"github.com/rusenask/keel/approvals"
"github.com/rusenask/keel/provider/kubernetes"
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/approvals"
"github.com/keel-hq/keel/provider/kubernetes"
"github.com/keel-hq/keel/types"
log "github.com/Sirupsen/logrus"
)

View File

@ -8,16 +8,16 @@ import (
"github.com/nlopes/slack"
"github.com/rusenask/keel/approvals"
"github.com/rusenask/keel/cache/memory"
"github.com/rusenask/keel/constants"
"github.com/rusenask/keel/extension/approval"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/codecs"
"github.com/keel-hq/keel/approvals"
"github.com/keel-hq/keel/cache/memory"
"github.com/keel-hq/keel/constants"
"github.com/keel-hq/keel/extension/approval"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/codecs"
"testing"
testutil "github.com/rusenask/keel/util/testing"
testutil "github.com/keel-hq/keel/util/testing"
)
type fakeProvider struct {

View File

@ -4,7 +4,7 @@ import (
"bytes"
"fmt"
"github.com/rusenask/keel/bot/formatter"
"github.com/keel-hq/keel/bot/formatter"
"k8s.io/client-go/pkg/apis/extensions/v1beta1"

View File

@ -4,7 +4,7 @@ import (
"fmt"
"strconv"
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/types"
)
// Formatter headers

View File

@ -8,7 +8,7 @@ import (
"text/tabwriter"
"text/template"
"github.com/rusenask/keel/util/templates"
"github.com/keel-hq/keel/util/templates"
)
// Format keys used to specify certain kinds of output formats

2
cache/kubekv/kv.go vendored
View File

@ -1,7 +1,7 @@
package kubekv
import (
"github.com/rusenask/keel/cache"
"github.com/keel-hq/keel/cache"
"github.com/rusenask/k8s-kv/kv"
)

View File

@ -5,7 +5,7 @@ import (
"strings"
"time"
"github.com/rusenask/keel/cache"
"github.com/keel-hq/keel/cache"
)
type requestType int

View File

@ -9,7 +9,7 @@ keywords:
- continuous deployment
home: https://keel.sh
sources:
- https://github.com/rusenask/keel
- https://github.com/keel-hq/keel
maintainers:
- name: Rimas Mocevicius
email: rmocius@gmail.com

View File

@ -3,7 +3,7 @@ package approval
import (
"sync"
"github.com/rusenask/keel/approvals"
"github.com/keel-hq/keel/approvals"
log "github.com/Sirupsen/logrus"
)

View File

@ -6,9 +6,9 @@ import (
"sync"
"time"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/stopper"
"github.com/rusenask/keel/util/timeutil"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/stopper"
"github.com/keel-hq/keel/util/timeutil"
log "github.com/Sirupsen/logrus"
)

View File

@ -5,7 +5,7 @@ import (
"fmt"
"testing"
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/types"
)
type fakeSender struct {

View File

@ -9,9 +9,9 @@ import (
"github.com/nlopes/slack"
"github.com/rusenask/keel/constants"
"github.com/rusenask/keel/extension/notification"
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/constants"
"github.com/keel-hq/keel/extension/notification"
"github.com/keel-hq/keel/types"
log "github.com/Sirupsen/logrus"
)

View File

@ -9,9 +9,9 @@ import (
"os"
"time"
"github.com/rusenask/keel/constants"
"github.com/rusenask/keel/extension/notification"
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/constants"
"github.com/keel-hq/keel/extension/notification"
"github.com/keel-hq/keel/types"
log "github.com/Sirupsen/logrus"
)

View File

@ -8,7 +8,7 @@ import (
"testing"
"time"
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/types"
)
func TestWebhookRequest(t *testing.T) {

View File

@ -1,4 +1,4 @@
package: github.com/rusenask/keel
package: github.com/keel-hq/keel
import:
# - package: cloud.google.com/go
# version: ^0.10.0

36
main.go
View File

@ -9,27 +9,27 @@ import (
netContext "golang.org/x/net/context"
"github.com/rusenask/keel/approvals"
"github.com/rusenask/keel/bot"
"github.com/rusenask/keel/cache/kubekv"
"github.com/keel-hq/keel/approvals"
"github.com/keel-hq/keel/bot"
"github.com/keel-hq/keel/cache/kubekv"
"github.com/rusenask/keel/constants"
"github.com/rusenask/keel/extension/notification"
"github.com/rusenask/keel/provider"
"github.com/rusenask/keel/provider/helm"
"github.com/rusenask/keel/provider/kubernetes"
"github.com/rusenask/keel/registry"
"github.com/rusenask/keel/secrets"
"github.com/rusenask/keel/trigger/http"
"github.com/rusenask/keel/trigger/poll"
"github.com/rusenask/keel/trigger/pubsub"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/codecs"
"github.com/rusenask/keel/version"
"github.com/keel-hq/keel/constants"
"github.com/keel-hq/keel/extension/notification"
"github.com/keel-hq/keel/provider"
"github.com/keel-hq/keel/provider/helm"
"github.com/keel-hq/keel/provider/kubernetes"
"github.com/keel-hq/keel/registry"
"github.com/keel-hq/keel/secrets"
"github.com/keel-hq/keel/trigger/http"
"github.com/keel-hq/keel/trigger/poll"
"github.com/keel-hq/keel/trigger/pubsub"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/codecs"
"github.com/keel-hq/keel/version"
// extensions
_ "github.com/rusenask/keel/extension/notification/slack"
_ "github.com/rusenask/keel/extension/notification/webhook"
_ "github.com/keel-hq/keel/extension/notification/slack"
_ "github.com/keel-hq/keel/extension/notification/webhook"
log "github.com/Sirupsen/logrus"
)

View File

@ -4,8 +4,8 @@ import (
"fmt"
"time"
"github.com/rusenask/keel/cache"
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/cache"
"github.com/keel-hq/keel/types"
log "github.com/Sirupsen/logrus"
)

View File

@ -4,8 +4,8 @@ import (
"errors"
"fmt"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/image"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/image"
"k8s.io/helm/pkg/chartutil"

View File

@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/image"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/image"
"k8s.io/helm/pkg/chartutil"
)

View File

@ -5,14 +5,14 @@ import (
"strings"
"time"
"github.com/rusenask/keel/approvals"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/image"
"github.com/rusenask/keel/util/version"
"github.com/keel-hq/keel/approvals"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/image"
"github.com/keel-hq/keel/util/version"
hapi_chart "k8s.io/helm/pkg/proto/hapi/chart"
"github.com/rusenask/keel/extension/notification"
"github.com/keel-hq/keel/extension/notification"
log "github.com/Sirupsen/logrus"
"github.com/ghodss/yaml"

View File

@ -6,11 +6,11 @@ import (
"time"
"github.com/ghodss/yaml"
"github.com/rusenask/keel/approvals"
"github.com/rusenask/keel/cache/memory"
"github.com/rusenask/keel/extension/notification"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/codecs"
"github.com/keel-hq/keel/approvals"
"github.com/keel-hq/keel/cache/memory"
"github.com/keel-hq/keel/extension/notification"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/codecs"
"k8s.io/helm/pkg/chartutil"
"k8s.io/helm/pkg/helm"
"k8s.io/helm/pkg/proto/hapi/chart"

View File

@ -1,8 +1,8 @@
package helm
import (
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/image"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/image"
hapi_chart "k8s.io/helm/pkg/proto/hapi/chart"

View File

@ -4,7 +4,7 @@ import (
"reflect"
"testing"
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/types"
hapi_chart "k8s.io/helm/pkg/proto/hapi/chart"
)

View File

@ -1,9 +1,9 @@
package helm
import (
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/image"
"github.com/rusenask/keel/util/version"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/image"
"github.com/keel-hq/keel/util/version"
hapi_chart "k8s.io/helm/pkg/proto/hapi/chart"

View File

@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/version"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/version"
hapi_chart "k8s.io/helm/pkg/proto/hapi/chart"
)

View File

@ -5,8 +5,8 @@ import (
"strconv"
"time"
"github.com/rusenask/keel/cache"
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/cache"
"github.com/keel-hq/keel/types"
log "github.com/Sirupsen/logrus"
)

View File

@ -4,7 +4,7 @@ import (
"testing"
"time"
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/types"
meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/pkg/api/v1"

View File

@ -11,12 +11,12 @@ import (
"k8s.io/client-go/pkg/api/v1"
"k8s.io/client-go/pkg/apis/extensions/v1beta1"
"github.com/rusenask/keel/approvals"
"github.com/rusenask/keel/extension/notification"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/image"
"github.com/rusenask/keel/util/policies"
"github.com/rusenask/keel/util/version"
"github.com/keel-hq/keel/approvals"
"github.com/keel-hq/keel/extension/notification"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/image"
"github.com/keel-hq/keel/util/policies"
"github.com/keel-hq/keel/util/version"
log "github.com/Sirupsen/logrus"
)

View File

@ -4,11 +4,11 @@ import (
"testing"
"time"
"github.com/rusenask/keel/approvals"
"github.com/rusenask/keel/cache/memory"
"github.com/rusenask/keel/extension/notification"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/codecs"
"github.com/keel-hq/keel/approvals"
"github.com/keel-hq/keel/cache/memory"
"github.com/keel-hq/keel/extension/notification"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/codecs"
meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
core_v1 "k8s.io/client-go/kubernetes/typed/core/v1"

View File

@ -5,8 +5,8 @@ import (
"k8s.io/client-go/pkg/apis/extensions/v1beta1"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/image"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/image"
log "github.com/Sirupsen/logrus"
)

View File

@ -4,9 +4,9 @@ import (
"reflect"
"testing"
"github.com/rusenask/keel/approvals"
"github.com/rusenask/keel/extension/notification"
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/approvals"
"github.com/keel-hq/keel/extension/notification"
"github.com/keel-hq/keel/types"
meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/pkg/api/v1"
"k8s.io/client-go/pkg/apis/extensions/v1beta1"

View File

@ -6,10 +6,10 @@ import (
"k8s.io/client-go/pkg/api/v1"
"k8s.io/client-go/pkg/apis/extensions/v1beta1"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/image"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/image"
"github.com/rusenask/keel/util/version"
"github.com/keel-hq/keel/util/version"
log "github.com/Sirupsen/logrus"
)

View File

@ -4,10 +4,10 @@ import (
"reflect"
"testing"
"github.com/rusenask/keel/approvals"
"github.com/rusenask/keel/extension/notification"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/version"
"github.com/keel-hq/keel/approvals"
"github.com/keel-hq/keel/extension/notification"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/version"
meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"

View File

@ -3,8 +3,8 @@ package provider
import (
"context"
"github.com/rusenask/keel/approvals"
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/approvals"
"github.com/keel-hq/keel/types"
log "github.com/Sirupsen/logrus"
)

View File

@ -1,4 +1,4 @@
[![CircleCI](https://circleci.com/gh/rusenask/keel/tree/master.svg?style=shield&circle-token=0239846a42cfa188de531058b9a2116a4b8600d8)](https://hub.docker.com/r/karolisr/keel/) [![Go Report Card](https://goreportcard.com/badge/github.com/rusenask/keel)](https://goreportcard.com/report/github.com/rusenask/keel) [![Pulls](https://img.shields.io/docker/pulls/karolisr/keel.svg)](https://img.shields.io/docker/pulls/karolisr/keel.svg)
[![CircleCI](https://circleci.com/gh/rusenask/keel/tree/master.svg?style=shield&circle-token=0239846a42cfa188de531058b9a2116a4b8600d8)](https://hub.docker.com/r/karolisr/keel/) [![Go Report Card](https://goreportcard.com/badge/github.com/keel-hq/keel)](https://goreportcard.com/report/github.com/keel-hq/keel) [![Pulls](https://img.shields.io/docker/pulls/karolisr/keel.svg)](https://img.shields.io/docker/pulls/karolisr/keel.svg)
# Keel - automated Kubernetes deployments for the rest of us
@ -40,7 +40,7 @@ Documentation is viewable on the Keel Website:
### Contributing
Before starting to work on some big or medium features - raise an issue [here](https://github.com/rusenask/keel/issues) so we can coordinate our efforts.
Before starting to work on some big or medium features - raise an issue [here](https://github.com/keel-hq/keel/issues) so we can coordinate our efforts.
### Developing Keel
@ -48,4 +48,4 @@ If you wish to work on Keel itself, you will need Go 1.8+ installed. Make sure y
### Roadmap
Project [roadmap available here](https://github.com/rusenask/keel/wiki/Roadmap).
Project [roadmap available here](https://github.com/keel-hq/keel/wiki/Roadmap).

View File

@ -1,7 +1,7 @@
package registry
import (
"github.com/rusenask/keel/constants"
"github.com/keel-hq/keel/constants"
"fmt"
"os"

View File

@ -8,9 +8,9 @@ import (
"net/url"
"strings"
"github.com/rusenask/keel/provider/helm"
"github.com/rusenask/keel/provider/kubernetes"
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/provider/helm"
"github.com/keel-hq/keel/provider/kubernetes"
"github.com/keel-hq/keel/types"
"k8s.io/client-go/pkg/api/v1"

View File

@ -5,9 +5,9 @@ import (
"fmt"
"testing"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/image"
testutil "github.com/rusenask/keel/util/testing"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/image"
testutil "github.com/keel-hq/keel/util/testing"
"k8s.io/client-go/pkg/api/v1"
)

View File

@ -5,7 +5,7 @@ import (
"fmt"
"net/http"
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/types"
)
func (s *TriggerServer) approvalsHandler(resp http.ResponseWriter, req *http.Request) {

View File

@ -7,11 +7,11 @@ import (
"testing"
"time"
"github.com/rusenask/keel/approvals"
"github.com/rusenask/keel/cache/memory"
"github.com/rusenask/keel/provider"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/codecs"
"github.com/keel-hq/keel/approvals"
"github.com/keel-hq/keel/cache/memory"
"github.com/keel-hq/keel/provider"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/codecs"
)
func TestListApprovals(t *testing.T) {

View File

@ -6,7 +6,7 @@ import (
"net/http"
"time"
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/types"
log "github.com/Sirupsen/logrus"
)
@ -24,7 +24,7 @@ import (
// "status": "Active",
// "description": "",
// "is_trusted": false,
// "full_description": "# Keel - automated Kubernetes deployments for the rest of us\n\nLightweight (11MB image size, uses 12MB RAM when running) [Kubernetes](https://kubernetes.io/) controller for automating image updates for deployments. Keel uses [semantic versioning](http://semver.org/) to determine whether deployment needs an update or not. Currently keel has several types of triggers:\n\n* Google's pubsub integration with [Google Container Registry](https://cloud.google.com/container-registry/)\n* Webhooks\n\nUpcomming integrations:\n\n* DockerHub webhooks\n\n## Why?\n\nI have built Keel since I have a relatively small Golang project which doesn't use a lot of memory and introducing an antique, heavy weight CI solution with lots dependencies seemed like a terrible idea. \n\nYou should consider using Keel:\n* If you are not Netflix, Google, Amazon, {insert big company here} - you might not want to run something like Spinnaker that has heavy dependencies such as \"JDK8, Redis, Cassandra, Packer\". You probably need something lightweight, stateless, that you don't have to think about.\n* If you are not a bank that uses RedHat's OpenShift which embedded Jenkins that probably already does what Keel is doing.\n* You want automated Kubernetes deployment updates.\n\nHere is a list of Keel dependencies:\n\n1.\n\nYes, none.\n\n## Getting started\n\nKeel operates as a background service, you don't need to interact with it directly, just add labels to your deployments. \n\n### Example deployment\n\nHere is an example deployment which specifies that keel should always update image if a new version is available:\n\n```\n---\napiVersion: extensions/v1beta1\nkind: Deployment\nmetadata: \n name: wd\n namespace: default\n labels: \n name: \"wd\"\n keel.observer/policy: all\nspec:\n replicas: 1\n template:\n metadata:\n name: wd\n labels:\n app: wd \n\n spec:\n containers: \n - image: karolisr/webhook-demo:0.0.2\n imagePullPolicy: Always \n name: wd\n command: [\"/bin/webhook-demo\"]\n ports:\n - containerPort: 8090 \n livenessProbe:\n httpGet:\n path: /healthz\n port: 8090\n initialDelaySeconds: 30\n timeoutSeconds: 10\n securityContext:\n privileged: true \n```\n\nAvailable policy options:\n\n* all - update whenever there is a version bump\n* major - update major versions\n* minor - update only minor versions (ignores major)\n* patch - update only patch versions (ignores minor and major versions)\n\n## Deployment\n\n### Step 1: GCE Kubernetes + GCR pubsub configuration\n\nSince access to pubsub is required in GCE Kubernetes - your cluster node pools need to have permissions. If you are creating new cluster - just enable pubsub from the start. If you have existing cluster - currently the only way is create new node-pool through the gcloud CLI (more info in the [docs](https://cloud.google.com/sdk/gcloud/reference/container/node-pools/create?hl=en_US&_ga=1.2114551.650086469.1487625651):\n\n```\ngcloud container node-pools create new-pool --cluster CLUSTER_NAME --scopes https://www.googleapis.com/auth/pubsub\n``` \n\n### Step 2: Kubernetes\n\nSince keel will be updating deployments, let's create a new [service account](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/) in `kube-system` namespace:\n\n```\nkubectl create serviceaccount keel --namespace=kube-system\n```\n\nNow, edit [deployment file](https://github.com/rusenask/keel/blob/master/hack/deployment.sample.yml) that is supplied with the repo (basically point to the newest keel release and set your PROJECT_ID to the actual project ID that you have):\n\n```\nkubectl create -f hack/deployment.yml\n```\n\nOnce Keel is deployed in your Kubernetes cluster - it occasionally scans your current deployments and looks for ones that have label _keel.observer/policy_. It then checks whether appropriate subscriptions and topics are set for GCR registries, if not - auto-creates them.\n\n",
// "full_description": "# Keel - automated Kubernetes deployments for the rest of us\n\nLightweight (11MB image size, uses 12MB RAM when running) [Kubernetes](https://kubernetes.io/) controller for automating image updates for deployments. Keel uses [semantic versioning](http://semver.org/) to determine whether deployment needs an update or not. Currently keel has several types of triggers:\n\n* Google's pubsub integration with [Google Container Registry](https://cloud.google.com/container-registry/)\n* Webhooks\n\nUpcomming integrations:\n\n* DockerHub webhooks\n\n## Why?\n\nI have built Keel since I have a relatively small Golang project which doesn't use a lot of memory and introducing an antique, heavy weight CI solution with lots dependencies seemed like a terrible idea. \n\nYou should consider using Keel:\n* If you are not Netflix, Google, Amazon, {insert big company here} - you might not want to run something like Spinnaker that has heavy dependencies such as \"JDK8, Redis, Cassandra, Packer\". You probably need something lightweight, stateless, that you don't have to think about.\n* If you are not a bank that uses RedHat's OpenShift which embedded Jenkins that probably already does what Keel is doing.\n* You want automated Kubernetes deployment updates.\n\nHere is a list of Keel dependencies:\n\n1.\n\nYes, none.\n\n## Getting started\n\nKeel operates as a background service, you don't need to interact with it directly, just add labels to your deployments. \n\n### Example deployment\n\nHere is an example deployment which specifies that keel should always update image if a new version is available:\n\n```\n---\napiVersion: extensions/v1beta1\nkind: Deployment\nmetadata: \n name: wd\n namespace: default\n labels: \n name: \"wd\"\n keel.observer/policy: all\nspec:\n replicas: 1\n template:\n metadata:\n name: wd\n labels:\n app: wd \n\n spec:\n containers: \n - image: karolisr/webhook-demo:0.0.2\n imagePullPolicy: Always \n name: wd\n command: [\"/bin/webhook-demo\"]\n ports:\n - containerPort: 8090 \n livenessProbe:\n httpGet:\n path: /healthz\n port: 8090\n initialDelaySeconds: 30\n timeoutSeconds: 10\n securityContext:\n privileged: true \n```\n\nAvailable policy options:\n\n* all - update whenever there is a version bump\n* major - update major versions\n* minor - update only minor versions (ignores major)\n* patch - update only patch versions (ignores minor and major versions)\n\n## Deployment\n\n### Step 1: GCE Kubernetes + GCR pubsub configuration\n\nSince access to pubsub is required in GCE Kubernetes - your cluster node pools need to have permissions. If you are creating new cluster - just enable pubsub from the start. If you have existing cluster - currently the only way is create new node-pool through the gcloud CLI (more info in the [docs](https://cloud.google.com/sdk/gcloud/reference/container/node-pools/create?hl=en_US&_ga=1.2114551.650086469.1487625651):\n\n```\ngcloud container node-pools create new-pool --cluster CLUSTER_NAME --scopes https://www.googleapis.com/auth/pubsub\n``` \n\n### Step 2: Kubernetes\n\nSince keel will be updating deployments, let's create a new [service account](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/) in `kube-system` namespace:\n\n```\nkubectl create serviceaccount keel --namespace=kube-system\n```\n\nNow, edit [deployment file](https://github.com/keel-hq/keel/blob/master/hack/deployment.sample.yml) that is supplied with the repo (basically point to the newest keel release and set your PROJECT_ID to the actual project ID that you have):\n\n```\nkubectl create -f hack/deployment.yml\n```\n\nOnce Keel is deployed in your Kubernetes cluster - it occasionally scans your current deployments and looks for ones that have label _keel.observer/policy_. It then checks whether appropriate subscriptions and topics are set for GCR registries, if not - auto-creates them.\n\n",
// "repo_url": "https://hub.docker.com/r/karolisr/keel",
// "owner": "karolisr",
// "is_official": false,
@ -34,7 +34,7 @@ import (
// "star_count": 0,
// "comment_count": 0,
// "date_created": 1497032538,
// "dockerfile": "FROM golang:1.8.1-alpine\nCOPY . /go/src/github.com/rusenask/keel\nWORKDIR /go/src/github.com/rusenask/keel\nRUN apk add --no-cache git && go get\nRUN CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags -'w' -o keel .\n\nFROM alpine:latest\nRUN apk --no-cache add ca-certificates\nCOPY --from=0 /go/src/github.com/rusenask/keel/keel /bin/keel\nENTRYPOINT [\"/bin/keel\"]\n\nEXPOSE 9300",
// "dockerfile": "FROM golang:1.8.1-alpine\nCOPY . /go/src/github.com/keel-hq/keel\nWORKDIR /go/src/github.com/keel-hq/keel\nRUN apk add --no-cache git && go get\nRUN CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags -'w' -o keel .\n\nFROM alpine:latest\nRUN apk --no-cache add ca-certificates\nCOPY --from=0 /go/src/github.com/keel-hq/keel/keel /bin/keel\nENTRYPOINT [\"/bin/keel\"]\n\nEXPOSE 9300",
// "repo_name": "karolisr/keel"
// }
// }

View File

@ -5,10 +5,10 @@ import (
"net/http"
"time"
"github.com/rusenask/keel/approvals"
"github.com/rusenask/keel/cache/memory"
"github.com/rusenask/keel/provider"
"github.com/rusenask/keel/util/codecs"
"github.com/keel-hq/keel/approvals"
"github.com/keel-hq/keel/cache/memory"
"github.com/keel-hq/keel/provider"
"github.com/keel-hq/keel/util/codecs"
"net/http/httptest"
"testing"
@ -36,7 +36,7 @@ var fakeRequest = `{
"star_count": 0,
"comment_count": 0,
"date_created": 1497032538,
"dockerfile": "FROM golang:1.8.1-alpine\nCOPY . /go/src/github.com/rusenask/keel\nWORKDIR /go/src/github.com/rusenask/keel\nRUN apk add --no-cache git && go get\nRUN CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags -'w' -o keel .\n\nFROM alpine:latest\nRUN apk --no-cache add ca-certificates\nCOPY --from=0 /go/src/github.com/rusenask/keel/keel /bin/keel\nENTRYPOINT [\"/bin/keel\"]\n\nEXPOSE 9300",
"dockerfile": "FROM golang:1.8.1-alpine\nCOPY . /go/src/github.com/keel-hq/keel\nWORKDIR /go/src/github.com/keel-hq/keel\nRUN apk add --no-cache git && go get\nRUN CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags -'w' -o keel .\n\nFROM alpine:latest\nRUN apk --no-cache add ca-certificates\nCOPY --from=0 /go/src/github.com/keel-hq/keel/keel /bin/keel\nENTRYPOINT [\"/bin/keel\"]\n\nEXPOSE 9300",
"repo_name": "karolisr/keel"
}
}`

View File

@ -10,10 +10,10 @@ import (
"github.com/gorilla/mux"
"github.com/urfave/negroni"
"github.com/rusenask/keel/approvals"
"github.com/rusenask/keel/provider"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/version"
"github.com/keel-hq/keel/approvals"
"github.com/keel-hq/keel/provider"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/version"
log "github.com/Sirupsen/logrus"
)

View File

@ -6,7 +6,7 @@ import (
"net/http"
"time"
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/types"
log "github.com/Sirupsen/logrus"
)

View File

@ -5,11 +5,11 @@ import (
"net/http"
"time"
"github.com/rusenask/keel/approvals"
"github.com/rusenask/keel/cache/memory"
"github.com/rusenask/keel/provider"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/codecs"
"github.com/keel-hq/keel/approvals"
"github.com/keel-hq/keel/cache/memory"
"github.com/keel-hq/keel/provider"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/codecs"
"net/http/httptest"
"testing"

View File

@ -6,7 +6,7 @@ import (
"net/http"
"time"
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/types"
log "github.com/Sirupsen/logrus"
)

View File

@ -5,10 +5,10 @@ import (
"net/http"
"time"
"github.com/rusenask/keel/approvals"
"github.com/rusenask/keel/cache/memory"
"github.com/rusenask/keel/provider"
"github.com/rusenask/keel/util/codecs"
"github.com/keel-hq/keel/approvals"
"github.com/keel-hq/keel/cache/memory"
"github.com/keel-hq/keel/provider"
"github.com/keel-hq/keel/util/codecs"
"net/http/httptest"
"testing"

View File

@ -5,9 +5,9 @@ import (
"sync"
"time"
"github.com/rusenask/keel/provider"
"github.com/rusenask/keel/secrets"
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/provider"
"github.com/keel-hq/keel/secrets"
"github.com/keel-hq/keel/types"
log "github.com/Sirupsen/logrus"
)

View File

@ -4,12 +4,12 @@ import (
"context"
"time"
"github.com/rusenask/keel/approvals"
"github.com/rusenask/keel/cache/memory"
"github.com/rusenask/keel/provider"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/codecs"
"github.com/rusenask/keel/util/image"
"github.com/keel-hq/keel/approvals"
"github.com/keel-hq/keel/cache/memory"
"github.com/keel-hq/keel/provider"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/codecs"
"github.com/keel-hq/keel/util/image"
"testing"
)

View File

@ -5,11 +5,11 @@ import (
"fmt"
"github.com/rusenask/cron"
"github.com/rusenask/keel/provider"
"github.com/rusenask/keel/registry"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/image"
"github.com/rusenask/keel/util/version"
"github.com/keel-hq/keel/provider"
"github.com/keel-hq/keel/registry"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/image"
"github.com/keel-hq/keel/util/version"
log "github.com/Sirupsen/logrus"
)

View File

@ -4,13 +4,13 @@ import (
"testing"
"time"
"github.com/rusenask/keel/approvals"
"github.com/rusenask/keel/cache/memory"
"github.com/rusenask/keel/provider"
"github.com/rusenask/keel/registry"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/codecs"
"github.com/rusenask/keel/util/image"
"github.com/keel-hq/keel/approvals"
"github.com/keel-hq/keel/cache/memory"
"github.com/keel-hq/keel/provider"
"github.com/keel-hq/keel/registry"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/codecs"
"github.com/keel-hq/keel/util/image"
)
// ======== fake registry client for testing =======

View File

@ -6,7 +6,7 @@ import (
"golang.org/x/net/context"
"github.com/rusenask/keel/provider"
"github.com/keel-hq/keel/provider"
log "github.com/Sirupsen/logrus"
)

View File

@ -6,12 +6,12 @@ import (
"golang.org/x/net/context"
"github.com/rusenask/keel/approvals"
"github.com/rusenask/keel/cache/memory"
"github.com/rusenask/keel/provider"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/codecs"
"github.com/rusenask/keel/util/image"
"github.com/keel-hq/keel/approvals"
"github.com/keel-hq/keel/cache/memory"
"github.com/keel-hq/keel/provider"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/codecs"
"github.com/keel-hq/keel/util/image"
"testing"
)

View File

@ -12,9 +12,9 @@ import (
"google.golang.org/api/option"
"google.golang.org/grpc"
"github.com/rusenask/keel/provider"
"github.com/rusenask/keel/types"
"github.com/rusenask/keel/util/image"
"github.com/keel-hq/keel/provider"
"github.com/keel-hq/keel/types"
"github.com/keel-hq/keel/util/image"
log "github.com/Sirupsen/logrus"
)

View File

@ -7,10 +7,10 @@ import (
"cloud.google.com/go/pubsub"
"golang.org/x/net/context"
"github.com/rusenask/keel/approvals"
"github.com/rusenask/keel/cache/memory"
"github.com/rusenask/keel/provider"
"github.com/rusenask/keel/util/codecs"
"github.com/keel-hq/keel/approvals"
"github.com/keel-hq/keel/cache/memory"
"github.com/keel-hq/keel/provider"
"github.com/keel-hq/keel/util/codecs"
"testing"
)

View File

@ -5,7 +5,7 @@ import (
"net/http/httptest"
"testing"
"github.com/rusenask/keel/util/image"
"github.com/keel-hq/keel/util/image"
)
func unsafeImageRef(img string) *image.Reference {

View File

@ -3,7 +3,7 @@ package types
import (
"fmt"
"github.com/rusenask/keel/util/image"
"github.com/keel-hq/keel/util/image"
)
// Credentials - registry credentials

View File

@ -1,7 +1,7 @@
package policies
import (
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/types"
)
// GetPolicy - gets policy

View File

@ -4,7 +4,7 @@ import (
"reflect"
"testing"
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/types"
)
func TestGetPolicy(t *testing.T) {

View File

@ -7,7 +7,7 @@ import (
"strings"
"github.com/Masterminds/semver"
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/types"
log "github.com/Sirupsen/logrus"
)

View File

@ -4,7 +4,7 @@ import (
"reflect"
"testing"
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/types"
)
func TestGetVersionFromImageName(t *testing.T) {

View File

@ -3,7 +3,7 @@ package version
import (
"runtime"
"github.com/rusenask/keel/types"
"github.com/keel-hq/keel/types"
)
// Generic tool info