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

helm_repository: deprecated #466

Merged
merged 1 commit into from
Apr 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions helm/data_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import (

func dataRepository() *schema.Resource {
return &schema.Resource{
DeprecationMessage: "This resource is deprecated and will be removed in the next major version.",

Read: dataRepositoryRead,
Schema: map[string]*schema.Schema{
"name": {
Expand Down
8 changes: 3 additions & 5 deletions website/docs/d/repository.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ description: |-

# Data Source: helm_repository

!> **Warning:** This resource is deprecated and will be removed in the next major version.

A chart repository is a location where packaged charts can be stored and shared.

`helm_repository` describes a helm repository.
Expand Down Expand Up @@ -49,8 +51,4 @@ exported:
The `metadata` block supports:

* `name` - Name of the repository read from the home.
* `url` - URL of the repository read from the home.

## Old resource helm_repository

Before 0.9.0 `helm_repository` was a resource and not a data source. The old resource is now a shim to the data source to preserve backwards compatibility. As the use of the resource is deprecated it is strongly suggested to move to the new data source as the compatibility will be removed in a future release.
* `url` - URL of the repository read from the home.
11 changes: 3 additions & 8 deletions website/docs/r/release.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,9 @@ A Chart is a Helm package. It contains all of the resource definitions necessary
## Example Usage

```hcl
data "helm_repository" "stable" {
name = "stable"
url = "https://kubernetes-charts.storage.googleapis.com"
}

resource "helm_release" "example" {
name = "my-redis-release"
repository = data.helm_repository.stable.metadata[0].name
repository = "https://kubernetes-charts.storage.googleapis.com"
chart = "redis"
version = "6.0.1"

Expand Down Expand Up @@ -65,12 +60,12 @@ The following arguments are supported:

* `name` - (Required) Release name.
* `chart` - (Required) Chart name to be installed. A path may be used.
* `repository` - (Optional) Repository where to locate the requested chart. If is an URL the chart is installed without installing the repository.
* `repository` - (Optional) Repository URL where to locate the requested chart.
* `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.
* `repository_password` - (Optional) Password for HTTP basic authentication against the repository.
* `devel` - (Optional) Use chart development versions, too. Equivalent to version '>0.0.0-0'. If version is set, this is ignored.
* `version` - (Optional) Specify the exact chart version to install. If this is not specified, the latest version is installed.
* `namespace` - (Optional) The namespace to install the release into. Defaults to `default`
Expand Down