Skip to content

Commit

Permalink
feat(kong) : Switch to tf 0.12 (#82)
Browse files Browse the repository at this point in the history
* feat(kong) : Switch to tf 0.12

Signed-off-by: Kyos <[email protected]>

* fix(kong) : Fix test

Signed-off-by: Kyos <[email protected]>

* fix(kong) : Update documentation

Signed-off-by: Kyos <[email protected]>
  • Loading branch information
Kyos authored and kevholditch committed Jul 16, 2019
1 parent 7970c11 commit 3bd0f49
Show file tree
Hide file tree
Showing 1,994 changed files with 590,039 additions and 47,005 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ resource "kong_route" "route" {
protocols = [ "tcp" ]
strip_path = true
preserve_host = false
source = {
source {
ip = "192.168.1.1"
port = 80
}
source = {
source {
ip = "192.168.1.2"
}
destination = {
destination {
ip = "172.10.1.1"
port = 81
}
Expand Down Expand Up @@ -315,34 +315,34 @@ resource "kong_upstream" "upstream" {
hash_fallback_header = "FallbackHeaderName"
hash_on_cookie = "CookieName"
hash_on_cookie_path = "/path"
healthchecks = {
active = {
healthchecks {
active {
type = "https"
http_path = "/status"
timeout = 10
concurrency = 20
https_verify_certificate = false
https_sni = "some.domain.com"
healthy = {
healthy {
successes = 1
interval = 5
http_statuses = [200, 201]
}
unhealthy = {
unhealthy {
timeouts = 7
interval = 3
tcp_failures = 1
http_failures = 2
http_statuses = [500, 501]
}
}
passive = {
passive {
type = "https"
healthy = {
healthy {
successes = 1
http_statuses = [200, 201, 202]
}
unhealthy = {
unhealthy {
timeouts = 3
tcp_failures = 5
http_failures = 6
Expand Down
18 changes: 18 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module github.com/kevholditch/terraform-provider-kong

go 1.12

require (
github.com/cenk/backoff v0.0.0-20171020064038-309aa717adbf // indirect
github.com/elazarl/goproxy v0.0.0-20190421051319-9d40249d3c2f // indirect
github.com/elazarl/goproxy/ext v0.0.0-20190421051319-9d40249d3c2f // indirect
github.com/fsouza/go-dockerclient v0.0.0-20160427172547-1d4f4ae73768 // indirect
github.com/go-sql-driver/mysql v1.4.1 // indirect
github.com/hashicorp/terraform v0.12.1
github.com/kevholditch/gokong v4.1.0+incompatible
github.com/moul/http2curl v1.0.0 // indirect
github.com/parnurzeal/gorequest v0.2.15 // indirect
github.com/phayes/freeport v0.0.0-20180830031419-95f893ade6f2 // indirect
github.com/pkg/errors v0.0.0-20171018195549-f15c970de5b7 // indirect
gopkg.in/ory-am/dockertest.v3 v3.0.9 // indirect
)
439 changes: 439 additions & 0 deletions go.sum

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions kong/resource_kong_route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,14 @@ resource "kong_route" "route" {
protocols = [ "tcp" ]
strip_path = true
preserve_host = false
source = {
source {
ip = "192.168.1.1"
port = 80
}
source = {
source {
ip = "192.168.1.2"
}
destination = {
destination {
ip = "172.10.1.1"
port = 81
}
Expand All @@ -227,15 +227,15 @@ resource "kong_route" "route" {
protocols = [ "tcp" ]
strip_path = true
preserve_host = false
source = {
source {
ip = "192.168.1.1"
port = 80
}
destination = {
destination {
ip = "172.10.1.1"
port = 81
}
destination = {
destination {
ip = "172.10.1.2"
port = 82
}
Expand Down
14 changes: 7 additions & 7 deletions kong/resource_kong_upstream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1055,34 +1055,34 @@ resource "kong_upstream" "upstream" {
hash_fallback_header = "FallbackHeaderName"
hash_on_cookie = "CookieName"
hash_on_cookie_path = "/path"
healthchecks = {
active = {
healthchecks {
active {
type = "https"
http_path = "/status"
timeout = 10
concurrency = 20
https_verify_certificate = false
https_sni = "some.domain.com"
healthy = {
healthy {
successes = 1
interval = 5
http_statuses = [200, 201]
}
unhealthy = {
unhealthy {
timeouts = 7
interval = 3
tcp_failures = 1
http_failures = 2
http_statuses = [500, 501]
}
}
passive = {
passive {
type = "https"
healthy = {
healthy {
successes = 1
http_statuses = [200, 201, 202]
}
unhealthy = {
unhealthy {
timeouts = 3
tcp_failures = 5
http_failures = 6
Expand Down
15 changes: 15 additions & 0 deletions vendor/cloud.google.com/go/AUTHORS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions vendor/cloud.google.com/go/CONTRIBUTORS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3bd0f49

Please sign in to comment.