Skip to content

Commit

Permalink
Merge pull request #7 from AndrewChubatiuk/public-net-addr-mgmt
Browse files Browse the repository at this point in the history
Public Net Addresses Management
  • Loading branch information
AndrewChubatiuk authored Dec 2, 2022
2 parents 5aa6675 + 2ee54f3 commit 5ddd0e2
Show file tree
Hide file tree
Showing 9 changed files with 341 additions and 543 deletions.
7 changes: 6 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ executors:
go-linux:
resource_class: medium
docker:
- image: docker.mirror.hashicorp.services/golang:1.17.4
- image: docker.mirror.hashicorp.services/golang:1.19.2
shell: /usr/bin/env bash -euo pipefail -c
environment:
GO111MODULE: "on"
HCLOUD_ENDPOINT: http://localhost:3000/v1
working_directory: /go/src/github.com/AndrewChubatiuk/nomad-hcloud-autoscaler

jobs:
Expand Down Expand Up @@ -39,6 +40,10 @@ jobs:

linux-test-go:
executor: go-linux
docker:
- image: docker.mirror.hashicorp.services/golang:1.19.2
- image: mockoon/cli:latest
command: -d https://raw.githubusercontent.com/mockoon/mock-samples/main/mock-apis/data/hetznercloud.json --port 3000
steps:
- checkout
- run: make test-tools
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ tools: lint-tools test-tools
.PHONY: test-tools
test-tools: ## Install the tools used to run tests
@echo "==> Installing test tools..."
GO111MODULE=on go install gotest.tools/gotestsum@v1.7.0
GO111MODULE=on go install gotest.tools/gotestsum@v1.8.2
@echo "==> Done"

.PHONY: lint-tools
lint-tools: ## Install the tools used to lint
@echo "==> Installing lint tools..."
GO111MODULE=on go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.43.0
GO111MODULE=on go install honnef.co/go/tools/cmd/staticcheck@2021.1.2
GO111MODULE=on go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.50.1
GO111MODULE=on go install honnef.co/go/tools/cmd/staticcheck@v0.3.3
GO111MODULE=on go install github.com/hashicorp/go-hclog/hclogvet@latest
@echo "==> Done"

Expand Down
77 changes: 53 additions & 24 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,37 +1,66 @@
module github.com/AndrewChubatiuk/nomad-hcloud-autoscaler

go 1.16
go 1.19

require (
github.com/armon/go-metrics v0.3.10 // indirect
github.com/creasty/defaults v1.6.0
github.com/fatih/color v1.13.0 // indirect
github.com/go-playground/locales v0.14.0
github.com/go-playground/universal-translator v0.18.0
github.com/go-playground/validator/v10 v10.10.1
github.com/google/go-cmp v0.5.7 // indirect
github.com/go-playground/validator/v10 v10.11.1
github.com/google/uuid v1.3.0
github.com/hashicorp/go-hclog v1.3.1
github.com/hashicorp/nomad-autoscaler v0.3.7
github.com/hashicorp/nomad/api v0.0.0-20221104202511-7828c02a5046
github.com/hetznercloud/hcloud-go v1.35.3
github.com/mitchellh/mapstructure v1.5.0
github.com/stretchr/testify v1.8.1
)

require (
github.com/agext/levenshtein v1.2.3 // indirect
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
github.com/armon/go-metrics v0.4.1 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
github.com/hashicorp/consul/api v1.12.0 // indirect
github.com/hashicorp/go-hclog v1.2.0
github.com/hashicorp/consul/api v1.15.3 // indirect
github.com/hashicorp/cronexpr v1.1.1 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/go-plugin v1.4.3 // indirect
github.com/hashicorp/hcl/v2 v2.11.1 // indirect
github.com/hashicorp/nomad-autoscaler v0.3.6
github.com/hashicorp/nomad/api v0.0.0-20220412123539-86ca8f7e736e
github.com/hashicorp/serf v0.9.7 // indirect
github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 // indirect
github.com/hetznercloud/hcloud-go v1.33.1
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.4.5 // indirect
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/hashicorp/hcl/v2 v2.14.1 // indirect
github.com/hashicorp/serf v0.10.1 // indirect
github.com/hashicorp/yamux v0.1.1 // indirect
github.com/leodido/go-urn v1.2.1 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.16 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/mapstructure v1.4.3
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/oklog/run v1.1.0 // indirect
github.com/prometheus/common v0.33.0 // indirect
github.com/stretchr/testify v1.7.1
github.com/zclconf/go-cty v1.10.0 // indirect
golang.org/x/net v0.0.0-20220412020605-290c469a71a5 // indirect
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad // indirect
google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_golang v1.13.1 // indirect
github.com/prometheus/client_model v0.3.0 // indirect
github.com/prometheus/common v0.37.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
github.com/zclconf/go-cty v1.12.0 // indirect
golang.org/x/crypto v0.1.0 // indirect
golang.org/x/net v0.1.0 // indirect
golang.org/x/sys v0.1.0 // indirect
golang.org/x/text v0.4.0 // indirect
google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c // indirect
google.golang.org/grpc v1.50.1 // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

replace github.com/hetznercloud/hcloud-go v1.33.1 => github.com/AndrewChubatiuk/hcloud-go v1.33.2
Loading

0 comments on commit 5ddd0e2

Please sign in to comment.