Skip to content

Commit 5ddd0e2

Browse files
Merge pull request #7 from AndrewChubatiuk/public-net-addr-mgmt
Public Net Addresses Management
2 parents 5aa6675 + 2ee54f3 commit 5ddd0e2

File tree

9 files changed

+341
-543
lines changed

9 files changed

+341
-543
lines changed

.circleci/config.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ executors:
77
go-linux:
88
resource_class: medium
99
docker:
10-
- image: docker.mirror.hashicorp.services/golang:1.17.4
10+
- image: docker.mirror.hashicorp.services/golang:1.19.2
1111
shell: /usr/bin/env bash -euo pipefail -c
1212
environment:
1313
GO111MODULE: "on"
14+
HCLOUD_ENDPOINT: http://localhost:3000/v1
1415
working_directory: /go/src/github.com/AndrewChubatiuk/nomad-hcloud-autoscaler
1516

1617
jobs:
@@ -39,6 +40,10 @@ jobs:
3940

4041
linux-test-go:
4142
executor: go-linux
43+
docker:
44+
- image: docker.mirror.hashicorp.services/golang:1.19.2
45+
- image: mockoon/cli:latest
46+
command: -d https://raw.githubusercontent.com/mockoon/mock-samples/main/mock-apis/data/hetznercloud.json --port 3000
4247
steps:
4348
- checkout
4449
- run: make test-tools

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ tools: lint-tools test-tools
1515
.PHONY: test-tools
1616
test-tools: ## Install the tools used to run tests
1717
@echo "==> Installing test tools..."
18-
GO111MODULE=on go install gotest.tools/gotestsum@v1.7.0
18+
GO111MODULE=on go install gotest.tools/gotestsum@v1.8.2
1919
@echo "==> Done"
2020

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

go.mod

Lines changed: 53 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,66 @@
11
module github.com/AndrewChubatiuk/nomad-hcloud-autoscaler
22

3-
go 1.16
3+
go 1.19
44

55
require (
6-
github.com/armon/go-metrics v0.3.10 // indirect
76
github.com/creasty/defaults v1.6.0
8-
github.com/fatih/color v1.13.0 // indirect
97
github.com/go-playground/locales v0.14.0
108
github.com/go-playground/universal-translator v0.18.0
11-
github.com/go-playground/validator/v10 v10.10.1
12-
github.com/google/go-cmp v0.5.7 // indirect
9+
github.com/go-playground/validator/v10 v10.11.1
1310
github.com/google/uuid v1.3.0
11+
github.com/hashicorp/go-hclog v1.3.1
12+
github.com/hashicorp/nomad-autoscaler v0.3.7
13+
github.com/hashicorp/nomad/api v0.0.0-20221104202511-7828c02a5046
14+
github.com/hetznercloud/hcloud-go v1.35.3
15+
github.com/mitchellh/mapstructure v1.5.0
16+
github.com/stretchr/testify v1.8.1
17+
)
18+
19+
require (
20+
github.com/agext/levenshtein v1.2.3 // indirect
21+
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
22+
github.com/armon/go-metrics v0.4.1 // indirect
23+
github.com/beorn7/perks v1.0.1 // indirect
24+
github.com/cespare/xxhash/v2 v2.1.2 // indirect
25+
github.com/davecgh/go-spew v1.1.1 // indirect
26+
github.com/fatih/color v1.13.0 // indirect
27+
github.com/golang/protobuf v1.5.2 // indirect
28+
github.com/google/go-cmp v0.5.9 // indirect
1429
github.com/gorilla/websocket v1.5.0 // indirect
15-
github.com/hashicorp/consul/api v1.12.0 // indirect
16-
github.com/hashicorp/go-hclog v1.2.0
30+
github.com/hashicorp/consul/api v1.15.3 // indirect
31+
github.com/hashicorp/cronexpr v1.1.1 // indirect
32+
github.com/hashicorp/errwrap v1.1.0 // indirect
33+
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
1734
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
18-
github.com/hashicorp/go-plugin v1.4.3 // indirect
19-
github.com/hashicorp/hcl/v2 v2.11.1 // indirect
20-
github.com/hashicorp/nomad-autoscaler v0.3.6
21-
github.com/hashicorp/nomad/api v0.0.0-20220412123539-86ca8f7e736e
22-
github.com/hashicorp/serf v0.9.7 // indirect
23-
github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 // indirect
24-
github.com/hetznercloud/hcloud-go v1.33.1
25-
github.com/mattn/go-colorable v0.1.12 // indirect
35+
github.com/hashicorp/go-multierror v1.1.1 // indirect
36+
github.com/hashicorp/go-plugin v1.4.5 // indirect
37+
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
38+
github.com/hashicorp/golang-lru v0.5.4 // indirect
39+
github.com/hashicorp/hcl/v2 v2.14.1 // indirect
40+
github.com/hashicorp/serf v0.10.1 // indirect
41+
github.com/hashicorp/yamux v0.1.1 // indirect
42+
github.com/leodido/go-urn v1.2.1 // indirect
43+
github.com/mattn/go-colorable v0.1.13 // indirect
44+
github.com/mattn/go-isatty v0.0.16 // indirect
45+
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
2646
github.com/mitchellh/copystructure v1.2.0 // indirect
27-
github.com/mitchellh/mapstructure v1.4.3
47+
github.com/mitchellh/go-homedir v1.1.0 // indirect
48+
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
49+
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
50+
github.com/mitchellh/reflectwalk v1.0.2 // indirect
2851
github.com/oklog/run v1.1.0 // indirect
29-
github.com/prometheus/common v0.33.0 // indirect
30-
github.com/stretchr/testify v1.7.1
31-
github.com/zclconf/go-cty v1.10.0 // indirect
32-
golang.org/x/net v0.0.0-20220412020605-290c469a71a5 // indirect
33-
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad // indirect
34-
google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac // indirect
52+
github.com/pmezard/go-difflib v1.0.0 // indirect
53+
github.com/prometheus/client_golang v1.13.1 // indirect
54+
github.com/prometheus/client_model v0.3.0 // indirect
55+
github.com/prometheus/common v0.37.0 // indirect
56+
github.com/prometheus/procfs v0.8.0 // indirect
57+
github.com/zclconf/go-cty v1.12.0 // indirect
58+
golang.org/x/crypto v0.1.0 // indirect
59+
golang.org/x/net v0.1.0 // indirect
60+
golang.org/x/sys v0.1.0 // indirect
61+
golang.org/x/text v0.4.0 // indirect
62+
google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c // indirect
63+
google.golang.org/grpc v1.50.1 // indirect
64+
google.golang.org/protobuf v1.28.1 // indirect
65+
gopkg.in/yaml.v3 v3.0.1 // indirect
3566
)
36-
37-
replace github.com/hetznercloud/hcloud-go v1.33.1 => github.com/AndrewChubatiuk/hcloud-go v1.33.2

0 commit comments

Comments
 (0)