diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index d1a0424..d60a141 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -6,4 +6,4 @@ # These owners will be the default owners for everything in # the repo. Unless a later match takes precedence, # review when someone opens a pull request. -* @orkaproj/authorized-approvers \ No newline at end of file +* @keikoproj/authorized-approvers \ No newline at end of file diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index aa4351d..489ce09 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -1,6 +1,6 @@ # How to contribute -1. Fork it () +1. Fork it () 2. Open an issue and discuss the feature / bug 3. Create your feature branch (`git checkout -b feature/fooBar`) 4. Commit your changes (`git commit -am 'Add some fooBar'`) diff --git a/.github/DEVELOPER.md b/.github/DEVELOPER.md index dfc2896..96ea817 100644 --- a/.github/DEVELOPER.md +++ b/.github/DEVELOPER.md @@ -34,9 +34,9 @@ Using the `Makefile` you can run basic unit tests. ```bash $ make test go test -v ./... -? github.com/orkaproj/governor/cmd/governor [no test files] -? github.com/orkaproj/governor/cmd/governor/app [no test files] -? github.com/orkaproj/governor/pkg/reaper/common [no test files] +? github.com/keikoproj/governor/cmd/governor [no test files] +? github.com/keikoproj/governor/cmd/governor/app [no test files] +? github.com/keikoproj/governor/pkg/reaper/common [no test files] === RUN TestGetUnreadyNodesPositive --- PASS: TestGetUnreadyNodesPositive (0.00s) === RUN TestGetUnreadyNodesNegative @@ -83,7 +83,7 @@ go test -v ./... --- PASS: TestProviderIDParser (0.00s) PASS coverage: 60.3% of statements -ok github.com/orkaproj/governor/pkg/reaper/nodereaper 4.396s coverage: 60.3% of statements +ok github.com/keikoproj/governor/pkg/reaper/nodereaper 4.396s coverage: 60.3% of statements === RUN TestDeriveStatePositive --- PASS: TestDeriveStatePositive (0.00s) === RUN TestDeriveStateNegative @@ -103,7 +103,7 @@ ok github.com/orkaproj/governor/pkg/reaper/nodereaper 4.396s coverage: 60 === RUN TestValidateArgumentsNegative --- PASS: TestValidateArgumentsNegative (0.00s) coverage: 65.8% of statements -ok github.com/orkaproj/governor/pkg/reaper/podreaper 0.377s coverage: 65.8% of statements +ok github.com/keikoproj/governor/pkg/reaper/podreaper 0.377s coverage: 65.8% of statements ``` You can use `make vtest` to run test with verbose logging, you can also run `make coverage` to generate a coverage report. diff --git a/.travis.yml b/.travis.yml index a5cf21d..c4f90bb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,6 @@ jobs: if: type = push script: - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin - - export IMAGE=orkaproj/governor:$TRAVIS_BRANCH + - export IMAGE=keikoproj/governor:$TRAVIS_BRANCH - make docker-build - make docker-push diff --git a/Dockerfile b/Dockerfile index a1681a5..cbb2d76 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM golang:1.11-alpine AS builder -WORKDIR /go/src/github.com/orkaproj/governor +WORKDIR /go/src/github.com/keikoproj/governor COPY . . RUN apk update && apk add --no-cache build-base make git ca-certificates && update-ca-certificates ADD https://storage.googleapis.com/kubernetes-release/release/v1.12.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl @@ -9,7 +9,7 @@ RUN make build FROM scratch -COPY --from=builder /go/src/github.com/orkaproj/governor/_output/bin/governor /bin/governor +COPY --from=builder /go/src/github.com/keikoproj/governor/_output/bin/governor /bin/governor COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=builder /usr/local/bin/kubectl /usr/local/bin/kubectl diff --git a/LICENSE b/LICENSE index 3cc86c5..30c2a80 100644 --- a/LICENSE +++ b/LICENSE @@ -187,7 +187,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2017-2018 The Orka Authors + Copyright 2017-2018 The Keiko Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/Makefile b/Makefile index a823587..73e7f73 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ COMMIT=`git rev-parse HEAD` BUILD=`date +%FT%T%z` -LDFLAG_LOCATION=github.com/orkaproj/governor/cmd/governor/app +LDFLAG_LOCATION=github.com/keikoproj/governor/cmd/governor/app LDFLAGS=-ldflags "-X ${LDFLAG_LOCATION}.buildDate=${BUILD} -X ${LDFLAG_LOCATION}.gitCommit=${COMMIT}" @@ -15,7 +15,7 @@ IMAGE ?= governor:latest all: clean build test build: - CGO_ENABLED=0 go build ${LDFLAGS} -o _output/bin/governor github.com/orkaproj/governor/cmd/governor + CGO_ENABLED=0 go build ${LDFLAGS} -o _output/bin/governor github.com/keikoproj/governor/cmd/governor docker-build: docker build -t $(IMAGE) . diff --git a/README.md b/README.md index 5d3b383..e34f036 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # governor -[![Build Status](https://travis-ci.org/orkaproj/governor.svg?branch=master)](https://travis-ci.org/orkaproj/governor) -[![codecov](https://codecov.io/gh/orkaproj/governor/branch/master/graph/badge.svg)](https://codecov.io/gh/orkaproj/governor) -[![Go Report Card](https://goreportcard.com/badge/github.com/orkaproj/governor)](https://goreportcard.com/report/github.com/orkaproj/governor) +[![Build Status](https://travis-ci.org/keikoproj/governor.svg?branch=master)](https://travis-ci.org/keikoproj/governor) +[![codecov](https://codecov.io/gh/keikoproj/governor/branch/master/graph/badge.svg)](https://codecov.io/gh/keikoproj/governor) +[![Go Report Card](https://goreportcard.com/badge/github.com/keikoproj/governor)](https://goreportcard.com/report/github.com/keikoproj/governor) > A collection of cluster reliability tools built for Kubernetes Governor is a collection of tools for improving the stability of the large Kubernetes clusters as a single Docker image. @@ -22,9 +22,9 @@ Assuming an AWS-hosted running kubernetes cluster: kubectl create namespace governor # Using a CronJob -kubectl apply -n governor -f https://raw.githubusercontent.com/orkaproj/governor/master/examples/node-reaper.yaml +kubectl apply -n governor -f https://raw.githubusercontent.com/keikoproj/governor/master/examples/node-reaper.yaml -kubectl apply -n governor -f https://raw.githubusercontent.com/orkaproj/governor/master/examples/pod-reaper.yaml +kubectl apply -n governor -f https://raw.githubusercontent.com/keikoproj/governor/master/examples/pod-reaper.yaml ``` ### Available Packages diff --git a/cmd/governor/app/nodereaper.go b/cmd/governor/app/nodereaper.go index 25c68d4..706eb0e 100644 --- a/cmd/governor/app/nodereaper.go +++ b/cmd/governor/app/nodereaper.go @@ -19,7 +19,7 @@ import ( "fmt" "os" - "github.com/orkaproj/governor/pkg/reaper/nodereaper" + "github.com/keikoproj/governor/pkg/reaper/nodereaper" "github.com/spf13/cobra" ) diff --git a/cmd/governor/app/podreaper.go b/cmd/governor/app/podreaper.go index c9fc6f9..61f04bf 100644 --- a/cmd/governor/app/podreaper.go +++ b/cmd/governor/app/podreaper.go @@ -19,7 +19,7 @@ import ( "fmt" "os" - "github.com/orkaproj/governor/pkg/reaper/podreaper" + "github.com/keikoproj/governor/pkg/reaper/podreaper" "github.com/spf13/cobra" ) diff --git a/cmd/governor/governor.go b/cmd/governor/governor.go index 179f6cc..23950a3 100644 --- a/cmd/governor/governor.go +++ b/cmd/governor/governor.go @@ -15,7 +15,7 @@ limitations under the License. package main -import "github.com/orkaproj/governor/cmd/governor/app" +import "github.com/keikoproj/governor/cmd/governor/app" func main() { app.Execute() diff --git a/pkg/reaper/nodereaper/nodereaper.go b/pkg/reaper/nodereaper/nodereaper.go index e8e6f38..739e3ae 100644 --- a/pkg/reaper/nodereaper/nodereaper.go +++ b/pkg/reaper/nodereaper/nodereaper.go @@ -24,7 +24,7 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/autoscaling" "github.com/aws/aws-sdk-go/service/ec2" - "github.com/orkaproj/governor/pkg/reaper/common" + "github.com/keikoproj/governor/pkg/reaper/common" "github.com/sirupsen/logrus" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -33,7 +33,7 @@ import ( var log = logrus.New() const ( - ageUnreapableAnnotationKey = "governor.orkaproj.io/age-unreapable" + ageUnreapableAnnotationKey = "governor.keikoproj.io/age-unreapable" ) // Validate command line arguments diff --git a/pkg/reaper/nodereaper/nodereaper_test.go b/pkg/reaper/nodereaper/nodereaper_test.go index 4a24e47..7529a86 100644 --- a/pkg/reaper/nodereaper/nodereaper_test.go +++ b/pkg/reaper/nodereaper/nodereaper_test.go @@ -31,7 +31,7 @@ import ( "github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface" "github.com/aws/aws-sdk-go/service/ec2" "github.com/aws/aws-sdk-go/service/ec2/ec2iface" - "github.com/orkaproj/governor/pkg/reaper/common" + "github.com/keikoproj/governor/pkg/reaper/common" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/rand" diff --git a/pkg/reaper/podreaper/podreaper.go b/pkg/reaper/podreaper/podreaper.go index 8cb2cb9..6597d7c 100644 --- a/pkg/reaper/podreaper/podreaper.go +++ b/pkg/reaper/podreaper/podreaper.go @@ -20,7 +20,7 @@ import ( "fmt" "time" - "github.com/orkaproj/governor/pkg/reaper/common" + "github.com/keikoproj/governor/pkg/reaper/common" "github.com/sirupsen/logrus" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/pkg/reaper/podreaper/podreaper_test.go b/pkg/reaper/podreaper/podreaper_test.go index f6aa3f6..e97d3cb 100644 --- a/pkg/reaper/podreaper/podreaper_test.go +++ b/pkg/reaper/podreaper/podreaper_test.go @@ -25,7 +25,7 @@ import ( "github.com/Pallinder/go-randomdata" "github.com/aws/aws-sdk-go/aws" - "github.com/orkaproj/governor/pkg/reaper/common" + "github.com/keikoproj/governor/pkg/reaper/common" "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes/fake"