Skip to content

Commit 12c1c89

Browse files
authored
Add write-only attribute "set_wo" (#1592)
1 parent 634fe7f commit 12c1c89

File tree

7 files changed

+383
-159
lines changed

7 files changed

+383
-159
lines changed

.changelog/1592.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:feature
2+
`helm_release`: Add `set_wo` write-only attribute
3+
```

docs/resources/release.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ A Chart is a Helm package. It contains all of the resource definitions necessary
5050
- `reset_values` (Boolean) When upgrading, reset the values to the ones built into the chart. Defaults to `false`.
5151
- `reuse_values` (Boolean) When upgrading, reuse the last release's values and merge in any overrides. If 'reset_values' is specified, this is ignored. Defaults to `false`.
5252
- `set` (Block Set) Custom values to be merged with the values. (see [below for nested schema](#nestedblock--set))
53+
- `set_wo` (Attribute List) Custom values to be merged with the values. This is the same as "set" but write-only. (see [below for nested schema](#nestedblock--set))
54+
- `set_wo_revision` (Number) The current revision of the write-only "set_wo" attribute. Incrementing this integer value will cause Terraform to update the write-only value.`
5355
- `set_list` (Block List) Custom list values to be merged with the values. (see [below for nested schema](#nestedblock--set_list))
5456
- `set_sensitive` (Block Set) Custom sensitive values to be merged with the values. (see [below for nested schema](#nestedblock--set_sensitive))
5557
- `skip_crds` (Boolean) If set, no CRDs will be installed. By default, CRDs are installed if not already present. Defaults to `false`.

go.mod

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
module github.com/hashicorp/terraform-provider-helm
22

3-
go 1.22.0
3+
go 1.22.7
44

5-
toolchain go1.22.3
5+
toolchain go1.24.0
66

77
require (
8-
github.com/hashicorp/go-cty v1.4.1-0.20200723130312-85980079f637
9-
github.com/hashicorp/terraform-plugin-docs v0.19.4
10-
github.com/hashicorp/terraform-plugin-framework v1.11.0
8+
github.com/hashicorp/terraform-plugin-docs v0.20.1
9+
github.com/hashicorp/terraform-plugin-framework v1.14.1
1110
github.com/hashicorp/terraform-plugin-framework-validators v0.13.0
12-
github.com/hashicorp/terraform-plugin-go v0.23.0
11+
github.com/hashicorp/terraform-plugin-go v0.26.0
1312
github.com/hashicorp/terraform-plugin-log v0.9.0
14-
github.com/hashicorp/terraform-plugin-sdk/v2 v2.34.0
15-
github.com/hashicorp/terraform-plugin-testing v1.10.0
13+
github.com/hashicorp/terraform-plugin-testing v1.11.0
1614
github.com/mitchellh/go-homedir v1.1.0
1715
github.com/pkg/errors v0.9.1
18-
github.com/stretchr/testify v1.8.4
19-
golang.org/x/crypto v0.31.0
16+
github.com/stretchr/testify v1.9.0
17+
golang.org/x/crypto v0.32.0
2018
helm.sh/helm/v3 v3.15.3
2119
k8s.io/api v0.30.3
2220
k8s.io/apimachinery v0.30.3
@@ -28,7 +26,7 @@ require (
2826

2927
require (
3028
github.com/Kunde21/markdownfmt/v3 v3.1.0 // indirect
31-
github.com/bmatcuk/doublestar/v4 v4.6.1 // indirect
29+
github.com/bmatcuk/doublestar/v4 v4.7.1 // indirect
3230
github.com/hashicorp/cli v1.1.6 // indirect
3331
github.com/rivo/uniseg v0.2.0 // indirect
3432
)
@@ -50,7 +48,7 @@ require (
5048
github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef // indirect
5149
github.com/beorn7/perks v1.0.1 // indirect
5250
github.com/bgentry/speakeasy v0.1.0 // indirect
53-
github.com/cespare/xxhash/v2 v2.2.0 // indirect
51+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
5452
github.com/chai2010/gettext-go v1.0.2 // indirect
5553
github.com/cloudflare/circl v1.3.7 // indirect
5654
github.com/containerd/containerd v1.7.12 // indirect
@@ -72,7 +70,7 @@ require (
7270
github.com/ghodss/yaml v1.0.0 // indirect
7371
github.com/go-errors/errors v1.4.2 // indirect
7472
github.com/go-gorp/gorp/v3 v3.1.0 // indirect
75-
github.com/go-logr/logr v1.4.1 // indirect
73+
github.com/go-logr/logr v1.4.2 // indirect
7674
github.com/go-logr/stdr v1.2.2 // indirect
7775
github.com/go-openapi/jsonpointer v0.19.6 // indirect
7876
github.com/go-openapi/jsonreference v0.20.2 // indirect
@@ -93,18 +91,20 @@ require (
9391
github.com/hashicorp/errwrap v1.1.0 // indirect
9492
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
9593
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
94+
github.com/hashicorp/go-cty v1.4.1-0.20200723130312-85980079f637 // indirect
9695
github.com/hashicorp/go-hclog v1.6.3 // indirect
9796
github.com/hashicorp/go-multierror v1.1.1 // indirect
98-
github.com/hashicorp/go-plugin v1.6.0 // indirect
97+
github.com/hashicorp/go-plugin v1.6.2 // indirect
9998
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
10099
github.com/hashicorp/go-uuid v1.0.3 // indirect
101100
github.com/hashicorp/go-version v1.7.0 // indirect
102-
github.com/hashicorp/hc-install v0.8.0 // indirect
103-
github.com/hashicorp/hcl/v2 v2.21.0 // indirect
101+
github.com/hashicorp/hc-install v0.9.0 // indirect
102+
github.com/hashicorp/hcl/v2 v2.23.0 // indirect
104103
github.com/hashicorp/logutils v1.0.0 // indirect
105104
github.com/hashicorp/terraform-exec v0.21.0 // indirect
106-
github.com/hashicorp/terraform-json v0.22.1 // indirect
107-
github.com/hashicorp/terraform-registry-address v0.2.3 // indirect
105+
github.com/hashicorp/terraform-json v0.23.0 // indirect
106+
github.com/hashicorp/terraform-plugin-sdk/v2 v2.35.0 // indirect
107+
github.com/hashicorp/terraform-registry-address v0.2.4 // indirect
108108
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
109109
github.com/hashicorp/yamux v0.1.1 // indirect
110110
github.com/huandu/xstrings v1.4.0 // indirect
@@ -160,29 +160,29 @@ require (
160160
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
161161
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
162162
github.com/xlab/treeprint v1.2.0 // indirect
163-
github.com/yuin/goldmark v1.7.1 // indirect
163+
github.com/yuin/goldmark v1.7.7 // indirect
164164
github.com/yuin/goldmark-meta v1.1.0 // indirect
165165
github.com/zclconf/go-cty v1.15.0 // indirect
166166
go.abhg.dev/goldmark/frontmatter v0.2.0 // indirect
167167
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.45.0 // indirect
168-
go.opentelemetry.io/otel v1.21.0 // indirect
169-
go.opentelemetry.io/otel/metric v1.21.0 // indirect
170-
go.opentelemetry.io/otel/trace v1.21.0 // indirect
168+
go.opentelemetry.io/otel v1.31.0 // indirect
169+
go.opentelemetry.io/otel/metric v1.31.0 // indirect
170+
go.opentelemetry.io/otel/trace v1.31.0 // indirect
171171
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca // indirect
172172
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
173-
golang.org/x/mod v0.19.0 // indirect
174-
golang.org/x/net v0.25.0 // indirect
175-
golang.org/x/oauth2 v0.17.0 // indirect
173+
golang.org/x/mod v0.21.0 // indirect
174+
golang.org/x/net v0.34.0 // indirect
175+
golang.org/x/oauth2 v0.23.0 // indirect
176176
golang.org/x/sync v0.10.0 // indirect
177-
golang.org/x/sys v0.28.0 // indirect
178-
golang.org/x/term v0.27.0 // indirect
177+
golang.org/x/sys v0.29.0 // indirect
178+
golang.org/x/term v0.28.0 // indirect
179179
golang.org/x/text v0.21.0 // indirect
180180
golang.org/x/time v0.5.0 // indirect
181-
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
181+
golang.org/x/tools v0.22.0 // indirect
182182
google.golang.org/appengine v1.6.8 // indirect
183-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect
184-
google.golang.org/grpc v1.63.2 // indirect
185-
google.golang.org/protobuf v1.34.0 // indirect
183+
google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 // indirect
184+
google.golang.org/grpc v1.69.4 // indirect
185+
google.golang.org/protobuf v1.36.3 // indirect
186186
gopkg.in/inf.v0 v0.9.1 // indirect
187187
gopkg.in/yaml.v2 v2.4.0 // indirect
188188
gopkg.in/yaml.v3 v3.0.1 // indirect

0 commit comments

Comments
 (0)