-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from kaytu-io/setup-plugin
Setup plugin
- Loading branch information
Showing
20 changed files
with
928 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.idea | ||
.kaytu | ||
cli | ||
cli | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
project_name: kaytu | ||
|
||
release: | ||
github: | ||
owner: "{{ .Env.REPOSITORY_OWNER }}" | ||
name: "{{ .Env.REPOSITORY_NAME }}" | ||
prerelease: auto | ||
make_latest: "{{ .Env.GORELEASER_MAKE_LATEST}}" | ||
|
||
checksum: {} | ||
|
||
builds: | ||
- id: linux | ||
binary: kaytu | ||
ldflags: | ||
- -s -w -X github.com/{{ .Env.REPOSITORY_OWNER }}/{{ .Env.REPOSITORY_NAME }}/pkg/version.VERSION={{ .Version }} | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
main: ./main.go | ||
- id: darwin | ||
binary: kaytu | ||
ldflags: | ||
- -s -w -X github.com/{{ .Env.REPOSITORY_OWNER }}/{{ .Env.REPOSITORY_NAME }}/pkg/version.VERSION={{ .Version }} | ||
goos: | ||
- darwin | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
main: ./main.go | ||
- id: windows | ||
binary: kaytu | ||
ldflags: | ||
- -s -w -X github.com/{{ .Env.REPOSITORY_OWNER }}/{{ .Env.REPOSITORY_NAME }}/pkg/version.VERSION={{ .Version }} | ||
goos: | ||
- windows | ||
goarch: | ||
- amd64 | ||
main: ./main.go | ||
archives: | ||
- id: binary | ||
format: binary | ||
- id: windows | ||
format: zip | ||
builds: [windows] | ||
- id: linux | ||
format: tar.gz | ||
builds: [linux] | ||
- id: darwin | ||
format: tar.gz | ||
builds: [darwin] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# run plugin in debug mode | ||
# (Assuming Kaytu CLI is running in debug mode AND Kaytu CLI has plugin-gcp installed) | ||
debug: | ||
go run main.go --server localhost:30422 | ||
|
||
# removes the dist folder, which is generated by goreleaser build(make goreleaser) | ||
clean: | ||
rm -rf dist | ||
|
||
# cleans the dist directory and generates build using the goreleaser's configuration for current GOOS and GOARCH | ||
goreleaser: clean | ||
REPOSITORY_NAME="kaytu" REPOSITORY_OWNER="kaytu-io" goreleaser build --snapshot --single-target | ||
|
||
# test components of plugin/gcp | ||
testgcp: | ||
go test -v ./plugin/gcp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
module github.com/kaytu-io/plugin-gcp | ||
|
||
go 1.21.5 | ||
|
||
require ( | ||
cloud.google.com/go/compute v1.24.0 | ||
cloud.google.com/go/monitoring v1.18.0 | ||
github.com/kaytu-io/kaytu v0.8.8 | ||
golang.org/x/oauth2 v0.17.0 | ||
google.golang.org/api v0.162.0 | ||
) | ||
|
||
require ( | ||
cloud.google.com/go/compute/metadata v0.2.3 // indirect | ||
github.com/felixge/httpsnoop v1.0.4 // indirect | ||
github.com/go-logr/logr v1.4.1 // indirect | ||
github.com/go-logr/stdr v1.2.2 // indirect | ||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect | ||
github.com/golang/protobuf v1.5.4 // indirect | ||
github.com/google/s2a-go v0.1.7 // indirect | ||
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect | ||
github.com/googleapis/gax-go/v2 v2.12.0 // indirect | ||
github.com/inconshreveable/mousetrap v1.1.0 // indirect | ||
github.com/spf13/cobra v1.8.0 // indirect | ||
github.com/spf13/pflag v1.0.5 // indirect | ||
go.opencensus.io v0.24.0 // indirect | ||
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0 // indirect | ||
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 // indirect | ||
go.opentelemetry.io/otel v1.22.0 // indirect | ||
go.opentelemetry.io/otel/metric v1.22.0 // indirect | ||
go.opentelemetry.io/otel/trace v1.22.0 // indirect | ||
golang.org/x/crypto v0.22.0 // indirect | ||
golang.org/x/net v0.24.0 // indirect | ||
golang.org/x/sync v0.6.0 // indirect | ||
golang.org/x/sys v0.20.0 // indirect | ||
golang.org/x/text v0.14.0 // indirect | ||
golang.org/x/time v0.5.0 // indirect | ||
google.golang.org/appengine v1.6.8 // indirect | ||
google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect | ||
google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de // indirect | ||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect | ||
google.golang.org/grpc v1.63.2 // indirect | ||
google.golang.org/protobuf v1.34.0 // indirect | ||
) |
Oops, something went wrong.