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:
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
View File

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

View File

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

View File

@ -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,

View File

@ -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"
)

View File

@ -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
View File

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

View File

@ -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 {

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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) {

View File

@ -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

View File

@ -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"

View File

@ -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 {

View File

@ -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"
)

View File

@ -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"

View File

@ -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"

View File

@ -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)

View File

@ -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"
)

View File

@ -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
}

View File

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

View File

@ -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')