Rename the project to shoebill
This commit is contained in:
parent
09a594ca60
commit
936d9f132d
10
.drone.yml
10
.drone.yml
@ -40,22 +40,22 @@ steps:
|
||||
environment:
|
||||
GITEA_TOKEN:
|
||||
from_secret: GITEA_TOKEN
|
||||
BUILDAH_REG: git.badhouseplants.net/allanger/giops-builder
|
||||
BUILDAH_REG: git.badhouseplants.net/allanger/shoebill-builder
|
||||
commands:
|
||||
- ./build/build
|
||||
|
||||
- name: Cleanup the registry
|
||||
image: git.badhouseplants.net/allanger/giops-builder:${DRONE_COMMIT_SHA}
|
||||
image: git.badhouseplants.net/allanger/shoebill-builder:${DRONE_COMMIT_SHA}
|
||||
privileged: true
|
||||
environment:
|
||||
GITEA_TOKEN:
|
||||
from_secret: GITEA_TOKEN
|
||||
GITEA_PACKAGE: giops-builder
|
||||
GITEA_PACKAGE: shoebill-builder
|
||||
commands:
|
||||
- cleanup
|
||||
|
||||
- name: Build giops container and cleanuo the registry
|
||||
image: git.badhouseplants.net/allanger/giops-builder:${DRONE_COMMIT_SHA}
|
||||
- name: Build shoebill container and cleanuo the registry
|
||||
image: git.badhouseplants.net/allanger/shoebill-builder:${DRONE_COMMIT_SHA}
|
||||
privileged: true
|
||||
environment:
|
||||
GITEA_TOKEN:
|
||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -5,7 +5,7 @@
|
||||
*.dll
|
||||
*.so
|
||||
*.dylib
|
||||
giops
|
||||
shoebill
|
||||
|
||||
# Test binary, built with `go test -c`
|
||||
*.test
|
||||
|
@ -5,13 +5,13 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"git.badhouseplants.net/allanger/giops/internal/build"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/build"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var fullVersion = fmt.Sprintf("%s - %s", build.Version, build.CommitHash)
|
||||
var longDescription = `---
|
||||
Giops is just GitOps with a glottal T
|
||||
shoebill is just GitOps with a glottal T
|
||||
|
||||
It's a tool that is supposed to help engineers follow the GitOps practies
|
||||
without fighting with GitOps being inapplicable to the real world.
|
||||
@ -28,8 +28,8 @@ Version: %s (build on %s)
|
||||
|
||||
var (
|
||||
rootCmd = &cobra.Command{
|
||||
Use: "giops",
|
||||
Short: "giops – GitOps without pain, kinda",
|
||||
Use: "shoebill",
|
||||
Short: "shoebill – GitOps without pain, kinda",
|
||||
Long: fmt.Sprintf(longDescription, fullVersion, build.BuildTime),
|
||||
SilenceErrors: true,
|
||||
SilenceUsage: true,
|
||||
|
@ -1,7 +1,7 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"git.badhouseplants.net/allanger/giops/internal/controller"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/controller"
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
@ -23,8 +23,8 @@ releases:
|
||||
version: latest
|
||||
|
||||
clusters:
|
||||
- name: cluster-giops-test
|
||||
git: git@git.badhouseplants.net:allanger/giops-test.git
|
||||
- name: cluster-shoebill-test
|
||||
git: git@git.badhouseplants.net:allanger/shoebill-test.git
|
||||
provider: flux
|
||||
releases:
|
||||
- postgresql-server
|
||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
||||
module git.badhouseplants.net/allanger/giops
|
||||
module git.badhouseplants.net/allanger/shoebill
|
||||
|
||||
go 1.20
|
||||
|
||||
|
@ -5,9 +5,9 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"git.badhouseplants.net/allanger/giops/internal/config/release"
|
||||
"git.badhouseplants.net/allanger/giops/internal/lockfile"
|
||||
"git.badhouseplants.net/allanger/giops/internal/utils/githelper"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/config/release"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/lockfile"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/githelper"
|
||||
)
|
||||
|
||||
type Cluster struct {
|
||||
@ -46,7 +46,7 @@ func (c *Cluster) BootstrapRepo(gh githelper.Githelper, workdir string, dry bool
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := gh.AddAllAndCommit(workdir, "Bootstrap the Giops repo"); err != nil {
|
||||
if err := gh.AddAllAndCommit(workdir, "Bootstrap the shoebill repo"); err != nil {
|
||||
return err
|
||||
}
|
||||
if !dry {
|
||||
|
@ -3,9 +3,9 @@ package config
|
||||
import (
|
||||
"os"
|
||||
|
||||
"git.badhouseplants.net/allanger/giops/internal/config/cluster"
|
||||
"git.badhouseplants.net/allanger/giops/internal/config/release"
|
||||
"git.badhouseplants.net/allanger/giops/internal/config/repository"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/config/cluster"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/config/release"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/config/repository"
|
||||
"github.com/sirupsen/logrus"
|
||||
"gopkg.in/yaml.v2"
|
||||
)
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"git.badhouseplants.net/allanger/giops/internal/config"
|
||||
"git.badhouseplants.net/allanger/giops/internal/config/repository"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/config"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/config/repository"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
@ -4,9 +4,9 @@ import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
|
||||
"git.badhouseplants.net/allanger/giops/internal/config/repository"
|
||||
"git.badhouseplants.net/allanger/giops/internal/lockfile"
|
||||
"git.badhouseplants.net/allanger/giops/internal/utils/helmhelper"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/config/repository"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/lockfile"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/helmhelper"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
|
@ -4,9 +4,9 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"git.badhouseplants.net/allanger/giops/internal/config/release"
|
||||
"git.badhouseplants.net/allanger/giops/internal/config/repository"
|
||||
"git.badhouseplants.net/allanger/giops/internal/utils/helmhelper"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/config/release"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/config/repository"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/helmhelper"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"gopkg.in/yaml.v2"
|
||||
)
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"git.badhouseplants.net/allanger/giops/internal/config/repository"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/config/repository"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
@ -3,15 +3,15 @@ package controller
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"git.badhouseplants.net/allanger/giops/internal/config"
|
||||
"git.badhouseplants.net/allanger/giops/internal/config/release"
|
||||
"git.badhouseplants.net/allanger/giops/internal/lockfile"
|
||||
"git.badhouseplants.net/allanger/giops/internal/providers"
|
||||
"git.badhouseplants.net/allanger/giops/internal/utils/diff"
|
||||
"git.badhouseplants.net/allanger/giops/internal/utils/githelper"
|
||||
"git.badhouseplants.net/allanger/giops/internal/utils/helmhelper"
|
||||
"git.badhouseplants.net/allanger/giops/internal/utils/kustomize"
|
||||
"git.badhouseplants.net/allanger/giops/internal/utils/workdir"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/config"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/config/release"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/lockfile"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/providers"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/diff"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/githelper"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/helmhelper"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/kustomize"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/workdir"
|
||||
)
|
||||
|
||||
func ReadTheConfig(path string) (*config.Config, error) {
|
||||
|
@ -4,12 +4,12 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"git.badhouseplants.net/allanger/giops/internal/config/repository"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/config/repository"
|
||||
"github.com/sirupsen/logrus"
|
||||
"gopkg.in/yaml.v2"
|
||||
)
|
||||
|
||||
const LOCKFILE_NAME = "giops.lock.yaml"
|
||||
const LOCKFILE_NAME = "shoebill.lock.yaml"
|
||||
|
||||
type LockEntry struct {
|
||||
Chart string
|
||||
|
@ -4,10 +4,10 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"git.badhouseplants.net/allanger/giops/internal/config/release"
|
||||
"git.badhouseplants.net/allanger/giops/internal/config/repository"
|
||||
"git.badhouseplants.net/allanger/giops/internal/utils/diff"
|
||||
"git.badhouseplants.net/allanger/giops/internal/utils/githelper"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/config/release"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/config/repository"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/diff"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/githelper"
|
||||
release_v2beta1 "github.com/fluxcd/helm-controller/api/v2beta1"
|
||||
helmrepo_v1beta2 "github.com/fluxcd/source-controller/api/v1beta2"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
|
@ -3,8 +3,8 @@ package providers
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"git.badhouseplants.net/allanger/giops/internal/utils/diff"
|
||||
"git.badhouseplants.net/allanger/giops/internal/utils/githelper"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/diff"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/githelper"
|
||||
)
|
||||
|
||||
type Provider interface {
|
||||
|
@ -3,9 +3,9 @@ package diff
|
||||
import (
|
||||
"reflect"
|
||||
|
||||
"git.badhouseplants.net/allanger/giops/internal/config/release"
|
||||
"git.badhouseplants.net/allanger/giops/internal/config/repository"
|
||||
"git.badhouseplants.net/allanger/giops/internal/lockfile"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/config/release"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/config/repository"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/lockfile"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"git.badhouseplants.net/allanger/giops/internal/config/repository"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/config/repository"
|
||||
"github.com/sirupsen/logrus"
|
||||
"gopkg.in/yaml.v2"
|
||||
"helm.sh/helm/v3/pkg/action"
|
||||
|
@ -1,6 +1,6 @@
|
||||
package helmhelper
|
||||
|
||||
import "git.badhouseplants.net/allanger/giops/internal/config/repository"
|
||||
import "git.badhouseplants.net/allanger/shoebill/internal/config/repository"
|
||||
|
||||
const MOCK_LATEST_VERSION = "v1.12.1"
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
package helmhelper
|
||||
|
||||
import "git.badhouseplants.net/allanger/giops/internal/config/repository"
|
||||
import "git.badhouseplants.net/allanger/shoebill/internal/config/repository"
|
||||
|
||||
type Helmhelper interface {
|
||||
FindLatestVersion(dir, chart string, repository repository.Repository) (string, error)
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"git.badhouseplants.net/allanger/giops/internal/utils/githelper"
|
||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/githelper"
|
||||
kustomize_types "sigs.k8s.io/kustomize/api/types"
|
||||
"sigs.k8s.io/yaml"
|
||||
)
|
||||
|
@ -14,7 +14,7 @@ func CreateWorkdir(path string) (workdir string, err error) {
|
||||
} else {
|
||||
// Create a temporary dir
|
||||
// It should be removed after the execution
|
||||
workdir, err = os.MkdirTemp("", "giops")
|
||||
workdir, err = os.MkdirTemp("", "shoebill")
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
2
main.go
2
main.go
@ -3,7 +3,7 @@ package main
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.badhouseplants.net/allanger/giops/cmd"
|
||||
"git.badhouseplants.net/allanger/shoebill/cmd"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
PACKAGE="git.badhouseplants.net/allanger/giops"
|
||||
PACKAGE="git.badhouseplants.net/allanger/shoebill"
|
||||
VERSION="$(git describe --tags --always --abbrev=0 --match='v[0-9]*.[0-9]*.[0-9]*' 2> /dev/null | sed 's/^.//')"
|
||||
COMMIT_HASH="$(git rev-parse --short HEAD)"
|
||||
BUILD_TIMESTAMP=$(date '+%Y-%m-%dT%H:%M:%S')
|
||||
|
Loading…
Reference in New Issue
Block a user