Rename the project to shoebill

This commit is contained in:
Nikolai Rodionov 2023-08-02 17:00:34 +02:00
parent 09a594ca60
commit 936d9f132d
No known key found for this signature in database
GPG Key ID: 19DB54039EBF8F10
25 changed files with 58 additions and 58 deletions

View File

@ -40,22 +40,22 @@ steps:
environment: environment:
GITEA_TOKEN: GITEA_TOKEN:
from_secret: GITEA_TOKEN from_secret: GITEA_TOKEN
BUILDAH_REG: git.badhouseplants.net/allanger/giops-builder BUILDAH_REG: git.badhouseplants.net/allanger/shoebill-builder
commands: commands:
- ./build/build - ./build/build
- name: Cleanup the registry - 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 privileged: true
environment: environment:
GITEA_TOKEN: GITEA_TOKEN:
from_secret: GITEA_TOKEN from_secret: GITEA_TOKEN
GITEA_PACKAGE: giops-builder GITEA_PACKAGE: shoebill-builder
commands: commands:
- cleanup - cleanup
- name: Build giops container and cleanuo the registry - name: Build shoebill container and cleanuo the registry
image: git.badhouseplants.net/allanger/giops-builder:${DRONE_COMMIT_SHA} image: git.badhouseplants.net/allanger/shoebill-builder:${DRONE_COMMIT_SHA}
privileged: true privileged: true
environment: environment:
GITEA_TOKEN: GITEA_TOKEN:

2
.gitignore vendored
View File

@ -5,7 +5,7 @@
*.dll *.dll
*.so *.so
*.dylib *.dylib
giops shoebill
# Test binary, built with `go test -c` # Test binary, built with `go test -c`
*.test *.test

View File

@ -1,4 +1,4 @@
# giops # shoebill
A templater for the gitops setup A templater for the gitops setup

View File

@ -5,13 +5,13 @@ import (
"fmt" "fmt"
"os" "os"
"git.badhouseplants.net/allanger/giops/internal/build" "git.badhouseplants.net/allanger/shoebill/internal/build"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
var fullVersion = fmt.Sprintf("%s - %s", build.Version, build.CommitHash) var fullVersion = fmt.Sprintf("%s - %s", build.Version, build.CommitHash)
var longDescription = `--- 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 It's a tool that is supposed to help engineers follow the GitOps practies
without fighting with GitOps being inapplicable to the real world. without fighting with GitOps being inapplicable to the real world.
@ -28,8 +28,8 @@ Version: %s (build on %s)
var ( var (
rootCmd = &cobra.Command{ rootCmd = &cobra.Command{
Use: "giops", Use: "shoebill",
Short: "giops GitOps without pain, kinda", Short: "shoebill GitOps without pain, kinda",
Long: fmt.Sprintf(longDescription, fullVersion, build.BuildTime), Long: fmt.Sprintf(longDescription, fullVersion, build.BuildTime),
SilenceErrors: true, SilenceErrors: true,
SilenceUsage: true, SilenceUsage: true,

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"git.badhouseplants.net/allanger/giops/internal/controller" "git.badhouseplants.net/allanger/shoebill/internal/controller"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -23,8 +23,8 @@ releases:
version: latest version: latest
clusters: clusters:
- name: cluster-giops-test - name: cluster-shoebill-test
git: git@git.badhouseplants.net:allanger/giops-test.git git: git@git.badhouseplants.net:allanger/shoebill-test.git
provider: flux provider: flux
releases: releases:
- postgresql-server - postgresql-server

2
go.mod
View File

@ -1,4 +1,4 @@
module git.badhouseplants.net/allanger/giops module git.badhouseplants.net/allanger/shoebill
go 1.20 go 1.20

View File

@ -5,9 +5,9 @@ import (
"fmt" "fmt"
"os" "os"
"git.badhouseplants.net/allanger/giops/internal/config/release" "git.badhouseplants.net/allanger/shoebill/internal/config/release"
"git.badhouseplants.net/allanger/giops/internal/lockfile" "git.badhouseplants.net/allanger/shoebill/internal/lockfile"
"git.badhouseplants.net/allanger/giops/internal/utils/githelper" "git.badhouseplants.net/allanger/shoebill/internal/utils/githelper"
) )
type Cluster struct { type Cluster struct {
@ -46,7 +46,7 @@ func (c *Cluster) BootstrapRepo(gh githelper.Githelper, workdir string, dry bool
if err != nil { if err != nil {
return err 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 return err
} }
if !dry { if !dry {

View File

@ -3,9 +3,9 @@ package config
import ( import (
"os" "os"
"git.badhouseplants.net/allanger/giops/internal/config/cluster" "git.badhouseplants.net/allanger/shoebill/internal/config/cluster"
"git.badhouseplants.net/allanger/giops/internal/config/release" "git.badhouseplants.net/allanger/shoebill/internal/config/release"
"git.badhouseplants.net/allanger/giops/internal/config/repository" "git.badhouseplants.net/allanger/shoebill/internal/config/repository"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
) )

View File

@ -4,8 +4,8 @@ import (
"os" "os"
"testing" "testing"
"git.badhouseplants.net/allanger/giops/internal/config" "git.badhouseplants.net/allanger/shoebill/internal/config"
"git.badhouseplants.net/allanger/giops/internal/config/repository" "git.badhouseplants.net/allanger/shoebill/internal/config/repository"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View File

@ -4,9 +4,9 @@ import (
"fmt" "fmt"
"reflect" "reflect"
"git.badhouseplants.net/allanger/giops/internal/config/repository" "git.badhouseplants.net/allanger/shoebill/internal/config/repository"
"git.badhouseplants.net/allanger/giops/internal/lockfile" "git.badhouseplants.net/allanger/shoebill/internal/lockfile"
"git.badhouseplants.net/allanger/giops/internal/utils/helmhelper" "git.badhouseplants.net/allanger/shoebill/internal/utils/helmhelper"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
) )

View File

@ -4,9 +4,9 @@ import (
"fmt" "fmt"
"testing" "testing"
"git.badhouseplants.net/allanger/giops/internal/config/release" "git.badhouseplants.net/allanger/shoebill/internal/config/release"
"git.badhouseplants.net/allanger/giops/internal/config/repository" "git.badhouseplants.net/allanger/shoebill/internal/config/repository"
"git.badhouseplants.net/allanger/giops/internal/utils/helmhelper" "git.badhouseplants.net/allanger/shoebill/internal/utils/helmhelper"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
) )

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"testing" "testing"
"git.badhouseplants.net/allanger/giops/internal/config/repository" "git.badhouseplants.net/allanger/shoebill/internal/config/repository"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View File

@ -3,15 +3,15 @@ package controller
import ( import (
"fmt" "fmt"
"git.badhouseplants.net/allanger/giops/internal/config" "git.badhouseplants.net/allanger/shoebill/internal/config"
"git.badhouseplants.net/allanger/giops/internal/config/release" "git.badhouseplants.net/allanger/shoebill/internal/config/release"
"git.badhouseplants.net/allanger/giops/internal/lockfile" "git.badhouseplants.net/allanger/shoebill/internal/lockfile"
"git.badhouseplants.net/allanger/giops/internal/providers" "git.badhouseplants.net/allanger/shoebill/internal/providers"
"git.badhouseplants.net/allanger/giops/internal/utils/diff" "git.badhouseplants.net/allanger/shoebill/internal/utils/diff"
"git.badhouseplants.net/allanger/giops/internal/utils/githelper" "git.badhouseplants.net/allanger/shoebill/internal/utils/githelper"
"git.badhouseplants.net/allanger/giops/internal/utils/helmhelper" "git.badhouseplants.net/allanger/shoebill/internal/utils/helmhelper"
"git.badhouseplants.net/allanger/giops/internal/utils/kustomize" "git.badhouseplants.net/allanger/shoebill/internal/utils/kustomize"
"git.badhouseplants.net/allanger/giops/internal/utils/workdir" "git.badhouseplants.net/allanger/shoebill/internal/utils/workdir"
) )
func ReadTheConfig(path string) (*config.Config, error) { func ReadTheConfig(path string) (*config.Config, error) {

View File

@ -4,12 +4,12 @@ import (
"fmt" "fmt"
"os" "os"
"git.badhouseplants.net/allanger/giops/internal/config/repository" "git.badhouseplants.net/allanger/shoebill/internal/config/repository"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
) )
const LOCKFILE_NAME = "giops.lock.yaml" const LOCKFILE_NAME = "shoebill.lock.yaml"
type LockEntry struct { type LockEntry struct {
Chart string Chart string

View File

@ -4,10 +4,10 @@ import (
"fmt" "fmt"
"os" "os"
"git.badhouseplants.net/allanger/giops/internal/config/release" "git.badhouseplants.net/allanger/shoebill/internal/config/release"
"git.badhouseplants.net/allanger/giops/internal/config/repository" "git.badhouseplants.net/allanger/shoebill/internal/config/repository"
"git.badhouseplants.net/allanger/giops/internal/utils/diff" "git.badhouseplants.net/allanger/shoebill/internal/utils/diff"
"git.badhouseplants.net/allanger/giops/internal/utils/githelper" "git.badhouseplants.net/allanger/shoebill/internal/utils/githelper"
release_v2beta1 "github.com/fluxcd/helm-controller/api/v2beta1" release_v2beta1 "github.com/fluxcd/helm-controller/api/v2beta1"
helmrepo_v1beta2 "github.com/fluxcd/source-controller/api/v1beta2" helmrepo_v1beta2 "github.com/fluxcd/source-controller/api/v1beta2"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"

View File

@ -3,8 +3,8 @@ package providers
import ( import (
"fmt" "fmt"
"git.badhouseplants.net/allanger/giops/internal/utils/diff" "git.badhouseplants.net/allanger/shoebill/internal/utils/diff"
"git.badhouseplants.net/allanger/giops/internal/utils/githelper" "git.badhouseplants.net/allanger/shoebill/internal/utils/githelper"
) )
type Provider interface { type Provider interface {

View File

@ -3,9 +3,9 @@ package diff
import ( import (
"reflect" "reflect"
"git.badhouseplants.net/allanger/giops/internal/config/release" "git.badhouseplants.net/allanger/shoebill/internal/config/release"
"git.badhouseplants.net/allanger/giops/internal/config/repository" "git.badhouseplants.net/allanger/shoebill/internal/config/repository"
"git.badhouseplants.net/allanger/giops/internal/lockfile" "git.badhouseplants.net/allanger/shoebill/internal/lockfile"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
) )

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"os" "os"
"git.badhouseplants.net/allanger/giops/internal/config/repository" "git.badhouseplants.net/allanger/shoebill/internal/config/repository"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
"helm.sh/helm/v3/pkg/action" "helm.sh/helm/v3/pkg/action"

View File

@ -1,6 +1,6 @@
package helmhelper 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" const MOCK_LATEST_VERSION = "v1.12.1"

View File

@ -1,6 +1,6 @@
package helmhelper package helmhelper
import "git.badhouseplants.net/allanger/giops/internal/config/repository" import "git.badhouseplants.net/allanger/shoebill/internal/config/repository"
type Helmhelper interface { type Helmhelper interface {
FindLatestVersion(dir, chart string, repository repository.Repository) (string, error) FindLatestVersion(dir, chart string, repository repository.Repository) (string, error)

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"os" "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" kustomize_types "sigs.k8s.io/kustomize/api/types"
"sigs.k8s.io/yaml" "sigs.k8s.io/yaml"
) )

View File

@ -14,7 +14,7 @@ func CreateWorkdir(path string) (workdir string, err error) {
} else { } else {
// Create a temporary dir // Create a temporary dir
// It should be removed after the execution // It should be removed after the execution
workdir, err = os.MkdirTemp("", "giops") workdir, err = os.MkdirTemp("", "shoebill")
if err != nil { if err != nil {
return "", err return "", err
} }

View File

@ -3,7 +3,7 @@ package main
import ( import (
"context" "context"
"git.badhouseplants.net/allanger/giops/cmd" "git.badhouseplants.net/allanger/shoebill/cmd"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
) )

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/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/^.//')" 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)" COMMIT_HASH="$(git rev-parse --short HEAD)"
BUILD_TIMESTAMP=$(date '+%Y-%m-%dT%H:%M:%S') BUILD_TIMESTAMP=$(date '+%Y-%m-%dT%H:%M:%S')