Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
44 changes: 22 additions & 22 deletions .circleic/config.yml → .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# Golang CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-go/ for more details
version: 2
jobs:
build:
docker:
- image: circleci/golang:1.12
environment:
GO111MODULE: "ON"
working_directory: /go/src/github.com/{{ORG_NAME}}/{{REPO_NAME}}
steps:
- checkout
- run: go mod download
- run: go test -v ./...
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- save_cache:
key: go-mod-v1-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
# Golang CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-go/ for more details
version: 2
jobs:
build:
docker:
- image: circleci/golang:1.12
environment:
GO111MODULE: "ON"
working_directory: /go/src/github.com/{{ORG_NAME}}/{{REPO_NAME}}
steps:
- checkout
- run: go mod download
- run: go test -v ./...
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- save_cache:
key: go-mod-v1-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
2 changes: 1 addition & 1 deletion cmd/scheduler/cmd/restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var restartCmd = &cobra.Command{

log.Printf("Project ID: %v", projectID)
if projectID == "" {
return errors.New("not found project variable")
return errors.New("project variable not found")
}

ctx, cancel := context.WithTimeout(context.Background(), time.Duration(timeout)*time.Second)
Expand Down
2 changes: 1 addition & 1 deletion cmd/scheduler/cmd/stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var stopCmd = &cobra.Command{

log.Printf("Project ID: %v", projectID)
if projectID == "" {
return errors.New("not found project variable")
return errors.New("project variable not found")
}

ctx, cancel := context.WithTimeout(context.Background(), time.Duration(timeout)*time.Second)
Expand Down
2 changes: 1 addition & 1 deletion operator/gke.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ func GetOriginalNodePoolSize(ctx context.Context, projectID, targetLabel, labelV
}

for _, url := range nodePool.InstanceGroupUrls {
// u;rl is below format
// url is below format
// e.g. https://www.googleapis.com/compute/v1/projects/{ProjectID}/zones/us-central1-a/instanceGroupManagers/gke-standard-cluster-1-default-pool-1234abcd-grp
urlSplit := strings.Split(url, "/")
instanceGroupName := urlSplit[len(urlSplit)-1]
Expand Down
2 changes: 1 addition & 1 deletion operator/instance_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func InstanceGroup(ctx context.Context, projectID string) *InstanceGroupCall {
return &InstanceGroupCall{error: err}
}

// get all instance group mangers list
// get all instance group managers list
managerList, err := compute.NewInstanceGroupManagersService(s).AggregatedList(projectID).Do()
if err != nil {
return &InstanceGroupCall{error: err}
Expand Down
2 changes: 1 addition & 1 deletion scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func SwitchInstanceState(ctx context.Context, msg *pubsub.Message) error {

var e Env
if err := envconfig.Process("", &e); err != nil {
log.Printf("Error at the fucntion 'DecodeMessage': %v", err)
log.Printf("Error at the function 'DecodeMessage': %v", err)
return err
}
if e.SlackNotify && (e.SlackToken == "" || e.SlackChannel == "") {
Expand Down