Skip to content

Commit

Permalink
expose beetle internals to third party
Browse files Browse the repository at this point in the history
  • Loading branch information
Clivern committed Jun 19, 2020
1 parent 64f3dfd commit 8d45cf5
Show file tree
Hide file tree
Showing 71 changed files with 67 additions and 67 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM golang:1.14.4

ARG BEETLE_VERSION=0.2.1
ARG BEETLE_VERSION=0.2.2

ENV GO111MODULE=on

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<p align="center">
<img src="https://raw.githubusercontent.com/clivern/Beetle/master/assets/img/gopher.png?v=0.2.1" width="180" />
<img src="https://raw.githubusercontent.com/clivern/Beetle/master/assets/img/gopher.png?v=0.2.2" width="180" />
<h3 align="center">Beetle</h3>
<p align="center">Kubernetes multi-cluster deployment service</p>
<p align="center">
<a href="https://travis-ci.com/Clivern/Beetle"><img src="https://travis-ci.com/Clivern/Beetle.svg?branch=master"></a>
<a href="https://github.com/Clivern/Beetle/releases"><img src="https://img.shields.io/badge/Version-v0.2.1-red.svg"></a>
<a href="https://goreportcard.com/report/github.com/Clivern/Beetle"><img src="https://goreportcard.com/badge/github.com/clivern/Beetle?v=0.2.1"></a>
<a href="https://github.com/Clivern/Beetle/releases"><img src="https://img.shields.io/badge/Version-v0.2.2-red.svg"></a>
<a href="https://goreportcard.com/report/github.com/Clivern/Beetle"><img src="https://goreportcard.com/badge/github.com/clivern/Beetle?v=0.2.2"></a>
<a href="https://hub.docker.com/r/clivern/beetle"><img src="https://img.shields.io/badge/Docker-Latest-orange"></a>
<a href="https://github.com/Clivern/Beetle/blob/master/LICENSE"><img src="https://img.shields.io/badge/LICENSE-MIT-orange.svg"></a>
</p>
</p>
<br/>
<p align="center">
<img src="https://raw.githubusercontent.com/Clivern/Beetle/master/assets/img/chart.png?v=0.2.1" width="100%" />
<img src="https://raw.githubusercontent.com/Clivern/Beetle/master/assets/img/chart.png?v=0.2.2" width="100%" />
</p>
<br/>

Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions internal/app/cmd/serve.go → app/cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import (
"strconv"
"strings"

"github.com/clivern/beetle/internal/app/controller"
"github.com/clivern/beetle/internal/app/middleware"
"github.com/clivern/beetle/internal/app/module"
"github.com/clivern/beetle/app/controller"
"github.com/clivern/beetle/app/middleware"
"github.com/clivern/beetle/app/module"

"github.com/drone/envsubst"
"github.com/gin-gonic/gin"
Expand Down
2 changes: 1 addition & 1 deletion internal/app/cmd/version.go → app/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package cmd
import (
"fmt"

"github.com/clivern/beetle/internal/app/module"
"github.com/clivern/beetle/app/module"
"github.com/spf13/cobra"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"context"
"net/http"

"github.com/clivern/beetle/internal/app/kubernetes"
"github.com/clivern/beetle/internal/app/model"
"github.com/clivern/beetle/app/kubernetes"
"github.com/clivern/beetle/app/model"

"github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"context"
"net/http"

"github.com/clivern/beetle/internal/app/kubernetes"
"github.com/clivern/beetle/internal/app/model"
"github.com/clivern/beetle/app/kubernetes"
"github.com/clivern/beetle/app/model"

"github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"context"
"net/http"

"github.com/clivern/beetle/internal/app/kubernetes"
"github.com/clivern/beetle/internal/app/model"
"github.com/clivern/beetle/app/kubernetes"
"github.com/clivern/beetle/app/model"

"github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"context"
"net/http"

"github.com/clivern/beetle/internal/app/kubernetes"
"github.com/clivern/beetle/internal/app/model"
"github.com/clivern/beetle/app/kubernetes"
"github.com/clivern/beetle/app/model"

"github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"strconv"
"time"

"github.com/clivern/beetle/internal/app/model"
"github.com/clivern/beetle/internal/app/module"
"github.com/clivern/beetle/app/model"
"github.com/clivern/beetle/app/module"

"github.com/prometheus/client_golang/prometheus"
log "github.com/sirupsen/logrus"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ package controller
import (
"net/http"

"github.com/clivern/beetle/internal/app/model"
"github.com/clivern/beetle/internal/app/module"
"github.com/clivern/beetle/internal/app/util"
"github.com/clivern/beetle/app/model"
"github.com/clivern/beetle/app/module"
"github.com/clivern/beetle/app/util"

"github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"strings"
"testing"

"github.com/clivern/beetle/internal/app/module"
"github.com/clivern/beetle/app/module"
"github.com/clivern/beetle/pkg"

"github.com/drone/envsubst"
Expand Down
2 changes: 1 addition & 1 deletion internal/app/controller/job.go → app/controller/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"net/http"

"github.com/clivern/beetle/internal/app/module"
"github.com/clivern/beetle/app/module"

"github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus"
Expand Down
2 changes: 1 addition & 1 deletion internal/app/controller/jobs.go → app/controller/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package controller
import (
"net/http"

"github.com/clivern/beetle/internal/app/module"
"github.com/clivern/beetle/app/module"

"github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"context"
"net/http"

"github.com/clivern/beetle/internal/app/kubernetes"
"github.com/clivern/beetle/internal/app/model"
"github.com/clivern/beetle/app/kubernetes"
"github.com/clivern/beetle/app/model"

"github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"context"
"net/http"

"github.com/clivern/beetle/internal/app/kubernetes"
"github.com/clivern/beetle/internal/app/model"
"github.com/clivern/beetle/app/kubernetes"
"github.com/clivern/beetle/app/model"

"github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package controller
import (
"net/http"

"github.com/clivern/beetle/internal/app/module"
"github.com/clivern/beetle/app/module"

"github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"strings"
"testing"

"github.com/clivern/beetle/internal/app/module"
"github.com/clivern/beetle/app/module"
"github.com/clivern/beetle/pkg"

"github.com/drone/envsubst"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
"strings"
"time"

"github.com/clivern/beetle/internal/app/kubernetes"
"github.com/clivern/beetle/internal/app/model"
"github.com/clivern/beetle/internal/app/module"
"github.com/clivern/beetle/internal/app/util"
"github.com/clivern/beetle/app/kubernetes"
"github.com/clivern/beetle/app/model"
"github.com/clivern/beetle/app/module"
"github.com/clivern/beetle/app/util"

log "github.com/sirupsen/logrus"
"github.com/spf13/viper"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"
"strings"

"github.com/clivern/beetle/internal/app/model"
"github.com/clivern/beetle/app/model"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"context"
"fmt"

"github.com/clivern/beetle/internal/app/module"
"github.com/clivern/beetle/app/module"

"github.com/spf13/viper"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"path/filepath"
"testing"

"github.com/clivern/beetle/internal/app/module"
"github.com/clivern/beetle/app/module"
"github.com/clivern/beetle/pkg"

"github.com/drone/envsubst"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package kubernetes
import (
"context"

"github.com/clivern/beetle/internal/app/model"
"github.com/clivern/beetle/app/model"
)

// GetConfig gets a beetle configs for a specific namespace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package kubernetes
import (
"context"

"github.com/clivern/beetle/internal/app/model"
"github.com/clivern/beetle/app/model"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"
"time"

"github.com/clivern/beetle/internal/app/model"
"github.com/clivern/beetle/app/model"
log "github.com/sirupsen/logrus"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"fmt"
"strings"

"github.com/clivern/beetle/internal/app/model"
"github.com/clivern/beetle/internal/app/util"
"github.com/clivern/beetle/app/model"
"github.com/clivern/beetle/app/util"
)

// Deploy deploys an application
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"context"
"strings"

"github.com/clivern/beetle/internal/app/model"
"github.com/clivern/beetle/app/model"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"path/filepath"
"testing"

"github.com/clivern/beetle/internal/app/module"
"github.com/clivern/beetle/app/module"
"github.com/clivern/beetle/pkg"

"github.com/drone/envsubst"
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package middleware
import (
"strings"

"github.com/clivern/beetle/internal/app/util"
"github.com/clivern/beetle/app/util"

"github.com/gin-gonic/gin"
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions internal/app/module/database.go → app/module/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package module

import (
"fmt"
"github.com/clivern/beetle/internal/app/migration"
"github.com/clivern/beetle/internal/app/model"
"github.com/clivern/beetle/app/migration"
"github.com/clivern/beetle/app/model"
"time"

"github.com/jinzhu/gorm"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"path/filepath"
"testing"

"github.com/clivern/beetle/internal/app/model"
"github.com/clivern/beetle/app/model"
"github.com/clivern/beetle/pkg"

"github.com/drone/envsubst"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package util
import (
"testing"

"github.com/clivern/beetle/internal/app/model"
"github.com/clivern/beetle/app/model"
"github.com/clivern/beetle/pkg"
)

Expand Down
2 changes: 1 addition & 1 deletion beetle.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package main

import (
"github.com/clivern/beetle/internal/app/cmd"
"github.com/clivern/beetle/app/cmd"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion beetle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"path/filepath"
"testing"

"github.com/clivern/beetle/internal/app/module"
"github.com/clivern/beetle/app/module"
"github.com/clivern/beetle/pkg"

"github.com/drone/envsubst"
Expand Down
2 changes: 1 addition & 1 deletion sdk/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"
"net/http"

"github.com/clivern/beetle/internal/app/model"
"github.com/clivern/beetle/app/model"
)

// GetApplications Get Applications List
Expand Down
4 changes: 2 additions & 2 deletions sdk/application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"path/filepath"
"testing"

"github.com/clivern/beetle/internal/app/model"
"github.com/clivern/beetle/internal/app/module"
"github.com/clivern/beetle/app/model"
"github.com/clivern/beetle/app/module"
"github.com/clivern/beetle/pkg"

"github.com/drone/envsubst"
Expand Down
2 changes: 1 addition & 1 deletion sdk/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package sdk

import (
"github.com/clivern/beetle/internal/app/module"
"github.com/clivern/beetle/app/module"
)

// Client struct
Expand Down
2 changes: 1 addition & 1 deletion sdk/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"
"net/http"

"github.com/clivern/beetle/internal/app/model"
"github.com/clivern/beetle/app/model"
)

// GetClusters Get Clusters List
Expand Down
4 changes: 2 additions & 2 deletions sdk/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"path/filepath"
"testing"

"github.com/clivern/beetle/internal/app/model"
"github.com/clivern/beetle/internal/app/module"
"github.com/clivern/beetle/app/model"
"github.com/clivern/beetle/app/module"
"github.com/clivern/beetle/pkg"

"github.com/drone/envsubst"
Expand Down
2 changes: 1 addition & 1 deletion sdk/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"
"net/http"

"github.com/clivern/beetle/internal/app/model"
"github.com/clivern/beetle/app/model"
)

// CreateDeployment Get Application
Expand Down
Loading

0 comments on commit 8d45cf5

Please sign in to comment.