Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating plugin to use helm version 3 #378

Merged
merged 38 commits into from
Feb 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
4357ffb
Initial Commit
Oct 13, 2019
27175a8
First pass at Adding Data Repository Back
Oct 14, 2019
cb862dd
Re-enabled the resource repository resource and its tests
Oct 21, 2019
c8adb8a
Got the create and read release functions to build.
Oct 24, 2019
64def7d
Cleaned up the cruft
Oct 24, 2019
c213bb5
Update now compiles
Oct 24, 2019
4cf6f79
Creating a release now, its just in the wrong namespace.
Oct 27, 2019
ce9554d
Upgraded to helm rc1
Oct 30, 2019
2c2b661
Got a single test to pass
Oct 30, 2019
950e30b
Test Number 2 working now
Oct 31, 2019
f057348
A few more tests passing.
Oct 31, 2019
6a1e2fc
All but one test now passes.
Nov 13, 2019
dda128e
Updated to v3.0 of helm
Nov 15, 2019
1effba1
Merge upstream/master into dev-v3
Nov 15, 2019
a1ade3a
Fixed an issue with helm paths
Nov 15, 2019
20113cd
Set the default driver to secret.
Nov 15, 2019
2cb3d1c
Switch to sigs.k8s.io/yaml for yaml unmarshalling (#1)
relu Nov 20, 2019
4936acb
Fixing the test I broke
Nov 22, 2019
f75bd84
Added kubeconfig settings overrides back into project
Nov 22, 2019
103c88e
Updated the documentation. Added missing username/password settings f…
Nov 22, 2019
c389217
Fixed a failing test
Nov 23, 2019
98bee23
Merge upstream/master into dev-v3
Nov 23, 2019
d36706a
Corrected the documentation. I had borked it earlier.
Nov 23, 2019
a799d28
Updated the vendor folder
Nov 23, 2019
dcebd02
Removed tests from provider that were no longer needed.
Nov 23, 2019
21aad91
Dev v3 fix kubernetes configuration (#2)
relu Nov 24, 2019
738323a
Refactor namespace configuration and prevent namespace override via r…
relu Nov 29, 2019
2e5a3a0
Dev v3 (#4)
relu Nov 30, 2019
139d41c
Fix tests (#5)
relu Dec 2, 2019
662d2d7
Updated changelog
Dec 8, 2019
271a6bb
Adding missing parameter replace to release resource.
Dec 8, 2019
a5cce93
Updating helm module to v3.0.2
Dec 19, 2019
f6a8d75
Refactor kubernetes initialization (#6)
relu Jan 16, 2020
23ffa8c
Fix mod vendors (#8)
relu Jan 16, 2020
8b2dc56
Fix parallel execution of concurrent release test (#9)
relu Jan 17, 2020
0ab4bd2
Add explicit depends_on to helm_release resource (#10)
relu Jan 17, 2020
78d9f7e
Bump helm dep module version to v3.0.3
relu Feb 3, 2020
d23f1f9
Merge pull request #11 from relu/dev-v3
aaronmell Feb 4, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
49 changes: 49 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,52 @@
## 1.0.0 (Unreleased)
BREAKING CHANGES:
* No longer supports helm v2 (#378)
* Provider no longer supports the following parameters
* host
* home
* namespace
* init_helm_home
* install_tiller
* tiller_image
* connection_timeout
* service_account
* automount_service_account_token
* override
* max_history (Moved to the release)
* plugins_disable
* insecure
* enable_tls
* client_key
* client_certificate
* ca_certificate
* Release no longer supports the following parameters
* disable_crd_hooks
* Release Parameters that were renamed
* reuse was renamed to replace to match the rename in helm v3

Improvements:
* Upgrade Helm to v3.0
* Adds the following parameters to the provider
* plugins_path - (Optional) The path to the plugins directory. Defaults to `HELM_PLUGINS` env if it is set, otherwise uses the default path set by helm.
* registry_config_path - (Optional) The path to the registry config file. Defaults to `HELM_REGISTRY_CONFIG` env if it is set, otherwise uses the default path set by helm.
* repository_config_path - (Optional) The path to the file containing repository names and URLs. Defaults to `HELM_REPOSITORY_CONFIG` env if it is set, otherwise uses the default path set by helm.
* repository_cache - (Optional) The path to the file containing cached repository indexes. Defaults to `HELM_REPOSITORY_CACHE` env if it is set, otherwise uses the default path set by helm.
* helm_driver - (Optional) "The backend storage driver. Valid values are: `configmap`, `secret`, `memory`. Defaults to `secret`
* Adds the following parameters to the release
* repository_key_file - (Optional) The repositories cert key file
* repository_cert_file - (Optional) The repositories cert file
* repository_ca_file - (Optional) The Repositories CA File.
* repository_username - (Optional) Username for HTTP basic authentication against the repository.
* repository_password - (Optional) Password for HTTP basic authentication against the reposotory.
* reset_values - (Optional) When upgrading, reset the values to the ones built into the chart. Defaults to `false`.
* cleanup_on_fail - (Optional) Allow deletion of new resources created in this upgrade when upgrade fails. Defaults to `false`.
* max_history - (Optional) Maximum number of release versions stored per release. Defaults to 0 (no limit).
* atomic - (Optional) If set, installation process purges chart on fail. The wait flag will be set automatically if atomic is used. Defaults to false.
* skip_crds - (Optional) If set, no CRDs will be installed. By default, CRDs are installed if not already present. Defaults to false.
* render_subchart_notes - (Optional) If set, render subchart notes along with the parent. Defaults to true.
* dependency_update - (Optional) Runs helm dependency update before installing the chart. Defaults to false


## 0.10.5 (Unreleased)
## 0.10.4 (October 28, 2019)

Expand Down
126 changes: 27 additions & 99 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,108 +3,36 @@ module github.com/terraform-providers/terraform-provider-helm
go 1.12

require (
github.com/DATA-DOG/go-sqlmock v1.3.3 // indirect
github.com/MakeNowJust/heredoc v0.0.0-20171113091838-e9091a26100e // indirect
github.com/Masterminds/goutils v1.1.0 // indirect
github.com/Masterminds/semver v1.4.2 // indirect
github.com/Masterminds/sprig v2.18.0+incompatible // indirect
github.com/chai2010/gettext-go v0.0.0-20170215093142-bf70f2a70fb1 // indirect
github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f // indirect
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f // indirect
github.com/cyphar/filepath-securejoin v0.2.2 // indirect
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
github.com/docker/distribution v2.7.1+incompatible // indirect
github.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect
github.com/elazarl/goproxy v0.0.0-20190911111923-ecfe977594f1 // indirect
github.com/evanphx/json-patch v4.5.0+incompatible // indirect
github.com/fatih/camelcase v1.0.0 // indirect
github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32
github.com/gobuffalo/packr v1.25.0 // indirect
github.com/gobwas/glob v0.2.3 // indirect
github.com/gogo/protobuf v1.3.0 // indirect
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 // indirect
github.com/googleapis/gnostic v0.3.1 // indirect
github.com/gophercloud/gophercloud v0.4.0 // indirect
github.com/gorilla/websocket v1.4.1 // indirect
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect
github.com/grpc-ecosystem/go-grpc-middleware v1.1.0 // indirect
github.com/grpc-ecosystem/grpc-gateway v1.11.2 // indirect
github.com/hashicorp/terraform-plugin-sdk v1.1.0
github.com/huandu/xstrings v1.2.0 // indirect
github.com/imdario/mergo v0.3.7 // indirect
github.com/jmoiron/sqlx v1.2.0 // indirect
github.com/mitchellh/go-homedir v1.1.0
github.com/opencontainers/go-digest v1.0.0-rc1 // indirect
github.com/prometheus/client_golang v1.1.0 // indirect
github.com/rubenv/sql-migrate v0.0.0-20190327083759-54bad0a9b051 // indirect
github.com/russross/blackfriday v2.0.0+incompatible // indirect
github.com/soheilhy/cmux v0.1.4 // indirect
github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5 // indirect
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 // indirect
github.com/ziutek/mymysql v1.5.4 // indirect
golang.org/x/net v0.0.0-20191002035440-2ec189313ef0 // indirect
golang.org/x/sys v0.0.0-20191002091554-b397fe3ad8ed // indirect
google.golang.org/genproto v0.0.0-20190927181202-20e1ac93f88c // indirect
google.golang.org/grpc v1.24.0
gopkg.in/gorp.v1 v1.7.2 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/square/go-jose.v2 v2.3.1 // indirect
gopkg.in/yaml.v2 v2.2.4
github.com/opencontainers/runc v1.0.0-rc2.0.20190611121236-6cc515888830 // indirect
github.com/pkg/errors v0.8.1
helm.sh/helm/v3 v3.0.3
k8s.io/api v0.0.0
k8s.io/apiextensions-apiserver v0.0.0 // indirect
k8s.io/apimachinery v0.0.0
k8s.io/cli-runtime v0.0.0 // indirect
k8s.io/client-go v0.0.0
k8s.io/helm v2.15.1+incompatible
k8s.io/klog v1.0.0 // indirect
k8s.io/kube-openapi v0.0.0-20190918143330-0270cf2f1c1d // indirect
k8s.io/kubernetes v1.15.5 // indirect
vbom.ml/util v0.0.0-20180919145318-efcd4e0f9787 // indirect
k8s.io/kubectl v0.0.0 // indirect
sigs.k8s.io/yaml v1.1.0
)

replace github.com/russross/blackfriday => github.com/russross/blackfriday v1.5.2

replace k8s.io/api => k8s.io/api v0.0.0-20191016110246-af539daaa43a

replace k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.0.0-20191016113439-b64f2075a530

replace k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20191004115701-31ade1b30762

replace k8s.io/apiserver => k8s.io/apiserver v0.0.0-20191016111841-d20af8c7efc5

replace k8s.io/cli-runtime => k8s.io/cli-runtime v0.0.0-20191016113937-7693ce2cae74

replace k8s.io/client-go => k8s.io/client-go v0.0.0-20191016110837-54936ba21026

replace k8s.io/cloud-provider => k8s.io/cloud-provider v0.0.0-20191016115248-b061d4666016

replace k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.0.0-20191016115051-4323e76404b0

replace k8s.io/code-generator => k8s.io/code-generator v0.0.0-20190612205613-18da4a14b22b

replace k8s.io/component-base => k8s.io/component-base v0.0.0-20191016111234-b8c37ee0c266

replace k8s.io/cri-api => k8s.io/cri-api v0.0.0-20190817025403-3ae76f584e79

replace k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.0.0-20191016115443-72c16c0ea390

replace k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.0.0-20191016112329-27bff66d0b7c

replace k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.0.0-20191016114902-c7514f1b89da

replace k8s.io/kube-proxy => k8s.io/kube-proxy v0.0.0-20191016114328-7650d5e6588e

replace k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.0.0-20191016114710-682e84547325

replace k8s.io/kubectl => k8s.io/kubectl v0.0.0-20190602132728-7075c07e78bf

replace k8s.io/kubelet => k8s.io/kubelet v0.0.0-20191016114520-100045381629

replace k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.0.0-20191016115707-22244e5b01eb

replace k8s.io/metrics => k8s.io/metrics v0.0.0-20191016113728-f445c7b35c1c

replace k8s.io/node-api => k8s.io/node-api v0.0.0-20191016115915-6ca2fdc4797b

replace k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.0.0-20191016112728-ceb381866e80

replace k8s.io/sample-cli-plugin => k8s.io/sample-cli-plugin v0.0.0-20191016114133-1e47bf8f13f2

replace k8s.io/sample-controller => k8s.io/sample-controller v0.0.0-20191016113108-ba18715371a3
replace (
// github.com/Azure/go-autorest/autorest has different versions for the Go
// modules than it does for releases on the repository. Note the correct
// version when updating.
github.com/docker/docker => github.com/moby/moby v0.7.3-0.20190826074503-38ab9da00309
github.com/miekg/dns => github.com/miekg/dns v0.0.0-20181005163659-0d29b283ac0f

// k8s.io/kubernetes has a go.mod file that sets the version of the following
// modules to v0.0.0. This causes go to throw an error. These need to be set
// to a version for Go to process them. Here they are set to the same
// revision as the marked version of Kubernetes. When Kubernetes is updated
// these need to be updated as well.
k8s.io/api => k8s.io/api v0.0.0-20191016110408-35e52d86657a
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.0.0-20191016113550-5357c4baaf65
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20191004115801-a2eda9f80ab8
k8s.io/cli-runtime => k8s.io/cli-runtime v0.0.0-20191016114015-74ad18325ed5
k8s.io/client-go => k8s.io/client-go v0.0.0-20191016111102-bec269661e48
k8s.io/kubectl => k8s.io/kubectl v0.0.0-20191016120415-2ed914427d51
)
Loading