Skip to content

Commit b4e68dc

Browse files
committed
Updates to Per Message TTL for 2.11.0
Signed-off-by: R.I.Pienaar <rip@devco.net>
1 parent ba75015 commit b4e68dc

File tree

9 files changed

+253
-111
lines changed

9 files changed

+253
-111
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ resource "jetstream_stream" "TRANSFORM" {
171171
* `allow_rollup_hdrs` - (optional) Allows the use of the Nats-Rollup header to replace all contents of a stream, or subject in a stream, with a single new message (bool)
172172
* `allow_direct` - (optional) Allow higher performance, direct access to get individual messages via the $JS.DS.GET API (bool)
173173
* `subject_transform` - (optional) A map of source and destination subjects to transform.
174+
* `allow_msg_ttl` - (optional) Enables Per Message TTLs
175+
* `subject_delete_marker_ttl` - (optional) Enables placing markers when Max Age removes messages, duration specified in seconds (number)
174176

175177
## jetstream_consumer
176178

docs/resources/jetstream_stream.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,6 @@ Above the `ORDERS_ARCHIVE` stream is a mirror of `ORDERS`, valid options for spe
7070
* `republish_destination` - (optional) The destination to publish messages to
7171
* `republish_headers_only` - (optional) Republish only message headers, no bodies
7272
* `inactive_threshold` - (optional) Removes the consumer after a idle period, specified as a duration in seconds
73-
* `max_ack_pending` - (optional) Maximum pending Acks before consumers are paused
73+
* `max_ack_pending` - (optional) Maximum pending Acks before consumers are paused
74+
* `allow_msg_ttl` - (optional) Enables Per Message TTLs
75+
* `subject_delete_marker_ttl` - (optional) Enables placing markers when Max Age removes messages, duration specified in seconds (number)

go.mod

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
module github.com/nats-io/terraform-provider-jetstream
22

3-
go 1.22.7
3+
go 1.23.6
44

55
require (
6-
github.com/google/go-cmp v0.6.0
7-
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
8-
github.com/nats-io/jsm.go v0.1.1-0.20250121102742-0e9a68ad4864
6+
github.com/google/go-cmp v0.7.0
7+
github.com/hashicorp/go-cty v1.5.0
8+
github.com/nats-io/jsm.go v0.2.0
99
github.com/nats-io/jwt/v2 v2.7.3
10-
github.com/nats-io/nats-server/v2 v2.11.0-dev.0.20250121155001-2a8ee64628f6
11-
github.com/nats-io/nats.go v1.38.0
10+
github.com/nats-io/nats-server/v2 v2.11.0
11+
github.com/nats-io/nats.go v1.40.1
1212
github.com/xeipuuv/gojsonschema v1.2.0
1313
)
1414

1515
require (
16-
github.com/ProtonMail/go-crypto v1.1.5 // indirect
16+
github.com/ProtonMail/go-crypto v1.1.6 // indirect
1717
github.com/agext/levenshtein v1.2.3 // indirect
1818
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
19-
github.com/cloudflare/circl v1.5.0 // indirect
19+
github.com/cloudflare/circl v1.6.0 // indirect
2020
github.com/dustin/go-humanize v1.0.1 // indirect
21-
github.com/expr-lang/expr v1.16.9 // indirect
21+
github.com/expr-lang/expr v1.17.2 // indirect
2222
github.com/fatih/color v1.18.0 // indirect
2323
github.com/golang/protobuf v1.5.4 // indirect
2424
github.com/google/go-tpm v0.9.3 // indirect
@@ -27,7 +27,7 @@ require (
2727
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
2828
github.com/hashicorp/go-hclog v1.6.3 // indirect
2929
github.com/hashicorp/go-multierror v1.1.1 // indirect
30-
github.com/hashicorp/go-plugin v1.6.2 // indirect
30+
github.com/hashicorp/go-plugin v1.6.3 // indirect
3131
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
3232
github.com/hashicorp/go-uuid v1.0.3 // indirect
3333
github.com/hashicorp/go-version v1.7.0 // indirect
@@ -36,13 +36,13 @@ require (
3636
github.com/hashicorp/logutils v1.0.0 // indirect
3737
github.com/hashicorp/terraform-exec v0.22.0 // indirect
3838
github.com/hashicorp/terraform-json v0.24.0 // indirect
39-
github.com/hashicorp/terraform-plugin-go v0.25.0 // indirect
39+
github.com/hashicorp/terraform-plugin-go v0.26.0 // indirect
4040
github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect
41-
github.com/hashicorp/terraform-plugin-sdk/v2 v2.35.0
41+
github.com/hashicorp/terraform-plugin-sdk/v2 v2.36.1
4242
github.com/hashicorp/terraform-registry-address v0.2.4 // indirect
4343
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
4444
github.com/hashicorp/yamux v0.1.2 // indirect
45-
github.com/klauspost/compress v1.17.11 // indirect
45+
github.com/klauspost/compress v1.18.0 // indirect
4646
github.com/mattn/go-colorable v0.1.14 // indirect
4747
github.com/mattn/go-isatty v0.0.20 // indirect
4848
github.com/minio/highwayhash v1.0.3 // indirect
@@ -51,7 +51,7 @@ require (
5151
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
5252
github.com/mitchellh/mapstructure v1.5.0 // indirect
5353
github.com/mitchellh/reflectwalk v1.0.2 // indirect
54-
github.com/nats-io/nkeys v0.4.9 // indirect
54+
github.com/nats-io/nkeys v0.4.10 // indirect
5555
github.com/nats-io/nuid v1.0.1 // indirect
5656
github.com/oklog/run v1.1.0 // indirect
5757
github.com/stretchr/testify v1.9.0 // indirect
@@ -61,17 +61,17 @@ require (
6161
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
6262
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
6363
github.com/zclconf/go-cty v1.16.2 // indirect
64-
golang.org/x/crypto v0.32.0 // indirect
65-
golang.org/x/mod v0.22.0 // indirect
66-
golang.org/x/net v0.34.0 // indirect
67-
golang.org/x/sync v0.10.0 // indirect
68-
golang.org/x/sys v0.29.0 // indirect
69-
golang.org/x/text v0.21.0 // indirect
70-
golang.org/x/time v0.9.0 // indirect
71-
golang.org/x/tools v0.29.0 // indirect
64+
golang.org/x/crypto v0.36.0 // indirect
65+
golang.org/x/mod v0.24.0 // indirect
66+
golang.org/x/net v0.37.0 // indirect
67+
golang.org/x/sync v0.12.0 // indirect
68+
golang.org/x/sys v0.31.0 // indirect
69+
golang.org/x/text v0.23.0 // indirect
70+
golang.org/x/time v0.11.0 // indirect
71+
golang.org/x/tools v0.31.0 // indirect
7272
google.golang.org/appengine v1.6.8 // indirect
73-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250115164207-1a7da9e5054f // indirect
74-
google.golang.org/grpc v1.69.4 // indirect
75-
google.golang.org/protobuf v1.36.3 // indirect
73+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250324211829-b45e905df463 // indirect
74+
google.golang.org/grpc v1.71.0 // indirect
75+
google.golang.org/protobuf v1.36.6 // indirect
7676
gopkg.in/yaml.v3 v3.0.1 // indirect
7777
)

0 commit comments

Comments
 (0)