Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit 50bfa64

Browse files
authored
Merge pull request #516 from simonswine/update-terraform-0.11.8
Update terraform 0.11.8
2 parents d10ad5d + 01ce8ed commit 50bfa64

File tree

413 files changed

+39534
-7335
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

413 files changed

+39534
-7335
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ test::tarmak::golang:
44
stage: test
55
tags:
66
- docker
7-
image: golang:1.9.5
7+
image: golang:1.10.4
88
script:
99
- rm -rf /go/src/github.com/jetstack
1010
- mkdir -p /go/src/github.com/jetstack
@@ -47,7 +47,7 @@ release::tarmak::golang:
4747
stage: release
4848
tags:
4949
- docker
50-
image: golang:1.9.5
50+
image: golang:1.10.4
5151
only:
5252
- tags
5353
script:

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1717
| Application | Supported versions | Default |
1818
|-------------|-------------------:|---------:|
1919
| Packer | | `1.0.2` |
20-
| Terraform | | `0.11.7` |
20+
| Terraform | | `0.11.8` |
2121
| Consul | | `1.0.6` |
2222
| Vault | | `0.9.5` |
2323
| Kubernetes | `>= 1.7 && < 1.11` | `1.10.6` |

Gopkg.lock

Lines changed: 38 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,27 +92,35 @@ required = [
9292

9393
[[constraint]]
9494
name = "github.com/hashicorp/terraform"
95-
version = "0.11.7"
95+
version = "0.11.8"
96+
97+
[[override]]
98+
name = "github.com/hashicorp/go-tfe"
99+
version = "=v0.1.2"
96100

97101
[[constraint]]
98102
name = "github.com/terraform-providers/terraform-provider-aws"
99-
version = "1.13.0"
103+
version = "1.35.0"
104+
105+
[[override]]
106+
name = "github.com/aws/aws-sdk-go"
107+
version = "v1.15.31"
100108

101109
[[constraint]]
102110
name = "github.com/terraform-providers/terraform-provider-random"
103-
version = "1.2.0"
111+
version = "2.0.0"
104112

105113
[[constraint]]
106114
name = "github.com/terraform-providers/terraform-provider-tls"
107-
version = "1.1.0"
115+
version = "1.2.0"
108116

109117
[[constraint]]
110118
name = "github.com/terraform-providers/terraform-provider-template"
111119
version = "1.0.0"
112120

113121
[[constraint]]
114122
name = "github.com/terraform-providers/terraform-provider-openstack"
115-
version = "0.1.0"
123+
version = "1.9.0"
116124

117125
[[override]]
118126
name = "github.com/Azure/azure-sdk-for-go"

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright Jetstack Ltd. See LICENSE for details.
22
PACKAGE_NAME ?= github.com/jetstack/tarmak
33
CONTAINER_DIR := /go/src/$(PACKAGE_NAME)
4-
GO_VERSION := 1.9.5
4+
GO_VERSION := 1.10.4
55

66
BINDIR ?= $(CURDIR)/bin
77
PATH := $(BINDIR):$(PATH)
@@ -21,15 +21,15 @@ GOPATH ?= /tmp/go
2121
UNAME_S := $(shell uname -s)
2222
ifeq ($(UNAME_S),Linux)
2323
SHASUM := sha256sum -c
24-
DEP_URL := https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64
25-
DEP_HASH := 31144e465e52ffbc0035248a10ddea61a09bf28b00784fd3fdd9882c8cbb2315
24+
DEP_URL := https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64
25+
DEP_HASH := 287b08291e14f1fae8ba44374b26a2b12eb941af3497ed0ca649253e21ba2f83
2626
GORELEASER_URL := https://github.com/goreleaser/goreleaser/releases/download/v0.77.0/goreleaser_Linux_x86_64.tar.gz
2727
GORELEASER_HASH := aae3c5bb76b282e29940f2654b48b13e51f664368c7589d0e86b391b7ef51cc8
2828
endif
2929
ifeq ($(UNAME_S),Darwin)
3030
SHASUM := shasum -a 256 -c
31-
DEP_URL := https://github.com/golang/dep/releases/download/v0.4.1/dep-darwin-amd64
32-
DEP_HASH := 1544afdd4d543574ef8eabed343d683f7211202a65380f8b32035d07ce0c45ef
31+
DEP_URL := https://github.com/golang/dep/releases/download/v0.5.0/dep-darwin-amd64
32+
DEP_HASH := 1a7bdb0d6c31ecba8b3fd213a1170adf707657123e89dff234871af9e0498be2
3333
GORELEASER_URL := https://github.com/goreleaser/goreleaser/releases/download/v0.77.0/goreleaser_Darwin_x86_64.tar.gz
3434
GORELEASER_HASH := bc6cdf2dfe506f2cce5abceb30da009bfd5bcdb3e52608c536e6c2ceea1f24fe
3535
endif

cmd/tarmak/cmd/terraform.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ package cmd
44
import (
55
"os"
66

7-
"github.com/hashicorp/go-plugin"
87
"github.com/spf13/cobra"
98

109
"github.com/jetstack/tarmak/pkg/tarmak/utils"
@@ -13,7 +12,6 @@ import (
1312

1413
// ensure plugin clients get closed after subcommand run
1514
func terraformPassthrough(args []string, f func([]string, <-chan struct{}) int) int {
16-
defer plugin.CleanupClients()
1715
return f(args, utils.MakeShutdownCh())
1816
}
1917

pkg/terraform/passthrough.go

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import (
77
"log"
88
"os"
99

10+
goPlugin "github.com/hashicorp/go-plugin"
11+
backendInit "github.com/hashicorp/terraform/backend/init"
1012
"github.com/hashicorp/terraform/command"
1113
"github.com/hashicorp/terraform/plugin"
1214
"github.com/mitchellh/cli"
@@ -28,6 +30,17 @@ var InternalProviders = map[string]plugin.ProviderFunc{
2830
"template": providertemplate.Provider,
2931
}
3032

33+
// Prepare passthrough environment
34+
func passthroughPrepare() {
35+
// initialise backends
36+
backendInit.Init(nil)
37+
}
38+
39+
func passthroughCleanup() {
40+
// cleanup clients
41+
goPlugin.CleanupClients()
42+
}
43+
3144
// create new terraform ui
3245
func newUI(out io.Writer, err io.Writer) cli.Ui {
3346

@@ -114,20 +127,26 @@ func InternalPlugin(args []string) int {
114127
}
115128

116129
func Plan(args []string, stopCh <-chan struct{}) int {
130+
passthroughPrepare()
131+
defer passthroughCleanup()
117132
c := &command.PlanCommand{
118133
Meta: newMeta(newUI(os.Stdout, os.Stderr), stopCh),
119134
}
120135
return c.Run(args)
121136
}
122137

123138
func Apply(args []string, stopCh <-chan struct{}) int {
139+
passthroughPrepare()
140+
defer passthroughCleanup()
124141
c := &command.ApplyCommand{
125142
Meta: newMeta(newUI(os.Stdout, os.Stderr), stopCh),
126143
}
127144
return c.Run(args)
128145
}
129146

130147
func Destroy(args []string, stopCh <-chan struct{}) int {
148+
passthroughPrepare()
149+
defer passthroughCleanup()
131150
c := &command.ApplyCommand{
132151
Meta: newMeta(newUI(os.Stdout, os.Stderr), stopCh),
133152
Destroy: true,
@@ -136,20 +155,26 @@ func Destroy(args []string, stopCh <-chan struct{}) int {
136155
}
137156

138157
func Init(args []string, stopCh <-chan struct{}) int {
158+
passthroughPrepare()
159+
defer passthroughCleanup()
139160
c := &command.InitCommand{
140161
Meta: newMeta(newUI(os.Stdout, os.Stderr), stopCh),
141162
}
142163
return c.Run(args)
143164
}
144165

145166
func Output(args []string, stopCh <-chan struct{}) int {
167+
passthroughPrepare()
168+
defer passthroughCleanup()
146169
c := &command.OutputCommand{
147170
Meta: newMeta(newUI(os.Stdout, os.Stderr), stopCh),
148171
}
149172
return c.Run(args)
150173
}
151174

152175
func Unlock(args []string, stopCh <-chan struct{}) int {
176+
passthroughPrepare()
177+
defer passthroughCleanup()
153178
c := &command.UnlockCommand{
154179
Meta: newMeta(newUI(os.Stdout, os.Stderr), stopCh),
155180
}

vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials.go

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/aws/aws-sdk-go/aws/endpoints/decode.go

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)