Skip to content

Commit

Permalink
feat: cluster information discovery framework with eks implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
saumas authored Apr 7, 2021
1 parent 1d5ca60 commit 7354d6c
Show file tree
Hide file tree
Showing 23 changed files with 2,013 additions and 323 deletions.
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ export API_KEY=this-is-your-api-key
export API_URL=api.cast.ai

# Useful when agent is not running inside cluster, or instance metadata service is not available.
export AWS_ACCOUNT_ID=your-aws-account-id
export EKS_ACCOUNT_ID=your-aws-account-id
export EKS_REGION=your-your-region
export EKS_CLUSTER_NAME=your-cluster-name
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
restore-keys: ${{ runner.os }}-build-

- name: Build Go binary
run: go build -o bin/castai-agent ./cmd/server/main.go
run: go build -o bin/castai-agent .
env:
GOOS: linux
GOARCH: amd64
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
build:
GOOS=linux go build -o bin/castai-agent ./cmd/server/main.go
docker build -t castai/agent:0.0.1 .
GOOS=linux go build -o bin/castai-agent .
docker build -t castai/agent:$(VERSION) .

push:
docker push castai/agent:0.0.1
docker push castai/agent:$(VERSION)

deploy:
cat deployment.yaml | envsubst | kubectl apply -f -
Expand Down
261 changes: 0 additions & 261 deletions cmd/server/main.go

This file was deleted.

14 changes: 11 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,16 @@ go 1.16
require (
github.com/aws/aws-sdk-go v1.37.23
github.com/go-resty/resty/v2 v2.5.0
github.com/golang/mock v1.4.1
github.com/google/uuid v1.1.2
github.com/jarcoal/httpmock v1.0.8
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/sirupsen/logrus v1.7.0
k8s.io/api v0.19.3
k8s.io/apimachinery v0.19.3
k8s.io/client-go v0.19.3
github.com/spf13/viper v1.7.1
github.com/stretchr/testify v1.6.1
k8s.io/api v0.20.2
k8s.io/apimachinery v0.20.2
k8s.io/client-go v0.20.2
k8s.io/utils v0.0.0-20210111153108-fddb29f9d009
sigs.k8s.io/controller-runtime v0.8.3
)
Loading

0 comments on commit 7354d6c

Please sign in to comment.