Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: goreleaser action update #113

Closed
wants to merge 45 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
ecf98ee
fix: kube deployment char limit
spy16 Mar 2, 2023
d48ba77
feat: add deployment_id feature
spy16 Mar 3, 2023
5d3d7ad
Merge pull request #1 from goto/fix/bugs
spy16 Mar 13, 2023
4867aa2
refactor: rename to goto (#2)
ishanarya0 Mar 14, 2023
3b338aa
fix: golanci config (#3)
ishanarya0 Mar 14, 2023
4d909e6
fix: kube config handling (#4)
spy16 Mar 15, 2023
e96dcf9
fix: deployment id name (#5)
spy16 Mar 15, 2023
202e4ad
Fix/generic (#6)
spy16 Mar 16, 2023
e758108
fix: change odpf reference to goto (#7)
ishanarya0 Mar 16, 2023
26d5226
generic refactors (#8)
spy16 Mar 17, 2023
ab5b2dc
fix: firehose image name (#9)
spy16 Mar 17, 2023
022f7a4
refactor: re-implement firehose module (#10)
spy16 Mar 21, 2023
4b6a238
fix: use previous telegraf conf (#11)
spy16 Mar 21, 2023
152a191
fix: length validation issue (#12)
spy16 Mar 21, 2023
f66d8bf
fix: goreleaser commit author (#14)
ishanarya0 Mar 24, 2023
fade8c7
feat: add stop flag support (#13)
spy16 Mar 24, 2023
226fd7f
feat: add stop flag support (#13) (#15)
spy16 Mar 25, 2023
cffb11f
fix: revision listing db query (#16)
spy16 Mar 27, 2023
b93cbb8
fix: expose chart values type (#17)
spy16 Mar 27, 2023
b063bba
feat: strip trailing colon in image tag, add telegraf config template
spy16 Mar 30, 2023
fb2202d
fix: telegraf config format (#19)
spy16 Mar 30, 2023
eacb30f
feat: add support for dynamic telegraf labels (#20)
spy16 Mar 30, 2023
9a37814
fix: use go map for telegraf image spec (#21)
spy16 Mar 30, 2023
52671a6
fix: use map to fix yaml marshal (#22)
spy16 Mar 30, 2023
2b799d7
fix: set deployment-id length limit as 63 (#23)
spy16 Mar 30, 2023
3a368d2
fix: revert 63 limit to 53 due helm limitation (#24)
spy16 Mar 30, 2023
d3e42c0
feat: refactor release name to be consistent with old format (#25)
spy16 Mar 30, 2023
cbc5e88
fix: helm release name limit (#26)
spy16 Mar 30, 2023
dc4b7ca
feat: implement deployment label templating (#27)
spy16 Apr 3, 2023
199def5
fix: expose name in firehose module (#28)
spy16 Apr 4, 2023
00fc0d6
refactor: simplify helm package (#29)
spy16 Apr 5, 2023
a354d34
feat: add labels to list-resource api (#30)
spy16 Apr 5, 2023
84ec3cc
feat: merge action and existing labels (#31)
spy16 Apr 6, 2023
4538cb7
fix: remove name label to prevent length issues (#32)
spy16 Apr 6, 2023
71766cb
feat: add jdbc sink type (#33)
ishanarya0 Apr 11, 2023
4e03452
feat: allow custom usage for each firehose (#34)
ishanarya0 Apr 12, 2023
b013688
feat: add tolerations feature (#35)
spy16 Apr 18, 2023
a5f3898
fix: move volume values outside firehose key (#36)
spy16 Apr 21, 2023
d3193e7
fix: add secret key (#37)
ishanarya0 Apr 21, 2023
0919cc5
feat: add toleration to kube module config (#38)
ishanarya0 Apr 27, 2023
74d17e4
feat: add support for sink specific requests & limits (#39)
spy16 May 9, 2023
7e4caa7
feat: add firehose base config (#40)
ishanarya0 May 17, 2023
57a30e8
feat: offset reset history (#42)
ishanarya0 Jul 17, 2023
0128a81
feat: add statsd variables to envVariables (#41)
ishanarya0 Jul 17, 2023
69d1624
fix: goreleaser action
ishanarya0 Jul 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2.6.1
uses: goreleaser/goreleaser-action@v4.3.0
with:
distribution: goreleaser
version: latest
Expand Down
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ tmp/

expt/

entropy.dev.yaml

requests.http
entropy*.dev.yaml
entropy*.dev.yml
test_*.yml
test_*.json
requests.http
6 changes: 3 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ linters:
linters-settings:
decorder:
dec-order:
- type
- const
- var
- type
- func
disable-dec-order-check: false
disable-init-func-first-check: false
Expand Down Expand Up @@ -112,12 +112,12 @@ linters-settings:
checks:
- "all"
goimports:
local-prefixes: github.com/odpf/entropy
local-prefixes: github.com/goto/entropy
gci:
sections:
- standard # Captures all standard packages if they do not match another section.
- default # Contains all imports that could not be matched to another section type.
- prefix(github.com/odpf/entropy) # Groups all imports with the specified Prefix.
- prefix(github.com/goto/entropy) # Groups all imports with the specified Prefix.
gocritic:
disabled-checks:
- ifElseChain
Expand Down
20 changes: 10 additions & 10 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ builds:
binary: entropy
flags: [-a]
ldflags:
- -X github.com/odpf/entropy/pkg/version.Version={{.Tag}}
- -X github.com/odpf/entropy/pkg/version.Commit={{.FullCommit}}
- -X github.com/odpf/entropy/pkg/version.BuildTime={{.Date}}
- -X github.com/goto/entropy/pkg/version.Version={{.Tag}}
- -X github.com/goto/entropy/pkg/version.Commit={{.FullCommit}}
- -X github.com/goto/entropy/pkg/version.BuildTime={{.Date}}
goos:
- darwin
- linux
Expand Down Expand Up @@ -58,16 +58,16 @@ dockers:
- entropy
dockerfile: Dockerfile
image_templates:
- 'docker.io/odpf/{{.ProjectName}}:latest'
- 'docker.io/odpf/{{.ProjectName}}:{{ .Version }}'
- 'docker.io/odpf/{{.ProjectName}}:{{ .Version }}-amd64'
- 'docker.io/gotocompany/{{.ProjectName}}:latest'
- 'docker.io/gotocompany/{{.ProjectName}}:{{ .Version }}'
- 'docker.io/gotocompany/{{.ProjectName}}:{{ .Version }}-amd64'

brews:
- name: entropy
homepage: "https://github.com/odpf/entropy"
homepage: "https://github.com/goto/entropy"
description: "Infrastructure orchestration tool."
tap:
owner: odpf
owner: goto
name: homebrew-tap
license: "Apache 2.0"
folder: Formula
Expand All @@ -76,5 +76,5 @@ brews:
install: |-
bin.install "entropy"
commit_author:
name: Rohil Surana
email: rohilsurana96@gmail.com
name: github-actions[bot]
email: 41898282+github-actions[bot]@users.noreply.github.com
30 changes: 24 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
NAME=github.com/odpf/entropy
NAME=github.com/goto/entropy
VERSION=$(shell git describe --tags --always --first-parent 2>/dev/null)
COMMIT=$(shell git rev-parse --short HEAD)
PROTON_COMMIT="1d611a9efbfecfa54945906214b19b72e6fbb841"
BUILD_TIME=$(shell date)
COVERAGE_DIR=coverage
BUILD_DIR=dist
EXE=entropy

.PHONY: all build clean tidy format test test-coverage
.PHONY: all build clean tidy format test test-coverage proto

all: clean test build format lint
all: format clean test build

tidy:
@echo "Tidy up go.mod..."
@go mod tidy -v

install:
@echo "Installing Entropy to ${GOBIN}..."
@go install
install: ## install required dependencies
@echo "> installing dependencies"
go install github.com/vektra/mockery/v2@latest
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.1
go get -d google.golang.org/protobuf/proto@v1.28.1
go get -d google.golang.org/grpc@v1.49.0
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2.0
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@v2.11.3
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@v2.11.3
go install github.com/bufbuild/buf/cmd/buf@v1.7.0
go install github.com/envoyproxy/protoc-gen-validate@v0.6.7

format:
@echo "Running gofumpt..."
Expand All @@ -29,6 +38,8 @@ lint:
clean: tidy
@echo "Cleaning up build directories..."
@rm -rf ${COVERAGE_DIR} ${BUILD_DIR}

generate:
@echo "Running go-generate..."
@go generate ./...

Expand All @@ -46,6 +57,13 @@ build: clean
@echo "Running build for '${VERSION}' in '${BUILD_DIR}/'..."
@CGO_ENABLED=0 go build -ldflags '-X "${NAME}/pkg/version.Version=${VERSION}" -X "${NAME}/pkg/version.Commit=${COMMIT}" -X "${NAME}/pkg/version.BuildTime=${BUILD_TIME}"' -o ${BUILD_DIR}/${EXE}

proto: ## Generate the protobuf files
@echo " > generating protobuf from goto/proton"
@echo " > [info] make sure correct version of dependencies are installed using 'make install'"
@rm -rf ./proto
@buf generate https://github.com/goto/proton/archive/${PROTON_COMMIT}.zip#strip_components=1 --template buf.gen.yaml --path gotocompany/entropy --path gotocompany/common
@echo " > protobuf compilation finished"

download:
@go mod download

Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Entropy

![test workflow](https://github.com/odpf/entropy/actions/workflows/test.yml/badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/odpf/entropy)](https://goreportcard.com/report/github.com/odpf/entropy)
[![Version](https://img.shields.io/github/v/release/odpf/entropy?logo=semantic-release)](Version)
![test workflow](https://github.com/goto/entropy/actions/workflows/test.yml/badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/goto/entropy)](https://goreportcard.com/report/github.com/goto/entropy)
[![Version](https://img.shields.io/github/v/release/goto/entropy?logo=semantic-release)](Version)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?logo=apache)](LICENSE)

Entropy is an extensible infrastructure orchestration and application deployment tool. Entropy provides features
Expand All @@ -23,7 +23,7 @@ Install Entropy on macOS, Windows, Linux, OpenBSD, FreeBSD, and on any machine.

#### Binary (Cross-platform)

Download the appropriate version for your platform from [releases](https://github.com/odpf/entropy/releases) page. Once
Download the appropriate version for your platform from [releases](https://github.com/goto/entropy/releases) page. Once
downloaded, the binary can be run from anywhere. You don’t need to install it into a global location. This works well
for shared hosts and other systems where you don’t have a privileged account. Ideally, you should install it somewhere
in your PATH for easy use. `/usr/local/bin` is the most probable location.
Expand All @@ -32,7 +32,7 @@ in your PATH for easy use. `/usr/local/bin` is the most probable location.

```sh
# Install entropy (requires homebrew installed)
$ brew install odpf/tap/entropy
$ brew install goto/tap/entropy

# Check for installed entropy version
$ entropy version
Expand All @@ -58,7 +58,7 @@ $ entropy serve --config ./my_config.yaml

```sh
# Clone the repo
$ git clone https://github.com/odpf/entropy.git
$ git clone https://github.com/goto/entropy.git

# Build entropy binary file
$ make build
Expand All @@ -83,14 +83,14 @@ $ make test
Development of Entropy happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and
improvements. Read below to learn how you can take part in improving Entropy.

Read our [contributing guide](https://odpf.github.io/entropy/docs/contribute/contributing) to learn about our
Read our [contributing guide](https://goto.github.io/entropy/docs/contribute/contributing) to learn about our
development process, how to propose bugfixes and improvements, and how to build and test your changes to Entropy.

To help you get your feet wet and get you familiar with our contribution process, we have a list
of [good first issues](https://github.com/odpf/entropy/labels/good%20first%20issue) that contain bugs which have a
of [good first issues](https://github.com/goto/entropy/labels/good%20first%20issue) that contain bugs which have a
relatively limited scope. This is a great place to get started.

This project exists thanks to all the [contributors](https://github.com/odpf/entropy/graphs/contributors).
This project exists thanks to all the [contributors](https://github.com/goto/entropy/graphs/contributors).

## License

Expand Down
25 changes: 25 additions & 0 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: v1
plugins:
- remote: "buf.build/library/plugins/go:v1.27.1-1"
out: proto
opt: paths=source_relative
- remote: "buf.build/library/plugins/go-grpc:v1.1.0-2"
out: proto
opt: paths=source_relative,require_unimplemented_servers=true
- remote: buf.build/odpf/plugins/validate
out: "proto"
opt: "paths=source_relative,lang=go"
- remote: "buf.build/grpc-ecosystem/plugins/grpc-gateway:v2.11.3-1"
out: proto
opt:
- paths=source_relative
- allow_repeated_fields_in_body=true
- remote: "buf.build/grpc-ecosystem/plugins/openapiv2:v2.11.3-1"
out: proto
opt:
- allow_repeated_fields_in_body=true
- output_format=yaml
- allow_merge=true
- merge_file_name=entropy
- openapi_naming_strategy=simple
- json_names_for_fields=false
78 changes: 0 additions & 78 deletions cli/action.go

This file was deleted.

8 changes: 4 additions & 4 deletions cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ package cli
import (
"context"

"github.com/odpf/salt/cmdx"
"github.com/goto/salt/cmdx"
"github.com/spf13/cobra"

"github.com/goto/entropy/cli/client"
)

var rootCmd = &cobra.Command{
Expand All @@ -21,9 +23,7 @@ func Execute(ctx context.Context) {
cmdMigrate(),
cmdVersion(),
cmdShowConfigs(),
cmdResource(),
cmdAction(),
cmdLogs(),
client.Command(),
)

cmdx.SetHelp(rootCmd)
Expand Down
47 changes: 0 additions & 47 deletions cli/client.go

This file was deleted.

Loading
Loading